Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233077 - Add QA check for respecting LDFLAGS
Summary: Add QA check for respecting LDFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: ldflags 210077 216231
  Show dependency tree
 
Reported: 2008-07-26 23:46 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2010-08-09 20:51 UTC (History)
0 users

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


Attachments
Patch (portage-LDFLAGS.patch,1.87 KB, patch)
2008-07-26 23:47 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 2008-07-26 23:46:11 UTC
Portage should contain QA check for respecting LDFLAGS.
This check should be run when LDFLAGS contain --hash-style=gnu, because files built with this flag don't contain .hash sections.
The check should be disabled for packages with ${PN}=*-bin.
The QA_DT_HASH variable can be set in ebuilds to avoid false positives.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-07-26 23:47:10 UTC
Created attachment 161448 [details, diff]
Patch
Comment 2 Zac Medico gentoo-dev 2008-07-27 05:09:19 UTC
This is great, thanks!
Comment 3 Fabian Groffen gentoo-dev 2008-07-27 09:25:16 UTC
how about using
   if [[ " ${LDFLAGS} " == *" --hash-style=gnu "* ]] && ...
instead such that you're sure to only match hash-style "gnu"?
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-07-27 15:55:59 UTC
(In reply to comment #3)
> how about using
>    if [[ " ${LDFLAGS} " == *" --hash-style=gnu "* ]] && ...
> instead such that you're sure to only match hash-style "gnu"?

It usually wouldn't match this flag.
Comment 5 Zac Medico gentoo-dev 2008-07-28 10:42:27 UTC
This is fixed in 2.2_rc4.