Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181438 - dev-libs/openssl-0.9.8k: Ignored LDFLAGS: /usr/bin/openssl
Summary: dev-libs/openssl-0.9.8k: Ignored LDFLAGS: /usr/bin/openssl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 327421
  Show dependency tree
 
Reported: 2007-06-09 17:03 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2014-04-27 14:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openssl-0.9.8g-respect-LDFLAGS.patch (openssl-0.9.8g-respect-LDFLAGS.patch,422 bytes, patch)
2008-02-13 03:33 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details | Diff
Patch to openssl-0.9.8g.ebuild (openssl-0.9.8g.ebuild.patch,814 bytes, patch)
2008-02-13 03:34 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-06-09 17:03:57 UTC
/var/tmp/portage/dev-libs/openssl-0.9.8e/image/usr/bin/openssl
  [ 3] .hash            HASH           08048188 000188 001588 04   A  5   0  4
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-09 17:06:07 UTC
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.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-06-09 17:27:49 UTC
(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.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-06-12 17:48:13 UTC
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.
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-02-13 03:33:24 UTC
Created attachment 143390 [details, diff]
openssl-0.9.8g-respect-LDFLAGS.patch
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-02-13 03:34:17 UTC
Created attachment 143392 [details, diff]
Patch to openssl-0.9.8g.ebuild
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-02-13 03:34:44 UTC
I have attached the patches.
Comment 7 SpanKY gentoo-dev 2008-06-21 05:36:08 UTC
fixed in a different way in cvs

http://sources.gentoo.org/dev-libs/openssl/files/openssl-0.9.8h-ldflags.patch?rev=1.1
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-07-29 16:53:21 UTC
(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
Comment 9 Steve Kutnar 2009-03-27 23:13:01 UTC
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