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
Created attachment 172667 [details] Build log
Created attachment 179507 [details, diff] Patch to switch bwmon Makefile to use built-in GNU make rule to compile bwmon The upstream Makefile had a manual rule that did not provide a way to specify libraries in the correct place. Remove the rule in favor of letting GNU make infer how to build it based on dependencies and tradition. A patch to the ebuild to change the sed expression is also required. I will attach that next.
Created attachment 179509 [details, diff] Patch to bwmon ebuild to add a line to apply the preceding patch, and to update the sed call The ebuild uses a sed call to update LDFLAGS. This is not necessary, but the use of LDFLAGS is wrong here. Change the sed call to rewrite LDFLAGS to be LDLIBS. Also, change the rewrite of the CFLAGS line to append user CFLAGS instead of prepending them.
Created attachment 179511 [details, diff] Replacement patch for bwmon Makefile Though the first patch compiled correctly, the use of an alternate output directory caused make not to build the final image when using an implicit rule. Add the standard linking rule to ensure that the image is built and placed in the correct directory.
Thanks for the patch Kevin, but I fixed it by just not using the Makefile at all :)