Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310087 - app-backup/bacula-3.0.3 fails with --as-needed
Summary: app-backup/bacula-3.0.3 fails with --as-needed
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Wolfram Schlich (RETIRED)
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2010-03-18 13:40 UTC by Thomas Beierlein
Modified: 2010-03-23 21:53 UTC (History)
3 users (show)

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

Build log with errors due to -Wl,--as-needed (build.log,430.22 KB, text/plain)
2010-03-18 13:41 UTC, Thomas Beierlein
Patch to work with --as-needed (bacula--as-needed.patch,1.88 KB, patch)
2010-03-18 13:46 UTC, Thomas Beierlein
Details | Diff
updated fix for --as-needed (bacula--as-needed.patch,1.89 KB, patch)
2010-03-18 19:27 UTC, Thomas Beierlein
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Beierlein gentoo-dev 2010-03-18 13:40:42 UTC
Package seems to compile and install without errors but misses some binaries. A check of the build log shows that some binaries could not be linked because of missing symbols of secondary libs. See attached build.log.

What seems weird is that the build process does not fail.
Comment 1 Thomas Beierlein gentoo-dev 2010-03-18 13:41:36 UTC
Created attachment 224111 [details]
Build log with errors due to -Wl,--as-needed
Comment 2 Thomas Beierlein gentoo-dev 2010-03-18 13:46:05 UTC
Created attachment 224113 [details, diff]
Patch to work with --as-needed

The attached patch fixes the problem on stable amd64 and x86. Needs to be positioned in files/3.0.3 and applied with epatch in src_prepare().
Comment 3 Thomas Beierlein gentoo-dev 2010-03-18 19:27:07 UTC
Created attachment 224175 [details, diff]
updated fix for --as-needed

Overlooked one problem in the last patch. It worked only if was already installed.

New patch looks for in its build directory, so it is also available during first install.
Comment 4 Wolfram Schlich (RETIRED) gentoo-dev 2010-03-23 10:14:33 UTC
Fixed in 5.0.1-r2.
Can you please report that bug upstream?
Comment 5 Thomas Beierlein gentoo-dev 2010-03-23 21:53:57 UTC
Ok, I will do it in next days.