From: "Arttu V." <arttuv69@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] ebuild with local source?
Date: Tue, 24 Aug 2010 23:30:54 +0300 [thread overview]
Message-ID: <4C742BFE.8070609@gmail.com> (raw)
In-Reply-To: <1282672578.27425.1@numa-i>
Helmut Jarausch wrote:
> On 08/24/10 19:17:05, Arttu V. wrote:
>> On 8/24/10, Helmut Jarausch<jarausch@igpm.rwth-aachen.de> wrote:
>>> On 08/24/10 13:45:05, Robin Atwood wrote:
>>>> On Tuesday 24 August 2010, Helmut Jarausch wrote:
>>>>> Hi,
>>>>>
>>>>> I'd like to create an ebuild (in my local overlay) which refers
>> to
>>>> a
>>>>> local distribution file.
>>>>>
>>>>> I've tried
>>>>>
>>>>> SRC_URI="file::///usr/local/Src/MyPack.tar.bz2"
>>>>>
>>>>> but "file://" doesn't seem to be supported.
>>>>>
>>>>> Is there any alternative?
>>>>>
>>>>> Thanks for a hint,
>>>>> Helmut.
>>>>>
>>>>> (I'm using portage-2.2._rc68)
>>>>
>>>> "ln -s /usr/local/Src/MyPack.tar.bz2 /usr/portage/distfiles"
>> maybe?
>>>>
>>>> HTH
>>>> -Robin
>>>
>>> Hi, but what do I specify for SRC_URI
>>>
>>> I've tried
>>> SRC="MyPack-1.0.7.tar.gz"
>>> SLOT="0"
>>> KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc
>> x86"
>>> IUSE=""
>>> S="$WORKDIR/${P}"
>>> src_unpack() {
>>> unpack "${A}"
>>> }
>>>
>>> But it fails saying "nothing specified for unpack"
>>> And, indeed,
>>> doing
>>> ebuild --debug<PATH_to_EBUILD> unpack
>>> shows that ${A} is the empty string.
>>>
>>> What am I missing?
>>>
>>> Thanks a lot, it drives me nuts,
>>> Helmut.
>>
>> Place a RESTRICT="fetch" in the ebuild, and copy the tarball manually
>> to distfiles dir.
>
> Unfortunately, now I get MyPack-1.0.7.tar.gz does not exist (though it
> is in /usr/portage/distfiles)
AFAIK there is no variable SRC that ebuild/portage would know of, but
there is SRC_URI. Change to that and try to check for other similar, but
hard to notice problems in the ebuild.
--
Arttu V. -- Running Gentoo is like running with scissors
prev parent reply other threads:[~2010-08-24 20:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-24 11:25 [gentoo-user] ebuild with local source? Helmut Jarausch
2010-08-24 11:40 ` Mick
2010-08-24 11:45 ` Robin Atwood
2010-08-24 12:01 ` Helmut Jarausch
2010-08-24 12:03 ` Alan McKinnon
2010-08-24 12:09 ` Robin Atwood
2010-08-24 12:16 ` Helmut Jarausch
2010-08-24 16:39 ` Helmut Jarausch
2010-08-24 17:17 ` Arttu V.
2010-08-24 17:56 ` Helmut Jarausch
2010-08-24 20:30 ` Arttu V. [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C742BFE.8070609@gmail.com \
--to=arttuv69@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox