* [gentoo-user] Eapi 6 ?
@ 2014-09-16 18:30 James
2014-09-16 18:38 ` Rich Freeman
0 siblings, 1 reply; 8+ messages in thread
From: James @ 2014-09-16 18:30 UTC (permalink / raw
To: gentoo-user
Howdy,
I've read snippets that EAPI 6 will provide a mechanism for
follks to put patches directly into ebuilds. I'm not certain
(some discussion needed) that this will eliminated some ebuilds
from my /usr/local/portage development repository.
However, now I'm learning and hacking on 2 different bleeding edge
technologies. Clusters (mesos, spark etc etc) and Java (maven etc etc).
I am but a "follwer" at this time on those two bleeding edge fronts.
But codes are release at multiple times during the day/week that I need
to test. So, in my limited understanding, EAPI 6 looks absolutely
wonderful.
So, since I'm only hacking at ebuilds for my own needs (currently
not able to produce anything that is not embarrashing) can I
start building ebuilds that use EAPI-6? I understand that it
is not finalized yet. But, if the user supplied patching is
at least workable, I'd rather get busy learning/testing those new
EAPI-6 tricks.
thoughts and comments and insight are most welcome.
James
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Eapi 6 ?
2014-09-16 18:30 [gentoo-user] Eapi 6 ? James
@ 2014-09-16 18:38 ` Rich Freeman
2014-09-16 20:06 ` [gentoo-user] " James
2014-09-16 20:23 ` [gentoo-user] " Neil Bothwick
0 siblings, 2 replies; 8+ messages in thread
From: Rich Freeman @ 2014-09-16 18:38 UTC (permalink / raw
To: gentoo-user
On Tue, Sep 16, 2014 at 2:30 PM, James <wireless@tampabay.rr.com> wrote:
>
> So, since I'm only hacking at ebuilds for my own needs (currently
> not able to produce anything that is not embarrashing) can I
> start building ebuilds that use EAPI-6? I understand that it
> is not finalized yet. But, if the user supplied patching is
> at least workable, I'd rather get busy learning/testing those new
> EAPI-6 tricks.
>
User patching already exists, but ebuilds have to support it for it to
work by calling epatch_user during src_prepare(). EAPI6 will make
calling this mandatory, and will put it in the default phase function.
So, 100% of EAPI6 ebuilds will support it, though many ebuilds already
support it otherwise.
All you need to do is add epatch_user to src_prepare in an existing
ebuild to use it. If you want to patch the build system you'll also
need to make calls to autotools/etc as needed after calling
epatch_user.
--
Rich
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: Eapi 6 ?
2014-09-16 18:38 ` Rich Freeman
@ 2014-09-16 20:06 ` James
2014-09-16 20:12 ` Alan McKinnon
2014-09-16 20:23 ` [gentoo-user] " Neil Bothwick
1 sibling, 1 reply; 8+ messages in thread
From: James @ 2014-09-16 20:06 UTC (permalink / raw
To: gentoo-user
Rich Freeman <rich0 <at> gentoo.org> writes:
> All you need to do is add epatch_user to src_prepare in an existing
> ebuild to use it. If you want to patch the build system you'll also
> need to make calls to autotools/etc as needed after calling
> epatch_user.
OK, so I'll (hopefully) finsish one of my ugly hack ebuilds (tonight),
make it work with these suggenstions and publish it here
on the list for comments. It's short and simple so we can
all see just how this is/will work.
OK?
James
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Re: Eapi 6 ?
2014-09-16 20:06 ` [gentoo-user] " James
@ 2014-09-16 20:12 ` Alan McKinnon
0 siblings, 0 replies; 8+ messages in thread
From: Alan McKinnon @ 2014-09-16 20:12 UTC (permalink / raw
To: gentoo-user
On 16/09/2014 22:06, James wrote:
> Rich Freeman <rich0 <at> gentoo.org> writes:
>
>> All you need to do is add epatch_user to src_prepare in an existing
>> ebuild to use it. If you want to patch the build system you'll also
>> need to make calls to autotools/etc as needed after calling
>> epatch_user.
>
> OK, so I'll (hopefully) finsish one of my ugly hack ebuilds (tonight),
I have a sneaky suspicion that the phrase "James' ugly hack ebuilds"
contains at least one factual contradiction
:-)
> make it work with these suggenstions and publish it here
> on the list for comments. It's short and simple so we can
> all see just how this is/will work.
>
> OK?
>
>
> James
>
>
>
>
>
>
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Eapi 6 ?
2014-09-16 18:38 ` Rich Freeman
2014-09-16 20:06 ` [gentoo-user] " James
@ 2014-09-16 20:23 ` Neil Bothwick
2014-09-17 3:40 ` [gentoo-user] " James
1 sibling, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2014-09-16 20:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 614 bytes --]
On Tue, 16 Sep 2014 14:38:12 -0400, Rich Freeman wrote:
> All you need to do is add epatch_user to src_prepare in an existing
> ebuild to use it. If you want to patch the build system you'll also
> need to make calls to autotools/etc as needed after calling
> epatch_user.
You can often do it without touching the ebuild at all by putting
post_src_unpack() {
cd "${S}"
epatch_user
}
in /etc/portage/env/category/package[-version]
--
Neil Bothwick
No trees were harmed in the sending of this message. However, a large
number of electrons were terribly inconvenienced.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: Eapi 6 ?
2014-09-16 20:23 ` [gentoo-user] " Neil Bothwick
@ 2014-09-17 3:40 ` James
2014-09-17 8:46 ` Neil Bothwick
0 siblings, 1 reply; 8+ messages in thread
From: James @ 2014-09-17 3:40 UTC (permalink / raw
To: gentoo-user
Neil Bothwick <neil <at> digimed.co.uk> writes:
> You can often do it without touching the ebuild at all by putting
> post_src_unpack() {
> cd "${S}"
> epatch_user
> }
> in /etc/portage/env/category/package[-version]
Thx Neil,
Nice trick to know. But,
I do not have an /etc/portage/env/ dir?
Just make them up?
Or is this the reference:
http://wiki.gentoo.org/wiki//etc/portage/env
Any docs somewhere as this looks more like a "sets" trick?
curiously,
James
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Re: Eapi 6 ?
2014-09-17 3:40 ` [gentoo-user] " James
@ 2014-09-17 8:46 ` Neil Bothwick
2014-09-18 15:03 ` James
0 siblings, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2014-09-17 8:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 923 bytes --]
On Wed, 17 Sep 2014 03:40:37 +0000 (UTC), James wrote:
> > You can often do it without touching the ebuild at all by putting
>
> > post_src_unpack() {
> > cd "${S}"
> > epatch_user
> > }
>
> > in /etc/portage/env/category/package[-version]
>
> Nice trick to know. But,
> I do not have an /etc/portage/env/ dir?
> Just make them up?
Yes. Portage doesn't know which directories you need, just create them
when you do.
> Or is this the reference:
> http://wiki.gentoo.org/wiki//etc/portage/env
That's a different, but equally useful, use of /etc/portage/env.
> Any docs somewhere as this looks more like a "sets" trick?
The functions are explained in man 5 ebuild, /etc/portage is covered in
man portage. The rest was gathered by starting at http:///www and working
down...
--
Neil Bothwick
"If Micro built cars, the worlds population would be in decline"
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: Eapi 6 ?
2014-09-17 8:46 ` Neil Bothwick
@ 2014-09-18 15:03 ` James
0 siblings, 0 replies; 8+ messages in thread
From: James @ 2014-09-18 15:03 UTC (permalink / raw
To: gentoo-user
Neil Bothwick <neil <at> digimed.co.uk> writes:
<snip>
> The rest was gathered by starting at http:///www and working down...
Neil,
You should start a Neils-tips page on wiki.gentoo.org
Order them as you like; kind of like your limricks
in our signature.
That way, when folks ask questions, we can refer them to
Neil_trick_<##>. A good idea?
?
James
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-09-18 15:04 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-16 18:30 [gentoo-user] Eapi 6 ? James
2014-09-16 18:38 ` Rich Freeman
2014-09-16 20:06 ` [gentoo-user] " James
2014-09-16 20:12 ` Alan McKinnon
2014-09-16 20:23 ` [gentoo-user] " Neil Bothwick
2014-09-17 3:40 ` [gentoo-user] " James
2014-09-17 8:46 ` Neil Bothwick
2014-09-18 15:03 ` James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox