Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] patch_user - when it will be applied ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
toralf
Advocate
Advocate


Joined: 01 Feb 2004
Posts: 2672
Location: Hamburg/Germany

PostPosted: Fri Dec 28, 2012 4:35 pm    Post subject: [solved] patch_user - when it will be applied ? Reply with quote

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
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3205

PostPosted: Fri Dec 28, 2012 6:40 pm    Post subject: Reply with quote

epatch_user is applied immediately after the source is unpacked.
_________________
emerge --quiet redefined | E17 vids: I, II
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8854

PostPosted: Fri Dec 28, 2012 10:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
toralf
Advocate
Advocate


Joined: 01 Feb 2004
Posts: 2672
Location: Hamburg/Germany

PostPosted: Sat Dec 29, 2012 10:07 am    Post subject: Reply with quote

thx.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum