The attached patch allows to build libwww with --as-needed ldflag. I also suggest to change the ebuild to get rid of all the part between "export WANT_AUTOMAKE" to "autoconf" with an "eautoreconf" call (after inheriting autotools eclass) to simplify it (and dropping ppc-macos special case). Thanks, Diego
Created attachment 76257 [details, diff] libwww-5.4.0-asneeded.patch
Created attachment 76324 [details, diff] libwww-5.4.0-asneeded.patch Updated patch to fix a parallel make issue.
Created attachment 76325 [details, diff] libwww-5.4.0-noexport.patch This patch is needed to drop Externls rule that breaks as part of the config/ directory is not shipped with the release tarball.
Created attachment 76326 [details, diff] Ebuild patch This finally is the patched ebuild I'm using. I also dropped the ppc-macos conditional as I'm trying to get rid of it in the whole tree.
Created attachment 76328 [details] automake fails on ppc-macos ppc-macos doesn't like the eautoreconf, see attach.
Created attachment 76329 [details, diff] libwww-5.4.0-automake-osx.patch This should allow to build it on osx, time to see if it still works on Linux, tho.
Created attachment 76330 [details, diff] Ebuild patch 2 Ok, I added the patch, as in the attached ebuild patch 2. It doesn't compile: make[3]: Nothing to be done for `all-am'. Making all in Library Making all in src make all-recursive Making all in . Makefile:1161: *** Recursive variable `CPPFLAGS' references itself (eventually). Stop. make[4]: *** [all-recursive] Error 1 make[3]: *** [all] Error 2 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 !!! ERROR: net-libs/libwww-5.4.0-r4 failed. !!! Function src_compile, Line 71, Exitcode 2 !!! Compilation failed
Created attachment 76331 [details, diff] libwww-5.4.0-automake-osx.patch Just drop $(CPPFLAGS), it's not set anywhere anyway.
ok, compiles. The only notable difference I made is that I named the patch libwww-5.4.0-automake-macos.patch instead of libwww-5.4.0-automake-osx.patch
Now in CVS. Thanks.
Created attachment 86732 [details] automake (still) fails on ppc-macos Can anyone else confirm that this patch works on ppc-macos? r5 fails for me at automake during eautoreconf. Attached is my automake output.
flameeyes, it seems your changes broke ppc-macos autoreconf. I removed the ppc-macos keyword from -r5.
It is probably an issue with automake-1.6.3; if it is we could drop this since on prefix it will be fine.
agreed, -r4 works fine.
I think since we (ppc-macos) dealt with this, we can close this bug. If a problem please reopen. :)