Emerging last ebuild (slocate-2.7-r1) for slocate fails with this error. >>> Install slocate-2.7-r1 into /var/tmp/portage/slocate-2.7-r1/image/ category sys-apps make[1]: Entering directory `/var/tmp/portage/slocate-2.7-r1/work/slocate-2.7' /bin/sh ./mkinstalldirs /var/tmp/portage/slocate-2.7-r1/image//usr/bin mkdir /var/tmp/portage/slocate-2.7-r1/image/usr/bin install -c slocate /var/tmp/portage/slocate-2.7-r1/image//usr/bin/slocate make install-exec-hook make[2]: Entering directory `/var/tmp/portage/slocate-2.7-r1/work/slocate-2.7' /usr/sbin/groupadd slocate ACCESS DENIED open_wr: /etc/group.21825 groupadd: unable to lock group file make[2]: [install-exec-hook] Error 10 (ignored) install -c -d /var/tmp/portage/slocate-2.7-r1/image//var/lib//slocate chown root.slocate /var/tmp/portage/slocate-2.7-r1/image//usr/bin/slocate chown: `root.slocate': invalid group make[2]: *** [install-exec-hook] Error 1 make[2]: Leaving directory `/var/tmp/portage/slocate-2.7-r1/work/slocate-2.7' make[1]: *** [install-exec-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/slocate-2.7-r1/work/slocate-2.7' make: *** [install-am] Error 2 !!! ERROR: sys-apps/slocate-2.7-r1 failed. !!! Function src_install, Line 20, Exitcode 2 !!! (no error message) --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-slocate-2.7-r1-18904.log" open_wr: /etc/group.21825 Reproducible: Always Steps to Reproduce: 1. Emerge slocate from a system without it. The ebuild try to do groupadd from wrong section. I've made a patch.
*** /usr/portage/sys-apps/slocate/slocate-2.7-r1.ebuildc2003-04-12 18:33:54.000000000 +0200 --- /usr/portage/sys-apps/slocate/slocate-2.7-r2.ebuilda2003-04-13 09:07:46.000000000 +0200 ***************locate/slocate-2.7-r2.ebuildlocate/slocate-2.7-r1.ebuild /usr/port *** 13,18 **** --- 13,26 ---- DEPEND="virtual/glibc" + pkg_setup() { + + if [ `grep slocate /etc/group | wc -l` -eq 0 ]; then + groupadd slocate + fi + + } + src_install() { dodir /usr/share/man/man1 *************** *** 57,63 **** pkg_postinst() { # /var/lib/slocate is owned by group slocate and so is the executable - groupadd slocate chown root.slocate /usr/bin/slocate chmod 2755 /usr/bin/slocate --- 65,70 ----
this was fixed hours ago, please re-sync your tree