* [gentoo-user] ebuild with local source?
@ 2010-08-24 11:25 Helmut Jarausch
2010-08-24 11:40 ` Mick
2010-08-24 11:45 ` Robin Atwood
0 siblings, 2 replies; 11+ messages in thread
From: Helmut Jarausch @ 2010-08-24 11:25 UTC (permalink / raw
To: gentoo-user
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)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] ebuild with local source?
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
1 sibling, 0 replies; 11+ messages in thread
From: Mick @ 2010-08-24 11:40 UTC (permalink / raw
To: gentoo-user
On 24 August 2010 12:25, Helmut Jarausch <jarausch@igpm.rwth-aachen.de> 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?
Read the section "Using your source" at the end of the page here:
http://en.gentoo-wiki.com/wiki/Writing_Ebuilds
HTH.
PS. You may also want to experiment setting a
DISTDIR_OVERLAY="/usr/local/Src" and see if it works (haven't tried it
myself)
--
Regards,
Mick
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] ebuild with local source?
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 16:39 ` Helmut Jarausch
1 sibling, 2 replies; 11+ messages in thread
From: Robin Atwood @ 2010-08-24 11:45 UTC (permalink / raw
To: gentoo-user
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
--
----------------------------------------------------------------------
Robin Atwood.
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] ebuild with local source?
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 16:39 ` Helmut Jarausch
1 sibling, 2 replies; 11+ messages in thread
From: Helmut Jarausch @ 2010-08-24 12:01 UTC (permalink / raw
To: gentoo-user
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?
Thanks, but isn't that erased when I resync next time?
Helmut.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] ebuild with local source?
2010-08-24 12:01 ` Helmut Jarausch
@ 2010-08-24 12:03 ` Alan McKinnon
2010-08-24 12:09 ` Robin Atwood
1 sibling, 0 replies; 11+ messages in thread
From: Alan McKinnon @ 2010-08-24 12:03 UTC (permalink / raw
To: gentoo-user; +Cc: Helmut Jarausch
Apparently, though unproven, at 14:01 on Tuesday 24 August 2010, Helmut
Jarausch did opine thusly:
> 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?
>
> Thanks, but isn't that erased when I resync next time?
>
> Helmut.
No.
emerge --sync does not nuke your distfiles.
If it does you would know all about it by now.
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] ebuild with local source?
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
1 sibling, 1 reply; 11+ messages in thread
From: Robin Atwood @ 2010-08-24 12:09 UTC (permalink / raw
To: gentoo-user
On Tuesday 24 August 2010, Helmut Jarausch 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?
>
> Thanks, but isn't that erased when I resync next time?
No. Syncing doesn't touch the distfiles. I use this technique all the time.
-Robin
--
----------------------------------------------------------------------
Robin Atwood.
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] ebuild with local source?
2010-08-24 12:09 ` Robin Atwood
@ 2010-08-24 12:16 ` Helmut Jarausch
0 siblings, 0 replies; 11+ messages in thread
From: Helmut Jarausch @ 2010-08-24 12:16 UTC (permalink / raw
To: gentoo-user
Thanks, Mick, Robin and Alan!
Helmut.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] ebuild with local source?
2010-08-24 11:45 ` Robin Atwood
2010-08-24 12:01 ` Helmut Jarausch
@ 2010-08-24 16:39 ` Helmut Jarausch
2010-08-24 17:17 ` Arttu V.
1 sibling, 1 reply; 11+ messages in thread
From: Helmut Jarausch @ 2010-08-24 16:39 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] ebuild with local source?
2010-08-24 16:39 ` Helmut Jarausch
@ 2010-08-24 17:17 ` Arttu V.
2010-08-24 17:56 ` Helmut Jarausch
0 siblings, 1 reply; 11+ messages in thread
From: Arttu V. @ 2010-08-24 17:17 UTC (permalink / raw
To: gentoo-user
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.
--
Arttu V. -- Running Gentoo is like running with scissors
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] ebuild with local source?
2010-08-24 17:17 ` Arttu V.
@ 2010-08-24 17:56 ` Helmut Jarausch
2010-08-24 20:30 ` Arttu V.
0 siblings, 1 reply; 11+ messages in thread
From: Helmut Jarausch @ 2010-08-24 17:56 UTC (permalink / raw
To: gentoo-user
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)
Thanks,
Helmut.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] ebuild with local source?
2010-08-24 17:56 ` Helmut Jarausch
@ 2010-08-24 20:30 ` Arttu V.
0 siblings, 0 replies; 11+ messages in thread
From: Arttu V. @ 2010-08-24 20:30 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2010-08-24 20:28 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox