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

Bug 332351

Summary: dev-vcs/mercurial-1.4.1: files built without respecting LDFLAGS found
Product: Gentoo Linux Reporter: Lie Ryan <lie.1296>
Component: Current packagesAssignee: Krzysztof Pawlik (RETIRED) <nelchael>
Status: RESOLVED INVALID    
Severity: normal CC: c1pher, djc
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lie Ryan 2010-08-11 19:02:31 UTC
* QA Notice: Files built without respecting LDFLAGS have been detected
 *  Please include the following list of files in your report:
 * /usr/lib64/python2.6/site-packages/mercurial/osutil.so
 * /usr/lib64/python2.6/site-packages/mercurial/parsers.so
 * /usr/lib64/python2.6/site-packages/mercurial/mpatch.so
 * /usr/lib64/python2.6/site-packages/mercurial/diffhelpers.so
 * /usr/lib64/python2.6/site-packages/mercurial/bdiff.so
 * /usr/lib64/python2.6/site-packages/mercurial/base85.so
 * /usr/lib64/python2.6/site-packages/hgext/inotify/linux/_inotify.so



Reproducible: Always




Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1-LR-37 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r1-LR-37-x86_64-AMD_Turion-tm-_64_X2-with-gentoo-1.12.13
Timestamp of tree: Wed, 11 Aug 2010 15:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo ftp://mirror.pacific.net.au/linux/Gentoo"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -z,now,-O1,--hash-style=gnu,--sort-common"
MAKEOPTS="-j2 --load-average 0.8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/java-overlay /usr/local/portage/layman/enlightenment /usr/userportage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 bash-completion beagle berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cupsddk cxx dbus dri dvdr esd fortran fuse gdbm gmp gnome gnome-keyring gpm gtk hal iconv imlib ipv6 laptop libnotify lm_sensors mmx mmxext modules mudflap multilib nautilus ncurses nforce2 nls nptl nptlonly nsplugin nvidia opengl openmp pam pcre perl pmu policykit pppd python readline reflection scanner session smp spl sse sse2 ssl sysfs tcpd threads unicode usb vim-syntax wifi xcb xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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 mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-vcs/mercurial-1.4.1 was built with the following:
USE="bash-completion (multilib) -bugzilla -emacs -gpg -test -tk -zsh-completion"
Comment 1 Dane Smith (RETIRED) gentoo-dev 2010-08-12 03:06:48 UTC
Pretty sure this is invalid. LDFLAGS are incorrect.

LDFLAGS="-Wl,-O1 -Wl,--as-needed -z,now,-O1,--hash-style=gnu,--sort-common"
should be
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,now,-O1,--hash-style=gnu,--sort-common"

portage sees --hash-style=gnu there, but the linker isn't using it because of the missing -Wl.

We just encounter this in bug 332353. I'm not going to change anything, but I'm pretty sure this can be CLOSED INVALID.