<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>181438</bug_id>
          
          <creation_ts>2007-06-09 17:03 0000</creation_ts>
          <short_desc>dev-libs/openssl-0.9.8k: Ignored LDFLAGS: /usr/bin/openssl</short_desc>
          <delta_ts>2009-08-25 12:46:34 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</bug_status>
          
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>arfrever@gentoo.org</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>anotherbearcatfan@yahoo.com</cc>
    
    <cc>davidepesa@gmail.com</cc>
    
    <cc>mmokrejs@ribosome.natur.cuni.cz</cc>

      

      
          <long_desc isprivate="0">
            <who>arfrever@gentoo.org</who>
            <bug_when>2007-06-09 17:03:57 0000</bug_when>
            <thetext>/var/tmp/portage/dev-libs/openssl-0.9.8e/image/usr/bin/openssl
  [ 3] .hash            HASH           08048188 000188 001588 04   A  5   0  4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-06-09 17:06:07 0000</bug_when>
            <thetext>Maybe you could elaborate on how did you come to the conclusion that your
LDFLAGS are ignored, which ones are ignored and where&apos;s the problem. The above
cryptic stuff unfortunately doesn&apos;t explain anything.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arfrever@gentoo.org</who>
            <bug_when>2007-06-09 17:27:49 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; Maybe you could elaborate on how did you come to the conclusion that your
&gt; 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&apos;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 &gt;99,5% of results are correct.

&gt; which ones are ignored

All.

&gt; and where&apos;s the problem.

Ignoring LDLFAGS increases files sizes and decreases performance.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-06-12 17:48:13 0000</bug_when>
            <thetext>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.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arfrever@gentoo.org</who>
            <bug_when>2008-02-13 03:33:24 0000</bug_when>
            <thetext>Created an attachment (id=143390)
openssl-0.9.8g-respect-LDFLAGS.patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arfrever@gentoo.org</who>
            <bug_when>2008-02-13 03:34:17 0000</bug_when>
            <thetext>Created an attachment (id=143392)
Patch to openssl-0.9.8g.ebuild

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arfrever@gentoo.org</who>
            <bug_when>2008-02-13 03:34:44 0000</bug_when>
            <thetext>I have attached the patches.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-06-21 05:36:08 0000</bug_when>
            <thetext>fixed in a different way in cvs

http://sources.gentoo.org/dev-libs/openssl/files/openssl-0.9.8h-ldflags.patch?rev=1.1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arfrever@gentoo.org</who>
            <bug_when>2008-07-29 16:53:21 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; fixed in a different way in cvs

Unfortunately it doesn&apos;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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>anotherbearcatfan@yahoo.com</who>
            <bug_when>2009-03-27 23:13:01 0000</bug_when>
            <thetext>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=&quot;amd64 ~amd64&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-march=k8-sse3 -O2 -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/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&quot;
CXXFLAGS=&quot;-march=k8-sse3 -O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
EMERGE_DEFAULT_OPTS=&quot;--with-bdeps y&quot;
FEATURES=&quot;distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://gentoo.netnitco.net http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.osuosl.org/ http://gentoo.krasko.sk/&quot;
LANG=&quot;en_US.UTF-8&quot;
LC_ALL=&quot;en_US.UTF-8&quot;
LDFLAGS=&quot;-Wl,-O1 -Wl,--hash-style=gnu -Wl,-z,combreloc&quot;
LINGUAS=&quot;en en_US&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_CONFIGROOT=&quot;/&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage /usr/local/portage/layman/vmware&quot;
SYNC=&quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;emu10k1 usb-audio&quot; ALSA_PCM_PLUGINS=&quot;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&quot; APACHE2_MODULES=&quot;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&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;joystick evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en en_US&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nvidia&quot;
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>143390</attachid>
            <date>2008-02-13 03:33 0000</date>
            <desc>openssl-0.9.8g-respect-LDFLAGS.patch</desc>
            <filename>openssl-0.9.8g-respect-LDFLAGS.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGFwcHMvTWFrZWZpbGUKKysrIGFwcHMvTWFrZWZpbGUKQEAgLTE1Niw3ICsxNTYsNyBAQAog
CUxJQlJBUklFUz0iJChMSUJTU0wpICQoTElCS1JCNSkgJChMSUJDUllQVE8pIiA7IFwKIAkkKE1B
S0UpIC1mICQoVE9QKS9NYWtlZmlsZS5zaGFyZWQgLWUgXAogCQlBUFBOQU1FPSQoRVhFKSBPQkpF
Q1RTPSIkKFBST0dSQU0pLm8gJChFX09CSikiIFwKLQkJTElCREVQUz0iJChQRVhfTElCUykgJCRM
SUJSQVJJRVMgJChFWF9MSUJTKSIgXAorCQlMREZMQUdTPSJATERGTEFHU0AiIExJQkRFUFM9IiQo
UEVYX0xJQlMpICQkTElCUkFSSUVTICQoRVhfTElCUykiIFwKIAkJbGlua19hcHAuJCR7c2hsaWJf
dGFyZ2V0fQogCS0oY2QgLi47IFwKIAkgIE9QRU5TU0w9ImBwd2RgL3V0aWwvb3BlbnNzbHdyYXAu
c2giOyBleHBvcnQgT1BFTlNTTDsgXAo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>143392</attachid>
            <date>2008-02-13 03:34 0000</date>
            <desc>Patch to openssl-0.9.8g.ebuild</desc>
            <filename>openssl-0.9.8g.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGRldi1saWJzL29wZW5zc2wvb3BlbnNzbC0wLjkuOGcuZWJ1aWxkCisrKyBkZXYtbGlicy9v
cGVuc3NsL29wZW5zc2wtMC45LjhnLmVidWlsZApAQCAtMzUsNiArMzUsNyBAQAogCWVwYXRjaCAi
JHtGSUxFU0RJUn0iLyR7UE59LTAuOS44LW1ha2VkZXBlbmQucGF0Y2ggIzE0OTU4MwogCWVwYXRj
aCAiJHtGSUxFU0RJUn0iLyR7UE59LTAuOS44ZS1tYWtlLnBhdGNoICMxNDYzMTYKIAllcGF0Y2gg
IiR7RklMRVNESVJ9Ii8ke1BOfS0wLjkuOGUtYnNkLXNwYX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