Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204196 - sys-apps/portage-2.1.4_rc14: IUSE defaults should override default use flag settings in profiles
Summary: sys-apps/portage-2.1.4_rc14: IUSE defaults should override default use flag s...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-03 14:57 UTC by William Hubbs
Modified: 2008-01-04 05:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Hubbs gentoo-dev 2008-01-03 14:57:24 UTC
I am working on an ebuild for the new version of brltty, which includes an api and optional bindings for various languages, one of which is python.  I want to use the python use flag to control whether or not those bindings are installed.

I have EAPI=1 and IUSE="-python" in the ebuild so that the bindings are not installed unless the user requests them.  However, the use_order setting in make.globals does not allow this to work.  My make.globals contains:

USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"

Shouldn't defaults and pkginternal be swapped so that IUSE defaults will override profile settings?

Thanks much,

William

Portage 2.1.4_rc14 (default-linux/x86, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 Pentium II (Deschutes)
Timestamp of tree: Thu, 03 Jan 2008 09:00:03 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="collision-protect distlocks sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="alsa berkdb bitmap-fonts bzip2 cli cracklib crypt cups curl dri expat fortran gdbm iconv idn imap ipv6 isdnlog maildir midi mudflap ncurses nls openmp pam pcre perl pppd python readline reflection sasl session spl ssl tcpd truetype-fonts type1-fonts webdav x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2008-01-03 15:55:26 UTC
(In reply to comment #0)
> I have EAPI=1 and IUSE="-python" in the ebuild so that the bindings are not
> installed unless the user requests them.  However, the use_order setting in
> make.globals does not allow this to work.  My make.globals contains:
> 
> USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
> 
> Shouldn't defaults and pkginternal be swapped so that IUSE defaults will
> override profile settings?

Swapping them will take some influence away from the profiles and give it to the ebuilds. For example, it will no longer be possible for the profile to enable python globally and be sure that it applies to all ebuilds.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2008-01-03 19:33:05 UTC
No, defintely not. And while we are at it: I'd like to disallow pkginternal for global use flags in general. Gentoo is loosing consistency at all end, when we allow all and everything per ebuild.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-01-03 20:05:25 UTC
Well, this is a horrible suggestion, sorry, +1 on Comment #2. 

If the user wants to disable something, they are free to do so, or they are free to switch USE_ORDER on their own. Otherwise the profile defaults should be honored unless you are willing to migrate the *entire* tree from the profile defaults to pkginternal.
Comment 4 William Hubbs gentoo-dev 2008-01-04 01:16:22 UTC
Ok, I agree with comment #1.

I don't understand why we would need to disallow pkginternal as suggested in comment #2 though based on whether a use flag is local or global since the current stacking order does not allow pkginternal to override use flags that are set in the profiles or by the user.


Comment 5 SpanKY gentoo-dev 2008-01-04 05:24:13 UTC
IUSE defaults were created (and widely accepted) for good reason

their design was so that profiles trumped ebuilds