* [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild @ 2012-09-21 19:08 Pacho Ramos 2012-09-21 19:45 ` Zac Medico 2012-09-22 17:54 ` Mike Frysinger 0 siblings, 2 replies; 11+ messages in thread From: Pacho Ramos @ 2012-09-21 19:08 UTC (permalink / raw To: gentoo-portage-dev [-- Attachment #1: Type: text/plain, Size: 877 bytes --] Hello This comes from this gentoo-dev thread: http://www.gossamer-threads.com/lists/gentoo/dev/260536 In that one, we try to use the following: has vala ${IUSE//+/} && ! use vala && return 0 as already done in many eclasses/ebuilds. The problem is that Ciaran wants to forbid it because he says it's not specified in PMS. My suggestion was to simply specify it as it's currently implemented in portage because that functionality is (apart of needed) being used for a long time in the tree by numerous eclasses/ebuilds, then, from my point of view, wouldn't be any sense on lose time for moving them to current functionality to a worse one, wait for the next eapi and, finally, revert them back to current behavior. The problem is that I cannot find any doc about how this is currently handled in portage. Could you help me on it please? Thanks a lot [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild 2012-09-21 19:08 [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild Pacho Ramos @ 2012-09-21 19:45 ` Zac Medico 2012-09-21 20:26 ` Pacho Ramos 2012-09-21 20:38 ` Brian Harring 2012-09-22 17:54 ` Mike Frysinger 1 sibling, 2 replies; 11+ messages in thread From: Zac Medico @ 2012-09-21 19:45 UTC (permalink / raw To: gentoo-portage-dev, pacho On 09/21/2012 12:08 PM, Pacho Ramos wrote: > Hello > > This comes from this gentoo-dev thread: > http://www.gossamer-threads.com/lists/gentoo/dev/260536 > > In that one, we try to use the following: > has vala ${IUSE//+/} && ! use vala && return 0 > > as already done in many eclasses/ebuilds. The problem is that Ciaran > wants to forbid it because he says it's not specified in PMS. My > suggestion was to simply specify it as it's currently implemented in > portage because that functionality is (apart of needed) being used for a > long time in the tree by numerous eclasses/ebuilds, then, from my point > of view, wouldn't be any sense on lose time for moving them to current > functionality to a worse one, wait for the next eapi and, finally, > revert them back to current behavior. > > The problem is that I cannot find any doc about how this is currently > handled in portage. Could you help me on it please? That `has vala ${IUSE//+/}` thing should work for all versions of portage that have existed since PMS came around. The way that it works is that that ebuild.sh sources the ebuild, and the inherit function makes temporary backups of IUSE so that the IUSE settings from all of the eclasses and the ebuild can be stacked together after the sourcing is complete. The stacked IUSE value that's generated then remains in the ebuild's environment for all phases. -- Thanks, Zac ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild 2012-09-21 19:45 ` Zac Medico @ 2012-09-21 20:26 ` Pacho Ramos 2012-09-21 20:32 ` Zac Medico 2012-09-21 20:38 ` Brian Harring 1 sibling, 1 reply; 11+ messages in thread From: Pacho Ramos @ 2012-09-21 20:26 UTC (permalink / raw To: Zac Medico; +Cc: gentoo-portage-dev [-- Attachment #1: Type: text/plain, Size: 1590 bytes --] El vie, 21-09-2012 a las 12:45 -0700, Zac Medico escribió: > On 09/21/2012 12:08 PM, Pacho Ramos wrote: > > Hello > > > > This comes from this gentoo-dev thread: > > http://www.gossamer-threads.com/lists/gentoo/dev/260536 > > > > In that one, we try to use the following: > > has vala ${IUSE//+/} && ! use vala && return 0 > > > > as already done in many eclasses/ebuilds. The problem is that Ciaran > > wants to forbid it because he says it's not specified in PMS. My > > suggestion was to simply specify it as it's currently implemented in > > portage because that functionality is (apart of needed) being used for a > > long time in the tree by numerous eclasses/ebuilds, then, from my point > > of view, wouldn't be any sense on lose time for moving them to current > > functionality to a worse one, wait for the next eapi and, finally, > > revert them back to current behavior. > > > > The problem is that I cannot find any doc about how this is currently > > handled in portage. Could you help me on it please? > > That `has vala ${IUSE//+/}` thing should work for all versions of > portage that have existed since PMS came around. The way that it works > is that that ebuild.sh sources the ebuild, and the inherit function > makes temporary backups of IUSE so that the IUSE settings from all of > the eclasses and the ebuild can be stacked together after the sourcing > is complete. The stacked IUSE value that's generated then remains in the > ebuild's environment for all phases. Thanks a lot, do you let me send your reply to gentoo-dev ML? [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild 2012-09-21 20:26 ` Pacho Ramos @ 2012-09-21 20:32 ` Zac Medico 0 siblings, 0 replies; 11+ messages in thread From: Zac Medico @ 2012-09-21 20:32 UTC (permalink / raw To: Pacho Ramos, gentoo-portage-dev On 09/21/2012 01:26 PM, Pacho Ramos wrote: > El vie, 21-09-2012 a las 12:45 -0700, Zac Medico escribió: >> On 09/21/2012 12:08 PM, Pacho Ramos wrote: >>> Hello >>> >>> This comes from this gentoo-dev thread: >>> http://www.gossamer-threads.com/lists/gentoo/dev/260536 >>> >>> In that one, we try to use the following: >>> has vala ${IUSE//+/} && ! use vala && return 0 >>> >>> as already done in many eclasses/ebuilds. The problem is that Ciaran >>> wants to forbid it because he says it's not specified in PMS. My >>> suggestion was to simply specify it as it's currently implemented in >>> portage because that functionality is (apart of needed) being used for a >>> long time in the tree by numerous eclasses/ebuilds, then, from my point >>> of view, wouldn't be any sense on lose time for moving them to current >>> functionality to a worse one, wait for the next eapi and, finally, >>> revert them back to current behavior. >>> >>> The problem is that I cannot find any doc about how this is currently >>> handled in portage. Could you help me on it please? >> >> That `has vala ${IUSE//+/}` thing should work for all versions of >> portage that have existed since PMS came around. The way that it works >> is that that ebuild.sh sources the ebuild, and the inherit function >> makes temporary backups of IUSE so that the IUSE settings from all of >> the eclasses and the ebuild can be stacked together after the sourcing >> is complete. The stacked IUSE value that's generated then remains in the >> ebuild's environment for all phases. > > Thanks a lot, do you let me send your reply to gentoo-dev ML? Sure. :) -- Thanks, Zac ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild 2012-09-21 19:45 ` Zac Medico 2012-09-21 20:26 ` Pacho Ramos @ 2012-09-21 20:38 ` Brian Harring 2012-09-21 20:44 ` Zac Medico 1 sibling, 1 reply; 11+ messages in thread From: Brian Harring @ 2012-09-21 20:38 UTC (permalink / raw To: gentoo-portage-dev; +Cc: pacho On Fri, Sep 21, 2012 at 12:45:30PM -0700, Zac Medico wrote: > On 09/21/2012 12:08 PM, Pacho Ramos wrote: > > Hello > > > > This comes from this gentoo-dev thread: > > http://www.gossamer-threads.com/lists/gentoo/dev/260536 > > > > In that one, we try to use the following: > > has vala ${IUSE//+/} && ! use vala && return 0 > > > > as already done in many eclasses/ebuilds. The problem is that Ciaran > > wants to forbid it because he says it's not specified in PMS. My > > suggestion was to simply specify it as it's currently implemented in > > portage because that functionality is (apart of needed) being used for a > > long time in the tree by numerous eclasses/ebuilds, then, from my point > > of view, wouldn't be any sense on lose time for moving them to current > > functionality to a worse one, wait for the next eapi and, finally, > > revert them back to current behavior. > > > > The problem is that I cannot find any doc about how this is currently > > handled in portage. Could you help me on it please? > > That `has vala ${IUSE//+/}` thing should work for all versions of *cough* negated defaults; you need a - in addition. ~harring ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild 2012-09-21 20:38 ` Brian Harring @ 2012-09-21 20:44 ` Zac Medico 0 siblings, 0 replies; 11+ messages in thread From: Zac Medico @ 2012-09-21 20:44 UTC (permalink / raw To: gentoo-portage-dev, Brian Harring, pacho On 09/21/2012 01:38 PM, Brian Harring wrote: > On Fri, Sep 21, 2012 at 12:45:30PM -0700, Zac Medico wrote: >> On 09/21/2012 12:08 PM, Pacho Ramos wrote: >>> Hello >>> >>> This comes from this gentoo-dev thread: >>> http://www.gossamer-threads.com/lists/gentoo/dev/260536 >>> >>> In that one, we try to use the following: >>> has vala ${IUSE//+/} && ! use vala && return 0 >>> >>> as already done in many eclasses/ebuilds. The problem is that Ciaran >>> wants to forbid it because he says it's not specified in PMS. My >>> suggestion was to simply specify it as it's currently implemented in >>> portage because that functionality is (apart of needed) being used for a >>> long time in the tree by numerous eclasses/ebuilds, then, from my point >>> of view, wouldn't be any sense on lose time for moving them to current >>> functionality to a worse one, wait for the next eapi and, finally, >>> revert them back to current behavior. >>> >>> The problem is that I cannot find any doc about how this is currently >>> handled in portage. Could you help me on it please? >> >> That `has vala ${IUSE//+/}` thing should work for all versions of > > *cough* negated defaults; you need a - in addition. Good point. The negated ones didn't have much meaning for a long time, so it's easy to overlook them. Nowadays, they can be used to negate repo-level defaults [1]. [1] https://bugs.gentoo.org/show_bug.cgi?id=370693 -- Thanks, Zac ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild 2012-09-21 19:08 [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild Pacho Ramos 2012-09-21 19:45 ` Zac Medico @ 2012-09-22 17:54 ` Mike Frysinger 2012-09-22 19:22 ` Pacho Ramos 1 sibling, 1 reply; 11+ messages in thread From: Mike Frysinger @ 2012-09-22 17:54 UTC (permalink / raw To: gentoo-portage-dev [-- Attachment #1: Type: Text/Plain, Size: 188 bytes --] On Friday 21 September 2012 15:08:20 Pacho Ramos wrote: > In that one, we try to use the following: > has vala ${IUSE//+/} && ! use vala && return 0 inherit eutils use_if_iuse vala -mike [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild 2012-09-22 17:54 ` Mike Frysinger @ 2012-09-22 19:22 ` Pacho Ramos 2012-09-23 5:52 ` Alec Warner 0 siblings, 1 reply; 11+ messages in thread From: Pacho Ramos @ 2012-09-22 19:22 UTC (permalink / raw To: gentoo-portage-dev [-- Attachment #1: Type: text/plain, Size: 366 bytes --] El sáb, 22-09-2012 a las 13:54 -0400, Mike Frysinger escribió: > On Friday 21 September 2012 15:08:20 Pacho Ramos wrote: > > In that one, we try to use the following: > > has vala ${IUSE//+/} && ! use vala && return 0 > > inherit eutils > use_if_iuse vala > -mike I am aware of that one also, but Ciaran also wants to forbid it for the same reason :S [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild 2012-09-22 19:22 ` Pacho Ramos @ 2012-09-23 5:52 ` Alec Warner 2012-09-23 7:36 ` Pacho Ramos 0 siblings, 1 reply; 11+ messages in thread From: Alec Warner @ 2012-09-23 5:52 UTC (permalink / raw To: gentoo-portage-dev On Sat, Sep 22, 2012 at 7:22 PM, Pacho Ramos <pacho@gentoo.org> wrote: > El sáb, 22-09-2012 a las 13:54 -0400, Mike Frysinger escribió: >> On Friday 21 September 2012 15:08:20 Pacho Ramos wrote: >> > In that one, we try to use the following: >> > has vala ${IUSE//+/} && ! use vala && return 0 >> >> inherit eutils >> use_if_iuse vala >> -mike > > I am aware of that one also, but Ciaran also wants to forbid it for the > same reason :S Well I assume Ciaran wants to forbid it because he is attempting to write a PMS compliant PM; but in order to use these ebuilds properly he has to emulate the unspecified behavior that the ebuilds rely on upon. His claim is that the council is supposed to forbid this behavior (presumably to make his job less horrible) but I don't see them beating down your door to change it (and the behavior is not new.) -A ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild 2012-09-23 5:52 ` Alec Warner @ 2012-09-23 7:36 ` Pacho Ramos 2012-10-05 17:41 ` Pacho Ramos 0 siblings, 1 reply; 11+ messages in thread From: Pacho Ramos @ 2012-09-23 7:36 UTC (permalink / raw To: gentoo-portage-dev [-- Attachment #1: Type: text/plain, Size: 1874 bytes --] El dom, 23-09-2012 a las 05:52 +0000, Alec Warner escribió: > On Sat, Sep 22, 2012 at 7:22 PM, Pacho Ramos <pacho@gentoo.org> wrote: > > El sáb, 22-09-2012 a las 13:54 -0400, Mike Frysinger escribió: > >> On Friday 21 September 2012 15:08:20 Pacho Ramos wrote: > >> > In that one, we try to use the following: > >> > has vala ${IUSE//+/} && ! use vala && return 0 > >> > >> inherit eutils > >> use_if_iuse vala > >> -mike > > > > I am aware of that one also, but Ciaran also wants to forbid it for the > > same reason :S > > Well I assume Ciaran wants to forbid it because he is attempting to > write a PMS compliant PM; but in order to use these ebuilds properly > he has to emulate the unspecified behavior that the ebuilds rely on > upon. His claim is that the council is supposed to forbid this > behavior (presumably to make his job less horrible) but I don't see > them beating down your door to change it (and the behavior is not > new.) > > -A > > My point of view is that, as this is already supported in portage (and probably in other PMs as, otherwise, they would have had a lot of problems with, for example, a lot of packages inheritting important eclasses like gnome2, cmake-utils or xorg-2) and also used in the tree for years, the easiest solution is to simply specify current behavior for existing eapis, needing to wait for a new one to change that behavior. As I pointed in http://www.gossamer-threads.com/lists/gentoo/dev/260662 other options would be: - wait for next eapi to specify that, the problem is that, if that eapi take a long time to be approved, we would need to move all eclasses/ebuilds to the other non-automatic way to later revert them back. - include this specification in eapi5 as it's still not allowed in the tree (maybe for this a council meeting should be soon enough I guess) [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild 2012-09-23 7:36 ` Pacho Ramos @ 2012-10-05 17:41 ` Pacho Ramos 0 siblings, 0 replies; 11+ messages in thread From: Pacho Ramos @ 2012-10-05 17:41 UTC (permalink / raw To: gentoo-portage-dev [-- Attachment #1: Type: text/plain, Size: 2256 bytes --] El dom, 23-09-2012 a las 09:36 +0200, Pacho Ramos escribió: > El dom, 23-09-2012 a las 05:52 +0000, Alec Warner escribió: > > On Sat, Sep 22, 2012 at 7:22 PM, Pacho Ramos <pacho@gentoo.org> wrote: > > > El sáb, 22-09-2012 a las 13:54 -0400, Mike Frysinger escribió: > > >> On Friday 21 September 2012 15:08:20 Pacho Ramos wrote: > > >> > In that one, we try to use the following: > > >> > has vala ${IUSE//+/} && ! use vala && return 0 > > >> > > >> inherit eutils > > >> use_if_iuse vala > > >> -mike > > > > > > I am aware of that one also, but Ciaran also wants to forbid it for the > > > same reason :S > > > > Well I assume Ciaran wants to forbid it because he is attempting to > > write a PMS compliant PM; but in order to use these ebuilds properly > > he has to emulate the unspecified behavior that the ebuilds rely on > > upon. His claim is that the council is supposed to forbid this > > behavior (presumably to make his job less horrible) but I don't see > > them beating down your door to change it (and the behavior is not > > new.) > > > > -A > > > > > > My point of view is that, as this is already supported in portage (and > probably in other PMs as, otherwise, they would have had a lot of > problems with, for example, a lot of packages inheritting important > eclasses like gnome2, cmake-utils or xorg-2) and also used in the tree > for years, the easiest solution is to simply specify current behavior > for existing eapis, needing to wait for a new one to change that > behavior. > > As I pointed in http://www.gossamer-threads.com/lists/gentoo/dev/260662 > other options would be: > - wait for next eapi to specify that, the problem is that, if that eapi > take a long time to be approved, we would need to move all > eclasses/ebuilds to the other non-automatic way to later revert > them back. > - include this specification in eapi5 as it's still not allowed in the > tree (maybe for this a council meeting should be soon enough I guess) > As looks like this topic got stalled :(, not sure how hard would be to implement (and document for PMS) the IUSE_FLATTENED idea over current portage implementation: http://www.gossamer-threads.com/lists/gentoo/dev/260812#260812 [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2012-10-05 18:04 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-09-21 19:08 [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild Pacho Ramos 2012-09-21 19:45 ` Zac Medico 2012-09-21 20:26 ` Pacho Ramos 2012-09-21 20:32 ` Zac Medico 2012-09-21 20:38 ` Brian Harring 2012-09-21 20:44 ` Zac Medico 2012-09-22 17:54 ` Mike Frysinger 2012-09-22 19:22 ` Pacho Ramos 2012-09-23 5:52 ` Alec Warner 2012-09-23 7:36 ` Pacho Ramos 2012-10-05 17:41 ` Pacho Ramos
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox