View previous topic :: View next topic |
Author |
Message |
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Fri Dec 28, 2012 4:35 pm Post subject: [solved] patch_user - when it will be applied ? |
|
|
While struggling with an dev-libs/apr issue (https://issues.apache.org/bugzilla/show_bug.cgi?id=54214) I realized that it is a non-trivial task to patch an unpacked package source tree. Especially in this case the following patch Code: | $ cat /etc/portage/patches/dev-libs/apr-1.4.6/test.patch
--- apr-1.4.6/test/Makefile.orig 2012-12-28 15:08:03.679776085 +0100
+++ apr-1.4.6/test/Makefile 2012-12-28 15:13:46.030022380 +0100
@@ -162,6 +162,7 @@
teststatus=0; \
progfailed=""; \
for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
+ ldd ./$$prog \
./$$prog; \
status=$$?; \
if test $$status != 0; then \
| can by applied to the dev-libs/apr source files successfully only after the configure step (eg. in opposite to a patch for the config files itself). That's why I'm wondering how the strategy of applying user patches is implemented currently ?
(FWIW - I had to manually change the apr ebuild b/c currently the epatch_user functionality isn't implemented).
Last edited by toralf on Sat Dec 29, 2012 10:07 am; edited 1 time in total |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Fri Dec 28, 2012 6:40 pm Post subject: |
|
|
epatch_user is applied immediately after the source is unpacked. _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Fri Dec 28, 2012 10:48 pm Post subject: |
|
|
ppurka wrote: | epatch_user is applied immediately after the source is unpacked. | Not exactly. It is applied when it is executed by the ebuild. It may be conventional to apply it immediately after the source is unpacked, but there is no technical requirement that the ebuild author will execute it at that time. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Sat Dec 29, 2012 10:07 am Post subject: |
|
|
thx. |
|
Back to top |
|
|
|