Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USE flags don't work
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
Patcave
n00b
n00b


Joined: 11 Jan 2013
Posts: 5
Location: Stuttgart, Germany

PostPosted: Fri Jan 11, 2013 1:09 pm    Post subject: USE flags don't work Reply with quote

Hi,

I've following problem with a gentoo system at work:

/etc/make.conf
Code:
CFLAGS="-O2 -mtune=core2 -fomit-frame-pointer -pipe"
CXXFLAGS="-O2 -mtune=core2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
USE="mmx perl python sse sse2 utf8 nls unicode -gtk -gnome -qt -X -cups -kde -dvd -alsa -cdr -dvdr -opengl -java -ipv6"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo"
MAKEOPTS="-j1"

/etc/portage/package.use
Code:
www-servers/lighttpd doc uploadprogress

Using this configuration ipv6 is still included:
Code:
gentoo ~ # emerge -puvND lighttpd

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

Calculating dependencies... done!
[ebuild     U  ] app-misc/mime-types-9 [8] 16 kB
[ebuild  N     ] dev-python/python-exec-0.1.1  PYTHON_TARGETS="(jython2_5) (pypy1_9) (pypy2_0) (python2_5) (python2_6) (python2_7) (python3_1) (python3_2) (-pypy1_8) (-python3_3)" 63 kB
[ebuild     U  ] sys-apps/debianutils-4.3.4 [4.3.2] USE="-static" 219 kB
[ebuild   R    ] sys-apps/portage-2.1.11.31  USE="(ipc) -build -doc -epydoc (-pypy2_0) -python2 -python3 (-selinux) -xattr (-pypy1_9%)" LINGUAS="-pl" 829 kB
[ebuild     U  ] sys-devel/autoconf-2.69:2.5 [2.68:2.5] USE="-emacs" 1,187 kB
[ebuild  NS    ] dev-lang/python-2.7.3-r2:2.7 [3.2.3:3.2] USE="gdbm ipv6 ncurses readline ssl threads (wide-unicode) xml -berkdb -build -doc -examples -sqlite -tk -wininst" 11,531 kB
[ebuild  N     ] dev-python/setuptools-0.6.30-r1  PYTHON_TARGETS="python2_7 python3_2 -python2_5 -python2_6 -python3_1" 624 kB
[ebuild  N     ] dev-python/pygments-1.5  USE="-doc {-test}" 3,626 kB
[ebuild  N     ] dev-python/docutils-0.9.1  USE="-glep" 1,506 kB
[ebuild  N     ] www-servers/lighttpd-1.4.32  USE="bzip2 doc gdbm ipv6 pcre ssl uploadprogress zlib -fam -kerberos -ldap -libev -lua -memcache -minimal -mmap -mysql -php -rrdtool (-selinux) {-test} -webdav -xattr" 666 kB

Total: 10 packages (3 upgrades, 5 new, 1 in new slot, 1 reinstall), Size of downloads: 20,261 kB

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

gentoo ~ #


But if I change the /etc/portage/package.use like this
Code:
www-servers/lighttpd doc uploadprogress -ipv6

ipv6 is not longer used (for the specified package)
Code:
gentoo ~ # emerge -puvND lighttpd

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

Calculating dependencies... done!
[ebuild     U  ] app-misc/mime-types-9 [8] 16 kB
[ebuild  N     ] dev-python/python-exec-0.1.1  PYTHON_TARGETS="(jython2_5) (pypy1_9) (pypy2_0) (python2_5) (python2_6) (python2_7) (python3_1) (python3_2) (-pypy1_8) (-python3_3)" 63 kB
[ebuild     U  ] sys-apps/debianutils-4.3.4 [4.3.2] USE="-static" 219 kB
[ebuild   R    ] sys-apps/portage-2.1.11.31  USE="(ipc) -build -doc -epydoc (-pypy2_0) -python2 -python3 (-selinux) -xattr (-pypy1_9%)" LINGUAS="-pl" 829 kB
[ebuild     U  ] sys-devel/autoconf-2.69:2.5 [2.68:2.5] USE="-emacs" 1,187 kB
[ebuild  NS    ] dev-lang/python-2.7.3-r2:2.7 [3.2.3:3.2] USE="gdbm ipv6 ncurses readline ssl threads (wide-unicode) xml -berkdb -build -doc -examples -sqlite -tk -wininst" 11,531 kB
[ebuild  N     ] dev-python/setuptools-0.6.30-r1  PYTHON_TARGETS="python2_7 python3_2 -python2_5 -python2_6 -python3_1" 624 kB
[ebuild  N     ] dev-python/pygments-1.5  USE="-doc {-test}" 3,626 kB
[ebuild  N     ] dev-python/docutils-0.9.1  USE="-glep" 1,506 kB
[ebuild  N     ] www-servers/lighttpd-1.4.32  USE="bzip2 doc gdbm pcre ssl uploadprogress zlib -fam -ipv6 -kerberos -ldap -libev -lua -memcache -minimal -mmap -mysql -php -rrdtool (-selinux) {-test} -webdav -xattr" 666 kB

Total: 10 packages (3 upgrades, 5 new, 1 in new slot, 1 reinstall), Size of downloads: 20,261 kB

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

gentoo ~ #


Anyone out there who can say me what's going wrong? Is it my mistake or does something work wrong?
Thanks so far.
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1181
Location: Italy

PostPosted: Fri Jan 11, 2013 1:59 pm    Post subject: Reply with quote

EDIT: removed wrong informations.

