Bug 181441 - kde-base/{kdebase-3.5.8-r6,kdm-3.5.8-r1}: Ignored LDFLAGS: /usr/kde/3.5/bin/kdm
Bug#: 181441 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: kde@gentoo.org Reported By: arfrever@gentoo.org
Component: KDE
URL: 
Summary: kde-base/{kdebase-3.5.8-r6,kdm-3.5.8-r1}: Ignored LDFLAGS: /usr/kde/3.5/bin/kdm
Keywords:  
Status Whiteboard: 
Opened: 2007-06-09 17:06 0000
Description:   Opened: 2007-06-09 17:06 0000
/var/tmp/portage/kde-base/kdebase-3.5.7/image/usr/kde/3.5/bin/kdm
  [ 3] .hash            HASH           08048188 000188 000510 04   A  5   0  4

------- Comment #1 From Jakub Moc (RETIRED) 2007-06-09 17:07:28 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:28:18 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:14 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 00:59:43 0000 -------
Created an attachment (id=143375) [details]
kdm-3.5.8-respect-LDFLAGS.patch

------- Comment #5 From Arfrever Frehtes Taifersar Arahesis 2008-02-13 01:00:11 0000 -------
I have attached the patch.

------- Comment #6 From Ingmar Vanhassel (RETIRED) 2008-02-21 13:23:02 0000 -------
Fixed in 3.5.9, thanks for the patch.