Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181434 - app-misc/beep-1.2.2-r1: Ignored LDFLAGS: /usr/bin/beep
Summary: app-misc/beep-1.2.2-r1: Ignored LDFLAGS: /usr/bin/beep
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-09 16:55 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2009-05-03 02:20 UTC (History)
0 users

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


Attachments
beep-LDFLAGS.patch (beep-LDFLAGS.patch,291 bytes, patch)
2007-06-09 18:29 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details | Diff
beep-LDFLAGS.patch (beep-LDFLAGS.patch,375 bytes, patch)
2008-05-11 11:48 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 16:55:35 UTC
/var/tmp/portage/app-misc/beep-1.2.2-r1/image/usr/bin/beep
  [ 3] .hash            HASH           08048188 000188 0000b0 04   A  5   0  4
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-09 17:04:31 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:26:34 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 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-06-09 18:29:42 UTC
Created attachment 121607 [details, diff]
beep-LDFLAGS.patch
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2008-03-27 02:35:28 UTC
We currently don't have any policy about ignoring LDFLAGS being a bad thing, and adding that policy is outside the scope of this bug (unless it is documented somewhere and I'm missing it).
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-05-11 11:48:44 UTC
Created attachment 152835 [details, diff]
beep-LDFLAGS.patch

Updated patch.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-03 02:20:31 UTC
+  28 Mar 2009; <solar@gentoo.org> +files/beep-1.2.2-Makefile.patch,
+  beep-1.2.2-r1.ebuild:
+  - make beep respect LDFLAGS via basic Makefile cleanups