By the way, you should read Portage news messages:
Quote:
* IMPORTANT: 5 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.

You can do this with eselect news, as emerge says.


Last edited by fturco on Fri Jan 11, 2013 6:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
bogumillaska
n00b
n00b


Joined: 11 Jan 2013
Posts: 1
Location: Warszawa

PostPosted: Fri Jan 11, 2013 2:06 pm    Post subject: Re: USE flags don't work Reply with quote

And you dont have an entry in /etc/portage/package.use like this
Code:
dev-lang/python ipv6


According to Gentoo Docs :

Code:

The precedence for the USE setting is, ordered by priority (first has lowest priority):

    Default USE setting declared in the make.defaults files part of your profile
    User-defined USE setting in /etc/portage/make.conf
    User-defined USE setting in /etc/portage/package.use
    User-defined USE setting as environment variable

_________________
LaskaB
Back to top
View user's profile Send private message
Patcave
n00b
n00b


Joined: 11 Jan 2013
Posts: 5
Location: Stuttgart, Germany

PostPosted: Fri Jan 11, 2013 4:28 pm    Post subject: Reply with quote

I did this entry in /etc/portage/package.use to point out that the configurations in /etc/make.conf don't produce any effect.

According to Gentoo Docs (as bogumillaska commented and I thought):
Quote:
The precedence for the USE setting is, ordered by priority (first has lowest priority):

Default USE setting declared in the make.defaults files part of your profile
User-defined USE setting in /etc/portage/make.conf
User-defined USE setting in /etc/portage/package.use
User-defined USE setting as environment variable


lighttpd should have been build without ipv6 because I disabled it in /etc/make.conf and didn't enable it again - neither in /etc/portage/package.use nor in the environment variable. And also python should have been build with ipv6 disabled (because of the configuration in /etc/make.conf).
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jan 11, 2013 4:32 pm    Post subject: Reply with quote

Something funny going on.
Code:
emerge --info
please, without the flag disabled in /etc/portage/package.use.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Patcave
n00b
n00b


Joined: 11 Jan 2013
Posts: 5
Location: Stuttgart, Germany

PostPosted: Fri Jan 11, 2013 4:42 pm    Post subject: Reply with quote

Code:
gentoo ~ # emerge --info
Portage 2.1.11.31 (default/linux/x86/10.0, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gento                                                                                                                                                             o i686)
=================================================================
System uname: Linux-3.5.7-gentoo-i686-Intel-R-_Xeon-R-_CPU_E5520_@_2.27GHz-with-                                                                                                                                                             gentoo-2.1
Timestamp of tree: Mon, 07 Jan 2013 15:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          3.2.3
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo                                                                                                                                                             -release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild                                                                                                                                                             -locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms s                                                                                                                                                             trict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress                                                                                                                                                              --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/                                                                                                                                                             distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bindist bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm i                                                                                                                                                             conv ipv6 modules mudflap ncurses nls nptl openmp pam pcre pppd readline session                                                                                                                                                              ssl tcpd unicode x86 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87                                                                                                                                                             x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel i                                                                                                                                                             ntel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_                                                                                                                                                             PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks ie                                                                                                                                                             c958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate rout                                                                                                                                                             e share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd                                                                                                                                                              actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_fi                                                                                                                                                             le authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user aut                                                                                                                                                             oindex cache cgi cgid 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 m                                                                                                                                                             ime_magic negotiation rewrite setenvif speling status unique_id userdir usertrac                                                                                                                                                             k vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita                                                                                                                                                              karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory                                                                                                                                                              rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate ever                                                                                                                                                             more fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver                                                                                                                                                              oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx                                                                                                                                                             " INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz                                                                                                                                                              cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS                                                                                                                                                             ="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARG                                                                                                                                                             ET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19"                                                                                                                                                              USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon                                                                                                                                                              savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd p                                                                                                                                                             knock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarp                                                                                                                                                             it sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORT                                                                                                                                                             AGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXT                                                                                                                                                             RA_OPTS, USE_PYTHON

gentoo ~ #
Back to top
View user's profile Send private message
Patcave
n00b
n00b


Joined: 11 Jan 2013
Posts: 5
Location: Stuttgart, Germany

PostPosted: Fri Jan 11, 2013 5:47 pm    Post subject: Reply with quote

Same problem over there: https://forums.gentoo.org/viewtopic-t-947574.html
Sorry for opening a new thread, maybe we get this problem solved together.
Back to top
View user's profile Send private message
jrussia
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2012
Posts: 89
Location: Chicago

PostPosted: Fri Jan 11, 2013 6:30 pm    Post subject: Reply with quote

You likely have something in /etc/portage superseding /etc/make.conf, since it doesn't look like its settings are being used by emerge. Post the results of
Code:
ls /etc/portage
perhaps.
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sat Jan 12, 2013 3:01 am    Post subject: Reply with quote

It's simple!!!!

/etc/portage/make.conf is read last and will override any settings from /etc/make.conf.

PLEASE use one or the other, NOT BOTH!.

UNLESS you know what you are doing, only then can it be beneficial to use both.

For ordinary users it is just confusing and causes problems like yours.

In order for you to use both with a USE= setting, you NEED to tell it to include the settings in USE up to this point.

/etc/portage/make.conf:
USE="${USE}  foo bar baz"


You didn't in your "/etc/portage/make.conf" so it started USE= fresh, erasing any settings from "/etc/make.conf"
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
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