* [gentoo-user] Automatic picking up the patches from /etc/portage/patches
@ 2012-01-04 13:47 v_2e
2012-01-04 14:02 ` Hinnerk van Bruinehsen
2012-01-04 14:03 ` Paul Hartman
0 siblings, 2 replies; 3+ messages in thread
From: v_2e @ 2012-01-04 13:47 UTC (permalink / raw
To: gentoo-user
Hello!
I have noticed that with portage version changes its behaviour
regarding the automatic patch catching (from /etc/portage/patches, for
example) also changes. Some previous versions of portage did apply the
patches from that directory while the most recent one does not.
I consider this auto-patching feature quite useful and would like to
use it, but currently I don't know how to do that.
And also, is portage supposed to pick the patches up automatically or
not in general?
Thank you.
Vladimir
-----
<v_2e@ukr.net>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Automatic picking up the patches from /etc/portage/patches
2012-01-04 13:47 [gentoo-user] Automatic picking up the patches from /etc/portage/patches v_2e
@ 2012-01-04 14:02 ` Hinnerk van Bruinehsen
2012-01-04 14:03 ` Paul Hartman
1 sibling, 0 replies; 3+ messages in thread
From: Hinnerk van Bruinehsen @ 2012-01-04 14:02 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04.01.2012 14:47, v_2e@ukr.net wrote:
> Hello! I have noticed that with portage version changes its
> behaviour regarding the automatic patch catching (from
> /etc/portage/patches, for example) also changes. Some previous
> versions of portage did apply the patches from that directory while
> the most recent one does not.
>
> I consider this auto-patching feature quite useful and would like
> to use it, but currently I don't know how to do that. And also, is
> portage supposed to pick the patches up automatically or not in
> general?
>
> Thank you. Vladimir
>
> ----- <v_2e@ukr.net>
>
According to [1] epatch_user from eutils.eclass needs to be called by
the ebuild for it to work.
[1] http://dev.gentoo.org/~swift/docs/previews/hb-portage-advanced.xml
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJPBFwPAAoJEJwwOFaNFkYc01UH/1GP8nFbp/NXZQ6OYaNhI4a7
rUeyJwiaCkPZs6Hoo3UFeEnKJqcZqHdASzdTZgplOSEbFNBaVAYS88HgRevSM8Kc
0M8pyRjlrs3d+kaP9zJZ0BsQhAaR0Uj0s6oz7bmTpTvUTNBucUeZDnRVHH2aKxCz
bV1+Ii8Rr7TY4vQxcNVuSwM1iX/G/DLaTnxUN/pGlKxyzS4gng6y6GErDIBTiNYh
2/TwZdc6x7HwGxiCgn1WPv2Hdv12AE8RrVzT6hxowOCPMhj27rve2PkAwZQGl8u3
n3J2vBFbrwAjEGu7n6OS2ulsP/n4Gce0NhdtizHiyoL3QNPhG8noWmNIAWK0zE0=
=LAKV
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Automatic picking up the patches from /etc/portage/patches
2012-01-04 13:47 [gentoo-user] Automatic picking up the patches from /etc/portage/patches v_2e
2012-01-04 14:02 ` Hinnerk van Bruinehsen
@ 2012-01-04 14:03 ` Paul Hartman
1 sibling, 0 replies; 3+ messages in thread
From: Paul Hartman @ 2012-01-04 14:03 UTC (permalink / raw
To: gentoo-user
On 01/04/2012 07:47 AM, v_2e@ukr.net wrote:
> Hello!
> I have noticed that with portage version changes its behaviour
> regarding the automatic patch catching (from /etc/portage/patches, for
> example) also changes. Some previous versions of portage did apply the
> patches from that directory while the most recent one does not.
>
> I consider this auto-patching feature quite useful and would like to
> use it, but currently I don't know how to do that.
> And also, is portage supposed to pick the patches up automatically or
> not in general?
They are only picked up if the ebuild specifically calls epatch_user
function.
However, you can define this in your /etc/portage/bashrc to have
appended to all ebuilds (who don't already define this function):
post_src_prepare() {
epatch_user
}
then it will call it after it does its normal patching...
For example, I dropped a patch from BGO for xloadimage to make it build
against new libtiff into
/etc/portage/patches/media-gfx/xloadimage-4.1-r11 and emerge, I see this
in emerge output:
>>> Preparing source in
/var/tmp/portage/media-gfx/xloadimage-4.1-r11/work/xloadimage.4.1 ...
* Applying xloadimage-4.1-gentoo-r1.diff ... [ ok ]
* Applying xloadimage-4.1-zio-shell-meta-char.diff ... [ ok ]
* Applying xloadimage-4.1-endif.patch ... [ ok ]
* Applying xloadimage-4.1-include-errno_h.patch ... [ ok ]
* Applying xloadimage-gentoo.patch ... [ ok ]
* Applying xloadimage-4.1-unaligned-access.patch ... [ ok ]
* Applying xloadimage-4.1-ldflags_and_exit.patch ... [ ok ]
* Applying xloadimage-4.1-libpng15.patch ... [ ok ]
* Applying xloadimage-4.1-bracket.patch ... [ ok ]
* Running eautoreconf in
'/var/tmp/portage/media-gfx/xloadimage-4.1-r11/work/xloadimage.4.1' ...
* Running aclocal ... [ ok ]
* Running autoconf ... [ ok ]
* Running autoheader ... [ ok ]
>>> Source prepared.
* Applying user patches from
/etc/portage/patches//media-gfx/xloadimage-4.1-r11 ...
* xloadimage-4.1-tiff.patch ... [ ok ]
* Done with patching
>>> Configuring source in
/var/tmp/portage/media-gfx/xloadimage-4.1-r11/work/xloadimage.4.1 ...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-04 14:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04 13:47 [gentoo-user] Automatic picking up the patches from /etc/portage/patches v_2e
2012-01-04 14:02 ` Hinnerk van Bruinehsen
2012-01-04 14:03 ` Paul Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox