Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 413299

Summary: gnome2.eclass should allow user patches (epatch_user)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: esigra, hristo, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=472928
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 262490    

Description Toralf Förster gentoo-dev 2012-04-23 20:06:38 UTC
which would be very nice, if this could be implemented, b/c
1st: that patch dir/method is one of the coolest features of Gentoo and
2nd: patches of this bug report could be tested more easily : https://bugzilla.gnome.org/show_bug.cgi?id=667954 (instead of creating a local overlay ebuild ...)

:-)

Reproducible: Always
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-05-19 22:54:29 UTC
Isn't this already supported gentoo-wise via some portage hook ?
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-05-19 22:58:47 UTC
(In reply to comment #1)
Not until EAPI5.
Comment 3 Pacho Ramos gentoo-dev 2013-06-13 20:53:21 UTC
*** Bug 473212 has been marked as a duplicate of this bug. ***
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-06-13 21:41:48 UTC
To solve this at the gnome2.eclass level, we would have to either finally start using autotools-utils.eclass or copy autotools-utils_src_prepare's logic for determining whether to run eautoreconf.

Due to the number of users throughout the tree and the overlays, many of which have explicit eautoreconf calls and some of which have explicit epatch_user calls, this is a change which cannot be turned on by default. (Even waiting until EAPI6 to enable it by default is still likely to produce python.eclass-like unwelcome surprises for ebuild writers.)

My suggestions:

(short term) add epatch_user calls to an individual ebuild if users ask, and that ebuild already requires eautoreconf, and it seems will continue to require eautoreconf for the foreseeable future.

(long term) gnome3.eclass!
Comment 5 Pacho Ramos gentoo-dev 2013-06-13 21:53:31 UTC
Maybe we should try to use more autotools-utils.eclass for eapi6, as that would also allow us to rely completely on it for other functionalities like .la pruning, and easier multilib support for ebuilds that could need it...
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-06-14 09:45:58 UTC
I am still strongly against adding this at eclass level since it will be very difficult to obtain a code that gets it right always.

Also it implies a level of magic for ebuild writers that is imho both disturbing and harmful in the long run given that many already consider the eclass to be bloated while it does only simple things.

On using autotools*.eclass, I already had a look at it long ago and the main problem is that those eclasses did not support older eclass while gnome2.eclass still does, and it would have ended up in more complex code to wrap it rather than do things directly.

However if someone wanted to give a try at a new eclass based on that from the start and that could strip support for old gnome components like scrollkeeper and gconf, maybe that would be worth it but imho, we shouldn't make gnome2.eclass any more complex than it is currently.
Comment 7 Pacho Ramos gentoo-dev 2013-06-14 19:01:34 UTC
https://bugs.gentoo.org/show_bug.cgi?id=473212#c9

This comes from there, but better continue here ;)
Comment 8 Evgeny Bobkin 2013-07-07 11:54:14 UTC
(In reply to Alexandre Rostovtsev from comment #2)
> (In reply to comment #1)
> Not until EAPI5.

has any progress been achieved here since?)) It seems like a very useful feature to me.
Comment 9 Pacho Ramos gentoo-dev 2013-08-27 08:55:42 UTC
Reviewing it again, I would go for implementing it in a similar way of autotools-utils.eclass (that way we don't need to inherit all the remaining features). The problem is that, after reading autotools-utils_src_prepare, how could we handle it if we keep running "eautoreconf" when needed instead of relying in AUTOTOOLS_AUTORECONF?

I mean:
1. We apply patches that need eautoreconf
2. Run eautoreconf (for them)
3. Run gnome2_src_prepare -> It would compare checksums to see if the user patches need eautoreconf -> would run it *again* if needed. How could we prevent that second running without using something similar to AUTOTOOLS_AUTORECONF?
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-08-27 21:44:01 UTC
I'll say it again, just ftr. This is imho going way too far in headaches and complicated logic just to support a, let's be realistic, handful of users.
Comment 11 Pacho Ramos gentoo-dev 2013-08-28 08:25:24 UTC
Yeah, I also never liked much to allow people to so easily add unofficial patches to random packages :/ -> if they are fixes, they need to be reported. For "enhancements" would be different I guess...
Comment 12 Pacho Ramos gentoo-dev 2014-04-23 20:06:30 UTC
*** Bug 508342 has been marked as a duplicate of this bug. ***
Comment 13 Pacho Ramos gentoo-dev 2014-05-25 13:56:33 UTC
*** Bug 511204 has been marked as a duplicate of this bug. ***
Comment 14 Pacho Ramos gentoo-dev 2014-05-25 13:56:47 UTC
*** Bug 511210 has been marked as a duplicate of this bug. ***
Comment 15 Pacho Ramos gentoo-dev 2014-05-25 13:57:04 UTC
*** Bug 511212 has been marked as a duplicate of this bug. ***
Comment 16 Pacho Ramos gentoo-dev 2014-05-25 13:57:13 UTC
*** Bug 511214 has been marked as a duplicate of this bug. ***
Comment 17 Pacho Ramos gentoo-dev 2014-05-25 13:57:22 UTC
*** Bug 511216 has been marked as a duplicate of this bug. ***
Comment 18 Pacho Ramos gentoo-dev 2014-05-25 13:57:31 UTC
*** Bug 511220 has been marked as a duplicate of this bug. ***
Comment 19 Pacho Ramos gentoo-dev 2014-05-25 13:57:43 UTC
*** Bug 511222 has been marked as a duplicate of this bug. ***
Comment 20 Pacho Ramos gentoo-dev 2014-05-25 13:57:52 UTC
*** Bug 511230 has been marked as a duplicate of this bug. ***
Comment 21 Pacho Ramos gentoo-dev 2014-05-25 13:58:02 UTC
*** Bug 511232 has been marked as a duplicate of this bug. ***
Comment 22 Pacho Ramos gentoo-dev 2014-05-25 13:58:10 UTC
*** Bug 511236 has been marked as a duplicate of this bug. ***
Comment 23 Pacho Ramos gentoo-dev 2014-05-25 13:58:19 UTC
*** Bug 511238 has been marked as a duplicate of this bug. ***
Comment 24 Pacho Ramos gentoo-dev 2014-05-25 13:58:28 UTC
*** Bug 511242 has been marked as a duplicate of this bug. ***
Comment 25 Pacho Ramos gentoo-dev 2014-05-25 13:58:39 UTC
*** Bug 511244 has been marked as a duplicate of this bug. ***
Comment 26 Pacho Ramos gentoo-dev 2014-05-25 13:58:47 UTC
*** Bug 511246 has been marked as a duplicate of this bug. ***
Comment 27 Pacho Ramos gentoo-dev 2014-05-25 13:58:57 UTC
*** Bug 511248 has been marked as a duplicate of this bug. ***
Comment 28 Pacho Ramos gentoo-dev 2014-05-25 13:59:05 UTC
*** Bug 511250 has been marked as a duplicate of this bug. ***
Comment 29 Pacho Ramos gentoo-dev 2014-05-25 13:59:14 UTC
*** Bug 511252 has been marked as a duplicate of this bug. ***
Comment 30 Pacho Ramos gentoo-dev 2014-05-25 13:59:22 UTC
*** Bug 511254 has been marked as a duplicate of this bug. ***
Comment 31 Pacho Ramos gentoo-dev 2014-05-25 13:59:32 UTC
*** Bug 511256 has been marked as a duplicate of this bug. ***
Comment 32 Pacho Ramos gentoo-dev 2014-05-25 13:59:46 UTC
*** Bug 511258 has been marked as a duplicate of this bug. ***
Comment 33 Pacho Ramos gentoo-dev 2014-05-25 13:59:55 UTC
*** Bug 511260 has been marked as a duplicate of this bug. ***
Comment 34 Pacho Ramos gentoo-dev 2014-05-25 14:00:03 UTC
*** Bug 511262 has been marked as a duplicate of this bug. ***
Comment 35 Pacho Ramos gentoo-dev 2014-05-25 14:00:13 UTC
*** Bug 511264 has been marked as a duplicate of this bug. ***
Comment 36 Pacho Ramos gentoo-dev 2014-05-25 14:00:25 UTC
*** Bug 511266 has been marked as a duplicate of this bug. ***
Comment 37 Pacho Ramos gentoo-dev 2014-05-25 14:00:35 UTC
*** Bug 511268 has been marked as a duplicate of this bug. ***
Comment 38 Pacho Ramos gentoo-dev 2014-05-25 14:00:43 UTC
*** Bug 511270 has been marked as a duplicate of this bug. ***
Comment 39 Pacho Ramos gentoo-dev 2014-05-25 14:00:51 UTC
*** Bug 511272 has been marked as a duplicate of this bug. ***
Comment 40 Pacho Ramos gentoo-dev 2014-05-25 14:01:06 UTC
*** Bug 511274 has been marked as a duplicate of this bug. ***
Comment 41 Pacho Ramos gentoo-dev 2014-05-25 14:01:16 UTC
*** Bug 511276 has been marked as a duplicate of this bug. ***
Comment 42 Pacho Ramos gentoo-dev 2014-05-25 14:01:25 UTC
*** Bug 511278 has been marked as a duplicate of this bug. ***
Comment 43 Pacho Ramos gentoo-dev 2014-05-25 14:01:36 UTC
*** Bug 511280 has been marked as a duplicate of this bug. ***
Comment 44 Pacho Ramos gentoo-dev 2014-05-25 14:01:43 UTC
*** Bug 511282 has been marked as a duplicate of this bug. ***
Comment 45 Pacho Ramos gentoo-dev 2014-05-25 14:01:57 UTC
*** Bug 511284 has been marked as a duplicate of this bug. ***
Comment 46 Pacho Ramos gentoo-dev 2014-05-25 14:02:03 UTC
*** Bug 511288 has been marked as a duplicate of this bug. ***
Comment 47 Pacho Ramos gentoo-dev 2014-05-25 14:02:13 UTC
*** Bug 511290 has been marked as a duplicate of this bug. ***
Comment 48 Pacho Ramos gentoo-dev 2014-05-25 14:02:21 UTC
*** Bug 511292 has been marked as a duplicate of this bug. ***
Comment 49 Pacho Ramos gentoo-dev 2014-05-25 14:02:32 UTC
*** Bug 511294 has been marked as a duplicate of this bug. ***
Comment 50 Pacho Ramos gentoo-dev 2014-05-25 14:02:40 UTC
*** Bug 511296 has been marked as a duplicate of this bug. ***
Comment 51 Pacho Ramos gentoo-dev 2014-05-25 14:02:48 UTC
*** Bug 511298 has been marked as a duplicate of this bug. ***
Comment 52 Pacho Ramos gentoo-dev 2014-05-25 14:02:58 UTC
*** Bug 511300 has been marked as a duplicate of this bug. ***
Comment 53 Pacho Ramos gentoo-dev 2014-05-25 14:03:06 UTC
*** Bug 511302 has been marked as a duplicate of this bug. ***
Comment 54 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-11-03 22:38:29 UTC
*** Bug 510402 has been marked as a duplicate of this bug. ***
Comment 55 Pacho Ramos gentoo-dev 2015-02-25 09:56:45 UTC
*** Bug 541258 has been marked as a duplicate of this bug. ***
Comment 56 Pacho Ramos gentoo-dev 2015-03-08 13:13:23 UTC
*** Bug 542552 has been marked as a duplicate of this bug. ***
Comment 57 Pacho Ramos gentoo-dev 2015-05-13 16:43:21 UTC
*** Bug 549346 has been marked as a duplicate of this bug. ***
Comment 58 Pacho Ramos gentoo-dev 2015-12-16 12:05:11 UTC
We will simply rely on builtin functionality with eapi6 as soon as eclasses are updated for that eapi
Comment 59 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-12-17 08:18:37 UTC
I don't think EAPI 6 will help with eautoreconf need but at least it has a clearer perimeter imho.
Comment 60 Pacho Ramos gentoo-dev 2016-01-09 15:12:37 UTC
*** Bug 571362 has been marked as a duplicate of this bug. ***
Comment 61 Rémi Cardona (RETIRED) gentoo-dev 2016-01-10 12:34:43 UTC
*** Bug 571362 has been marked as a duplicate of this bug. ***