Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149353 - portage doesn't handle USE in package.use for cross ebuild
Summary: portage doesn't handle USE in package.use for cross ebuild
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-27 14:50 UTC by Cédric Krier
Modified: 2006-10-01 09:04 UTC (History)
0 users

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 Cédric Krier gentoo-dev 2006-09-27 14:50:40 UTC
When you put an USE flag in package.use for an ebuild from crossdev, portage doesn't use it.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-27 15:51:37 UTC
Eh, what a wealth of info. Post an example of such package.use entry, emerge -pv output and emerge --info and reopen then.
Comment 2 Cédric Krier gentoo-dev 2006-09-28 01:21:00 UTC
package.use:

cross-mingw32/gcc -hardened



emerge -pv cross-mingw32/gcc:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] cross-mingw32/gcc-4.1.1-r1  USE="hardened* nls (-altivec) -bootstrap -build -doc -fortran -gcj -gtk -ip28 -ip32r10k -mudflap -multilib -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB [1] 

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
 [2] /usr/portage/local/layman/sunrise

emerge --info:

Portage 2.1.1 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-hardened-r11 i686)
=================================================================
System uname: 2.6.16-hardened-r11 i686 AMD Athlon(TM) XP 2400+
Gentoo Base System version 1.12.5
Last Sync: Wed, 27 Sep 2006 18:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X alsa bash-completion bzip2 caps cdr crypt cups dedicated divx4linux dlloader dri dv dvb dvd dvdread elibc_glibc encode fam fbcon foomaticdb gdbm geoip ggi gnutls gtk gtk2 hardened imap input_devices_keyboard input_devices_mouse ipv6 javascript jpeg kernel_linux lcms libcaca lirc lirc_devices_leadtek_pvr2000 logrotate matrox mbox mmx mng motif mozsvg mpeg nas nls nptl nptlonly nsplugin offensive opengl oss pam pcre pic png ppds readline samba sdl sse ssl svg tcpd theora threads tiff truetype unicode userland_GNU userlocales v4l v4l2 video_cards_nv video_cards_vesa win32codecs wmf x86 xface xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 3 Marius Mauch (RETIRED) gentoo-dev 2006-10-01 07:29:39 UTC
You haven't set USE=hardened in your environment by chance?
Do other packages and/or flags in package.use work for you?
What does `python -c 'import portage; print portage.settings.pusedict'` say?
Comment 4 Cédric Krier gentoo-dev 2006-10-01 07:52:27 UTC
(In reply to comment #3)
> You haven't set USE=hardened in your environment by chance?

Yes, I use hardened profile

> Do other packages and/or flags in package.use work for you?

Yes, they works. It seems it doesn't work for package from crossdev

> What does `python -c 'import portage; print portage.settings.pusedict'` say?
> 
{'dev-lang/php': {'dev-lang/php': ['cli', 'apache2', 'dba']}, 'net-irc/irssi': {'net-irc/irssi': ['perl']}, 'media-libs/win32codecs': {'media-libs/win32codecs': ['real']}, 'net-wireless/prism54': {'net-wireless/prism54': ['pcmcia']}, 'cross-i586-pc-linux-gnu/linux-headers': {'cross-i586-pc-linux-gnu/linux-headers': ['-_E_CROSS_HEADERS_ONLY']}, 'app-editors/emacs': {'app-editors/emacs': ['-X', '-motif', 'leim']}, 'x11-wm/dwm': {'x11-wm/dwm': ['savedconfig']}, 'media-video/vlc': {'media-video/vlc': ['freetype', 'httpd', 'stream', 'v4l', 'vlm', 'ffmpeg', 'flac', 'theora', '-nsplugin']}, 'media-libs/tiff': {'media-libs/tiff': ['lzw-tiff']}, 'media-gfx/pornview': {'media-gfx/pornview': ['mplayer']}, 'cross-i586-pc-linux-gnu/glibc': {'cross-i586-pc-linux-gnu/glibc': ['-_E_CROSS_HEADERS_ONLY']}, 'dev-libs/pwlib': {'dev-libs/pwlib': ['ldap']}, 'app-emulation/pearpc': {'app-emulation/pearpc': ['sdl', 'jit']}, 'games-fps/nexuiz': {'games-fps/nexuiz': ['sdl']}, 'net-im/centericq': {'net-im/centericq': ['msn', 'rss', 'irc']}, 'media-sound/chuck': {'media-sound/chuck': ['-jack', 'examples']}, 'media-sound/sndpeek': {'media-sound/sndpeek': ['-oss', '-jack', 'alsa']}, 'cross-mingw32/gcc': {'cross-mingw32/gcc': ['-boundschecking', '-gtk', '-gcj', '-mudflap', '-objc', '-objc++', '-objc-gc']}, 'app-text/nopaste': {'app-text/nopaste': ['-X']}, 'media-libs/rte': {'media-libs/rte': ['divx4linux']}, 'media-video/mplayer': {'media-video/mplayer': ['cdparanoia', '3dnowext', 'aac', 'dga', 'dts', 'live', 'lzo', 'matroska', 'mmxext', 'musepack', 'real', 'rtc', 'xanim', 'tga', 'xvmc', '-gtk', 'aalib', 'directfb', 'esd', 'gif', 'mad', 'openal', 'opengl', 'png', 'sdl', 'svg', 'truetype', 'vorbis', 'xvid', 'svga']}, 'dev-util/git': {'dev-util/git': ['-gtk']}, 'x11-base/xorg-x11': {'x11-base/xorg-x11': ['bitmap-fonts', '-font-server', 'xv', 'truetype-fonts', 'type1-fonts', '-hardened', '-dlloader', 'opengl']}, 'app-emulation/qemu-softmmu': {'app-emulation/qemu-softmmu': ['kqemu', 'sdl']}, 'dev-lang/ruby': {'dev-lang/ruby': ['-tcltk']}, 'dev-php/php': {'dev-php/php': ['dba', 'gd', 'session', '-hardened']}, 'mail-mta/postfix': {'mail-mta/postfix': ['-mysql', 'sasl']}, 'media-libs/xine-lib': {'media-libs/xine-lib': ['win32codecs', 'ffmpeg', 'v4l', 'asf']}, 'net-fs/samba': {'net-fs/samba': ['libclamav', 'oav']}, 'net-mail/mailman': {'net-mail/mailman': ['postfix']}, 'dev-util/subversion': {'dev-util/subversion': ['-apache2']}, 'sys-libs/pam': {'sys-libs/pam': ['pwdb']}, 'net-dns/avahi': {'net-dns/avahi': ['dbus']}, 'app-office/abiword': {'app-office/abiword': ['spell']}, 'net-dialup/rp-pppoe': {'net-dialup/rp-pppoe': ['-X']}, 'net-im/bitlbee': {'net-im/bitlbee': ['msn']}, 'media-libs/libcaca': {'media-libs/libcaca': ['ncurses']}, 'net-im/ekiga': {'net-im/ekiga': ['avahi']}, 'media-sound/miniaudicle': {'media-sound/miniaudicle': ['-jack']}, 'x11-terms/rxvt-unicode': {'x11-terms/rxvt-unicode': ['truetype']}, 'app-misc/lirc': {'app-misc/lirc': ['udev']}, 'media-gfx/gimageview': {'media-gfx/gimageview': ['mplayer']}, 'games-strategy/freecnc': {'games-strategy/freecnc': ['nocd']}, 'games-fps/tremulous': {'games-fps/tremulous': ['-openal']}, 'dev-libs/wx-xmingw': {'dev-libs/wx-xmingw': ['monolithic']}, 'mail-filter/amavisd-new': {'mail-filter/amavisd-new': ['-mysql']}, 'sys-apps/lm_sensors': {'sys-apps/lm_sensors': ['sensord']}, 'net-www/apache': {'net-www/apache': ['no-suexec']}, 'dev-util/catalyst': {'dev-util/catalyst': ['ccache']}, 'www-client/mozilla-firefox': {'www-client/mozilla-firefox': ['mozsvg']}, 'x11-misc/xscreensaver': {'x11-misc/xscreensaver': ['-opengl', '-xinerama']}, 'net-wireless/kismet': {'net-wireless/kismet': ['ethereal']}, 'net-fs/shfs': {'net-fs/shfs': ['-X']}, 'net-misc/openssh': {'net-misc/openssh': ['chroot', 'hpn']}, 'app-emulation/wine': {'app-emulation/wine': ['ncurses', 'hal', 'dbus', 'glut']}, 'net-dns/bind': {'net-dns/bind': ['-mysql']}, 'x11-misc/dmenu': {'x11-misc/dmenu': ['savedconfig']}, 'media-libs/libsdl': {'media-libs/libsdl': ['svga']}, 'dev-php/mod_php': {'dev-php/mod_php': ['dba', 'gd', 'session']}, 'app-crypt/gnupg': {'app-crypt/gnupg': ['-X']}, 'net-www/mozplugger': {'net-www/mozplugger': ['firefox']}, 'net-misc/unison': {'net-misc/unison': ['-gtk', '-gtk2']}, 'media-gfx/imagemagick': {'media-gfx/imagemagick': ['graphviz', 'jbig']}, 'x11-libs/wxGTK': {'x11-libs/wxGTK': ['doc']}, 'cross-i586-pc-linux-gnu/gcc': {'cross-i586-pc-linux-gnu/gcc': ['-boundschecking', '-gtk', '-gcj', '-mudflap', '-objc', '-objc++', '-objc-gc']}, 'app-mobilephone/gnokii': {'app-mobilephone/gnokii': ['sms']}, 'app-admin/webalizer': {'app-admin/webalizer': ['-nls']}, 'dev-libs/libxml2': {'dev-libs/libxml2': ['python']}, 'net-wireless/ndiswrapper': {'net-wireless/ndiswrapper': ['usb']}, 'app-misc/screen': {'app-misc/screen': ['multiuser']}, 'sys-devel/gcc': {'sys-devel/gcc': ['-hardened', 'fortran']}}


Comment 5 Marius Mauch (RETIRED) gentoo-dev 2006-10-01 08:39:13 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > You haven't set USE=hardened in your environment by chance?
> 
> Yes, I use hardened profile

Not what I asked, but doesn't matter (see below).

> > What does `python -c 'import portage; print portage.settings.pusedict'` say?
> > 
> {'cross-mingw32/gcc': ['-boundschecking', '-gtk', '-gcj', '-mudflap', '-objc',
> '-objc++', '-objc-gc']}

Seems like you have another line for that package overriding the one with the -hardened.
Comment 6 Cédric Krier gentoo-dev 2006-10-01 09:04:15 UTC
> 
> Seems like you have another line for that package overriding the one with the
> -hardened.
> 

You are right. I haven't see that there was already a line. I think it is crossdev that added this line. I merge the lines and it works.
Thanks.