/var/tmp/portage/dev-libs/openssl-0.9.8e/image/usr/bin/openssl [ 3] .hash HASH 08048188 000188 001588 04 A 5 0 4
Maybe you could elaborate on how did you come to the conclusion that your LDFLAGS are ignored, which ones are ignored and where's the problem. The above cryptic stuff unfortunately doesn't explain anything.
(In reply to comment #1) > Maybe you could elaborate on how did you come to the conclusion that your > LDFLAGS are ignored Some LDFLAGS can change existence of some sections in ELF files. I have such (at least) 2 flags in my LDFLAGS and one of them always change existence of some sections when isn't ignored. I changed /usr/lib/portage/bin/prepstrip, so that it now additionally runs readelf and grep and copy the output to the log file. I perform some tests (reading emerge logs) and >99,5% of results are correct. > which ones are ignored All. > and where's the problem. Ignoring LDLFAGS increases files sizes and decreases performance.
OK, that was about enough. 1/ Use common sense when filing bugs (like, what about mailing gentoo-dev mailing list first and asking about the best course of action here? 2/ If you have a patch, submit it *upstream* unless this is a *Gentoo-specific* issue.
Created attachment 143390 [details, diff] openssl-0.9.8g-respect-LDFLAGS.patch
Created attachment 143392 [details, diff] Patch to openssl-0.9.8g.ebuild
I have attached the patches.
fixed in a different way in cvs http://sources.gentoo.org/dev-libs/openssl/files/openssl-0.9.8h-ldflags.patch?rev=1.1
(In reply to comment #7) > fixed in a different way in cvs Unfortunately it doesn't work: * QA Notice: Files built without respecting LDFLAGS have been detected * Please include this file in your report: * /var/tmp/portage/dev-libs/openssl-0.9.8h-r1/temp/scanelf-ignored-LDFLAGS.log * /usr/bin/openssl
Still an issue with openssl-0.9.8k: QA: other QA Notice: Files built without respecting LDFLAGS have been detected Please include the following list of files in your report: /usr/bin/openssl emerge --info: Portage 2.2_rc28 (default/linux/amd64/2008.0/no-multilib, gcc-4.3.3-asneeded, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.28-gentoo-r4-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-glibc2.2.5 Timestamp of tree: Fri, 27 Mar 2009 21:45:01 +0000 app-shells/bash: 4.0_p10-r1 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.4-r2 dev-util/cmake: 2.6.3 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r1 sys-apps/sandbox: 1.6 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 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 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8-sse3 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/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/udev/rules.d" CXXFLAGS="-march=k8-sse3 -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.netnitco.net http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.osuosl.org/ http://gentoo.krasko.sk/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,-z,combreloc" LINGUAS="en en_US" MAKEOPTS="-j3" 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 /usr/local/portage/layman/vmware" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X Xaw3d a52 aac acpi akode alsa amd64 ao branding bzip2 cairo caps cddb cdparanoia cli consolekit cracklib crypt css cups curl dbus dga djvu dri dv dvd dvdr dvdread encode exif expat faac faad fam fbcon ffmpeg flac fontconfig fortran geoip ggi gif glib gmp gnutls gphoto2 gpm gs gtk hal hyperestraier iconv icu id3tag idn ieee1394 imagemagick imlib isdnlog ithreads java joystick jpegjpeg2k kdehiddenvisibility kontact lame lcms libsamplerate lm_sensors lzo mad matroska mbox midi mmap mmx mmxext mng modplug motif mp3mpeg msn mudflap musepack musicbrainz ncurses network network-cron nls nptl nptlonly nsplugin offensive ogg openal opengl openmp oscaross pam pcre pdf perl plasma plotutils png pppd qt4 quicktime readline reflection rle ruby samba schroedinger sdl session smp sndfile speex spell spl sse sse2 sse3 ssl startup-notification stats subversion suid svg sysfs syslog tcpd theora threads tiff truetype unicodeusb utempter vcd vim-syntax vnc vorbis wavpack wmf wxwindows x264 xcomposite xft xine xml xorg xpm xscreensaver xslt xv xvid xvmc zlib" ALSA_CARDS="emu10k1 usb-audio" 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_cachemime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Peter's newer parallel-build patch broke the ldflags patch http://sources.gentoo.org/dev-libs/openssl/openssl-0.9.8l-r2.ebuild?r1=1.3&r2=1.4 http://sources.gentoo.org/dev-libs/openssl/files/openssl-0.9.8h-ldflags.patch?r1=1.1&r2=1.2