Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 181438
Alias:
Product:
Component:
Status: REOPENED
Resolution:
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
openssl-0.9.8g-respect-LDFLAGS.patch openssl-0.9.8g-respect-LDFLAGS.patch patch Arfrever Frehtes Taifersar Arahesis 2008-02-13 03:33 0000 422 bytes Details | Diff
openssl-0.9.8g.ebuild.patch Patch to openssl-0.9.8g.ebuild patch Arfrever Frehtes Taifersar Arahesis 2008-02-13 03:34 0000 814 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 181438 depends on: Show dependency tree
Bug 181438 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.








View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-06-09 17:03 0000
/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 From Jakub Moc (RETIRED) 2007-06-09 17:06:07 0000 -------
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 From Arfrever Frehtes Taifersar Arahesis 2007-06-09 17:27:49 0000 -------
(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 From Jakub Moc (RETIRED) 2007-06-12 17:48:13 0000 -------
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 From Arfrever Frehtes Taifersar Arahesis 2008-02-13 03:33:24 0000 -------
Created an attachment (id=143390) [details]
openssl-0.9.8g-respect-LDFLAGS.patch

------- Comment #5 From Arfrever Frehtes Taifersar Arahesis 2008-02-13 03:34:17 0000 -------
Created an attachment (id=143392) [details]
Patch to openssl-0.9.8g.ebuild

------- Comment #6 From Arfrever Frehtes Taifersar Arahesis 2008-02-13 03:34:44 0000 -------
I have attached the patches.

------- Comment #7 From SpanKY 2008-06-21 05:36:08 0000 -------
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 From Arfrever Frehtes Taifersar Arahesis 2008-07-29 16:53:21 0000 -------
(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 From Steve Kutnar 2009-03-27 23:13:01 0000 -------
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

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug