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

Bug 267810

Summary: sys-apps/portage-2.2_rc31: flags in emerge --info pkg are sorted inappropriately
Product: Portage Development Reporter: Harald van Dijk (RETIRED) <truedfx>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077, 268228    
Attachments: remove the sort code

Description Harald van Dijk (RETIRED) gentoo-dev 2009-04-28 21:00:11 UTC
$ emerge --ignore-default-opts --info portage
Portage 2.2_rc31 (default/linux/x86/2008.0/developer/multilib, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 i686)
                        System Settings
System uname: Linux-2.6.29-gentoo-r1-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-2.0.0
Timestamp of tree: Tue, 28 Apr 2009 16:20:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
CFLAGS="-march=athlon64 -O2 -g"
CONFIG_PROTECT="/etc /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -g"
EMERGE_DEFAULT_OPTS="--noconfmem --verbose --with-bdeps=y"
FEATURES="assume-digests autopatch collision-protect cvs distlocks fixpackages installsources multilib-strict notitles parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test unmerge-orphans userfetch userpriv usersandbox"
LDFLAGS="-Xlinker -O1 -Xlinker --as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/etc/portage/layman/mozilla /etc/portage/layman/java-overlay /etc/portage/overlay/linamh /etc/portage/overlay /var/cvs/gentoo-x86"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi ada agg alsa aspell async bidi bindist bzip2 cairo cdda cdparanoia cdr chm cjk cli cracklib crypt cups curl custom-cflags custom-cxxflags custom-optimization cvs dbus debugger demo dhcp dia divx docbook dot dri dvd dvdnav dvdr dvdread eds emacs emboss esd evo expat fam ffmpeg filepicker flac ftp gcc64 gdbm gif git gmp gnome gnome-keyring gnustep gpg gstreamer gtk gucharmap hal haskell html htmlhandbook iconv icu idn inotify inquisitio ipv6 isdnlog ithreads jadetex java java5 java6 javascript jit jpeg kde kdeprefix kqemu latex ldap lesstif libffi libnotify mad mbox mdnsresponder-compat midi mikmod mmxext mozdevelop mp3 mpeg multilib ncurses nls nocxx nptl nptlonly nsplugin ntfs objc objc++ ogg opengl openmp oss pam pango pascal pch pcre pdf perl pg-intdatetime phonon pic plasma png portage ppds pppd preview-latex qa qt3support qt4 quicktime readline realmedia redland reflection rtc rtf samba sdl session snmp songs spell spl sql sqlite sqlite3 ssl startup-notification subversion svg swat sysfs tcl tcpd teletext test tetex theora threads tidy tiff timidity tk toolkit-scroll-bars tordns truetype unicode urandom usb v4l v4l2 vim-syntax visibility vlm vorbis webkit wmp x86 xcb xcomposite xim xine xml xorg xscreensaver xslt xulrunner 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 mmap_emul 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="*" USERLAND="GNU" VIDEO_CARDS="vesa"

                        Package Settings

sys-apps/portage-2.2_rc31 was built with the following:
USE="(multilib) -build -doc -epydoc (-selinux)" ELIBC="glibc" KERNEL="linux" LINGUAS="pl" USERLAND="GNU"
CFLAGS="-O2 -g -march=athlon64 -with-user-cflags"
CXXFLAGS="-O2 -g -march=athlon64 -with-user-cflags"
LDFLAGS="--as-needed -O1 -Xlinker -with-user-ldflags"

(Please ignore the custom compiler flags and profile -- if you really think this may be related to that I'll check on a clean system.)

The words in C/CXX/LDFLAGS have been sorted. This doesn't seem right; -Xlinker --as-needed is a perfectly valid LDFLAGS setting, but --as-needed -Xlinker would cause nothing but problems for anyone trying it, for obvious reasons. There are other multi-word options that cannot safely be reordered as well, so please display the order in which the flags actually appear in make.conf and/or /var/db/pkg.

I have not checked if this is a recent change.
Comment 1 Zac Medico gentoo-dev 2009-04-29 00:37:36 UTC
Created attachment 189789 [details, diff]
remove the sort code
Comment 2 Zac Medico gentoo-dev 2009-05-02 02:36:52 UTC
This is fixed in and 2.2_rc32.