Created attachment 315553 [details] httrack_j1.txt Attempting to emerge www-client/httrack-3.45.4 will fail with MAKEOPTS="-j6" set in /etc/make.conf (see attachment httrack_j6.txt,) however commenting out MAKEOPTS and emerging the same ebuild succeeds (see attachment httrack_j1.txt) The problem appears to be caused by missing or incorrect dependencies in the source Makefiles, allowing the build to proceed before the 'httrack' library has compiled. Obviously serial make avoids this problem. > ... > libtool: link: x86_64-pc-linux-gnu-gcc -shared .libs/htsjava.o -L/usr/lib -lpthread -ldl -lhttrack -lz -march=native -mmmx -msse -msse2 -msse3 -msse4.1 -msse4.2 -mssse3 -Wl,-O1 -Wl,--as-needed -Wl,-soname -Wl,libhtsjava.so.2 -o .libs/libhtsjava.so.2.0.45 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lhttrack > ... I suspect this should probably be filed against httrack upstream, but since it's a Gentoo issue, I'm filing it here first.
Created attachment 315555 [details] httrack_j6.txt
A suggested workaround is to disable parallel make for this ebuild via package.env: > echo "www-client/httrack httrack.conf" >> /etc/portage/package.env > echo "MAKEOPTS=-j1" > /etc/portage/env/httrack.conf A better solution would be to patch the ebuild to strip MAKEOPTS, until it's fixed upstream. Unfortunately I do not have a patch for either.
*** Bug 421587 has been marked as a duplicate of this bug. ***
Created attachment 315795 [details, diff] httrack-3.45.4-parallel.patch (incomplete) Attached is what I have so far. For some reasons src_install fails now, any help welcome.
(In reply to comment #4) > Created attachment 315795 [details, diff] [details, diff] > httrack-3.45.4-parallel.patch (incomplete) > > Attached is what I have so far. For some reasons src_install fails now, any > help welcome. Could you attach the compilation log file with your patch applied?
Created attachment 315993 [details] build.log (with httrack-3.45.4-parallel.patch applied) (In reply to comment #5) > Could you attach the compilation log file with your patch applied? Sure. Before I unclear what the error even was. Now I spotted that /usr/bin/install: will not overwrite just-created ‘/var/tmp/portage/www-client/httrack-3.45.4/image//usr/share/httrack/libtest/example.c’ with ‘example.c’ /usr/bin/install: will not overwrite just-created ‘/var/tmp/portage/www-client/httrack-3.45.4/image//usr/share/httrack/libtest/example.h’ with ‘example.h’ make[2]: *** [install-exemplesDATA] Error 1 at the top. If you don't hear from me again within two hours, it means I do still need help figuring things out.
(In reply to comment #6) > /usr/bin/install: will not overwrite just-created > ‘/var/tmp/portage/www-client/httrack-3.45.4/image//usr/share/httrack/libtest/ > example.c’ with ‘example.c’ > /usr/bin/install: will not overwrite just-created > ‘/var/tmp/portage/www-client/httrack-3.45.4/image//usr/share/httrack/libtest/ > example.h’ with ‘example.h’ > make[2]: *** [install-exemplesDATA] Error 1 I found a similar report with the hint "This attempts to install gtkcellview.h and gtkcellviewmenuitem.h twice in a row" at [1] and that helped to make a patch. I am happily announcing this bug as fixed (unless proven wrong) :-) I will send two patches upstream in a minute. + 22 Jun 2012; Sebastian Pipping <sping@gentoo.org> httrack-3.45.4.ebuild, + +files/httrack-3.45.4-install-once.patch, + +files/httrack-3.45.4-parallel.patch: + Fix parallel make issue (bug #421499) and installing two files twice + [1] https://bbs.archlinux.org/viewtopic.php?id=72822