Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19225 - slocate emerge fail
Summary: slocate emerge fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-13 03:12 UTC by Andrea Cerrito
Modified: 2003-04-13 03:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Cerrito 2003-04-13 03:12:36 UTC
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.
Comment 1 Andrea Cerrito 2003-04-13 03:13:34 UTC
*** /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 ----
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-04-13 03:20:04 UTC
this was fixed hours ago, please re-sync your tree