Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247715 - mail-filter/dk-milter: fails with forced --as-needed
Summary: mail-filter/dk-milter: fails with forced --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL: http://www.gentoo.org/proj/en/qa/asne...
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2008-11-20 13:35 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2008-12-12 06:41 UTC (History)
1 user (show)

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


Attachments
Build log (mail-filter:dk-milter-1.0.1:20081120-050227.log,19.37 KB, text/plain)
2008-11-20 13:36 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-20 13:35:46 UTC
I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details).

Check the attached build log.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-20 13:36:37 UTC
Created attachment 172477 [details]
Build log
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2008-12-11 21:12:16 UTC
Diego, this package don't use LDFLAGS var, so it cannot possibly be influenced by --as-needed thingie. 

I've tested it again and in my case just works. Apparently you don't have pthread library on your system, so I'll close this bug as INVALID.
Feel free to reopen it if you find other reason for this failure.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-11 21:36:06 UTC
Please read http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed .

When the summary says "forced --as-needed", the bug is there, and it's just hidden by the fact that the package does not respect LDFLAGS (which is also a bug on its own). My method bypasses the LDFLAGS variable, and acts on the compiler itself.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2008-12-12 06:41:01 UTC
Fixed in version 1.0.1-r1.

I have no idea how you managed to pass --as-needed to the linker. Is there an LDOPTS environment variable used by ld?