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 173091 [details] Build log
Although the package is autotools based, it uses handwritten rules to build the two programs. The build failed because the rules place $(LIBS) before the object files, so the libraries are discarded when --as-needed is used. The rules also ignore $LDFLAGS. In the end, it turned out to be smaller to replace the supplied Makefile.am than to patch it. The resulting Makefile.am in turn caused automake to require the addition of AM_PROG_CC_C_O, since I changed it to use automake rules to build the programs. This way, automake writes rules that respect $LDFLAGS, add $LIBS in the correct place, and provides better future proofing. I will attach the patch for configure.in, the new Makefile.am, and the patch for www-misc/mergelog-4.5-r1.ebuild. An autoreconf run is required after the Makefile.am changes. The -r1 ebuild already has such a run, whereas the -r0 ebuild does not.
Created attachment 177038 [details, diff] Patch configure.in to call AM_PROG_CC_C_O, which is required to use the new Makefile.am
Created attachment 177040 [details] Replacement src/Makefile.am: use automake directives instead of make rules
Created attachment 177042 [details, diff] Patch to mergelog-4.5-r1.ebuild to apply the patch from attachment #177038 [details, diff] and copy the Makefile.am from attachment #177040 [details]
Kevin can you just make the patch both change Makefile.am and fix configure.in? Would be easier to apply. Although I wonder if it's called for at all...
I can change that easily enough if you want. I chose to go this way because the replacement Makefile.am is smaller than a patch to convert the original Makefile.am into the one I supplied. The only line I kept from the original was "bin_PROGRAMS = ...".
fixed in cvs, thanks