sys-apps/man-db-2.7.2 fails with: make[4]: Leaving directory '/var/tmp/portage/sys-apps/man-db-2.7.2/work/man-db-2.7.2/man' sed: file replace.sed line 1: unknown command: ` Makefile:2316: recipe for target 'man5/manpath.5' failed make[3]: *** [man5/manpath.5] Error 1 make[3]: *** Waiting for unfinished jobs.... GEN man8/mandb.8 make[4]: Leaving directory '/var/tmp/portage/sys-apps/man-db-2.7.2/work/man-db-2.7.2/man' make[4]: Leaving directory '/var/tmp/portage/sys-apps/man-db-2.7.2/work/man-db-2.7.2/man' make[4]: Leaving directory '/var/tmp/portage/sys-apps/man-db-2.7.2/work/man-db-2.7.2/man' make[4]: Leaving directory '/var/tmp/portage/sys-apps/man-db-2.7.2/work/man-db-2.7.2/man' GEN man1/man.1 GEN man1/manpath.1 GEN man1/whatis.1 GEN man1/lexgrog.1 GEN man1/manconv.1 make[3]: Leaving directory '/var/tmp/portage/sys-apps/man-db-2.7.2/work/man-db-2.7.2/man' Makefile:1790: recipe for target 'all-recursive' failed make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/sys-apps/man-db-2.7.2/work/man-db-2.7.2/man' Makefile:1521: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-apps/man-db-2.7.2/work/man-db-2.7.2' Makefile:1449: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: sys-apps/man-db-2.7.2::gentoo failed (compile phase): * emake failed The only non-standard thing going on here is I am using http://distfiles.gentoo.org/experimental/amd64/musl/stage3-amd64-musl-hardened-20151104.tar.bz2 Full build log and env attached. Reproducible: Always Steps to Reproduce: 1. emerge man-db (using musl stage3)
Created attachment 417134 [details] man-db-2.7.2 build log
Created attachment 417136 [details] emerge --info '=sys-apps/man-db-2.7.2::gentoo'
Created attachment 417138 [details] emerge -pqv '=sys-apps/man-db-2.7.2::gentoo'
Created attachment 417140 [details] /var/tmp/portage/sys-apps/man-db-2.7.2/temp/environment
Created attachment 417142 [details] /var/tmp/portage/sys-apps/man-db-2.7.2/work/man-db-2.7.2/man/replace.sed
Combined with MAKEOPTS=-j24 it is maybe even less standard. Does it compile with MAKEOPTS=-j1?
Try also >=sys-apps/man-db-2.7.4, which includes http://git.savannah.gnu.org/cgit/man-db.git/commit/?id=32ee575a45d3a7e221a7b29c457049b659315152
Exited chroot, then: chroot /mnt/gentoo /bin/bash source /etc/profile env-update changed MAKEOPTS to -j1 emerge man-db (worked) changed MAKEOPTS back to to -j24 emerge man-db (worked) tried that 10 more times, all compiled with -j24. Also tried -j48 (it's a 24 core box), compiled 10x without error. The install is automated, so I started it from scratch and man-db again compiled fine. Bummer. OK to close since I cant reproduce it.
I managed to hit this again (MAKEOPTS="-j24"), saved the build folder and then deleted /var/tmp/portage/sys-apps, did "emerge man-db" again and it worked. 10x more emerge man-db tries all completed. So, outside the chroot: "echo 2 > /proc/sys/vm/drop_caches" and then "emerge man-db" again (inside chroot): still compiles.
Can you still reproduce with the current stable version (man-db-2.7.5)? (I very much suspect that it is fixed (see comment 7).) The bug might be easier to hit with MAKEOPTS="-j" (use as many threads as possible).
I am not able to reproduce this, suggest close. Thanks!
ebuild is not in tree anymore, those in tree work. bug can and should be closed.