Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8364 - diffutils-2.8.4 ebuild fails
Summary: diffutils-2.8.4 ebuild fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 8387 8426 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-25 09:08 UTC by Throstur Svanbergsson
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

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


Attachments
diffutils-2.8.4-r1.ebuild (diffutils-2.8.4-r1.ebuild,1.22 KB, text/plain)
2002-09-25 09:27 UTC, CJ Kucera
Details
diffutils-2.8.4-r1.patch (diffutils-2.8.4-r1.patch,333 bytes, patch)
2002-09-25 09:29 UTC, CJ Kucera
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Throstur Svanbergsson 2002-09-25 09:08:50 UTC
When trying to emerge -u diffutils to the new version 2.8.4, the following happened on my system: 


Making install in po
make[1]: Entering directory `/var/tmp/portage/diffutils-
2.8.4/work/diffutils-2.8.4/po'
/bin/sh `case "config/mkinstalldirs" in /*) echo 
"config/mkinstalldirs" ;; *) echo "../config/mkinstalldirs" ;; esac` /usr/share
ACCESS 
DENIED  open_wr:   /usr/share/locale/cs/LC_MESSAGES/diffutils.mo
/bin/install: cannot 
create regular file `/usr/share/locale/cs/LC_MESSAGES/diffutils.mo': Permission 
denied
installing cs.gmo as /usr/share/locale/cs/LC_MESSAGES/diffutils.mo
ACCESS 
DENIED  unlink:    /usr/share/locale/da/LC_MESSAGES/diffutils.mo
/bin/install: cannot 
remove `/usr/share/locale/da/LC_MESSAGES/diffutils.mo': Permission denied
installing 
da.gmo as /usr/share/locale/da/LC_MESSAGES/diffutils.mo
ACCESS DENIED  unlink:    
/usr/share/locale/de/LC_MESSAGES/diffutils.mo
/bin/install: cannot remove 
`/usr/share/locale/de/LC_MESSAGES/diffutils.mo': Permission denied
installing de.gmo 
as /usr/share/locale/de/LC_MESSAGES/diffutils.mo
ACCESS DENIED  unlink:    
/usr/share/locale/en_GB/LC_MESSAGES/diffutils.mo
/bin/install: cannot remove 
`/usr/share/locale/en_GB/LC_MESSAGES/diffutils.mo': Permission denied
installing 
en_GB.gmo as /usr/share/locale/en_GB/LC_MESSAGES/diffutils.mo
mkdir -p -- 
/usr/share/locale/en_US/LC_MESSAGES
ACCESS DENIED  mkdir:     
/usr/share/locale/en_US
mkdir: cannot create directory `/usr/share/locale/en_US': 
Permission denied
ACCESS DENIED  open_wr:   
/usr/share/locale/en_US/LC_MESSAGES/diffutils.mo
/bin/install: cannot create regular 
file `/usr/share/locale/en_US/LC_MESSAGES/diffutils.mo': Permission 
denied
installing en_US.gmo as 
/usr/share/locale/en_US/LC_MESSAGES/diffutils.mo
ACCESS DENIED  unlink:    
/usr/share/locale/eo/LC_MESSAGES/diffutils.mo
/bin/install: cannot remove 
`/usr/share/locale/eo/LC_MESSAGES/diffutils.mo': Permission denied
installing eo.gmo 
as /usr/share/locale/eo/LC_MESSAGES/diffutils.mo
ACCESS DENIED  unlink:    
/usr/share/locale/es/LC_MESSAGES/diffutils.mo
/bin/install: cannot remove 
`/usr/share/locale/es/LC_MESSAGES/diffutils.mo': Permission denied
installing es.gmo 
as /usr/share/locale/es/LC_MESSAGES/diffutils.mo
ACCESS DENIED  unlink:    
/usr/share/locale/fr/LC_MESSAGES/diffutils.mo
/bin/install: cannot remove 
`/usr/share/locale/fr/LC_MESSAGES/diffutils.mo': Permission denied
installing fr.gmo 
as /usr/share/locale/fr/LC_MESSAGES/diffutils.mo
ACCESS DENIED  unlink:    
/usr/share/locale/gl/LC_MESSAGES/diffutils.mo
/bin/install: cannot remove 
`/usr/share/locale/gl/LC_MESSAGES/diffutils.mo': Permission denied
installing gl.gmo 
as /usr/share/locale/gl/LC_MESSAGES/diffutils.mo
ACCESS DENIED  unlink:    
/usr/share/locale/he/LC_MESSAGES/diffutils.mo
/bin/install: cannot remove 
`/usr/share/locale/he/LC_MESSAGES/diffutils.mo': Permission denied
installing he.gmo 
as /usr/share/locale/he/LC_MESSAGES/diffutils.mo
ACCESS DENIED  open_wr:   
/usr/share/locale/hu/LC_MESSAGES/diffutils.mo
/bin/install: cannot create regular 
file `/usr/share/locale/hu/LC_MESSAGES/diffutils.mo': Permission denied
installing 
hu.gmo as /usr/share/locale/hu/LC_MESSAGES/diffutils.mo
ACCESS DENIED  unlink:    
/usr/share/locale/id/LC_MESSAGES/diffutils.mo
/bin/install: cannot remove 
`/usr/share/locale/id/LC_MESSAGES/diffutils.mo': Permission denied
installing id.gmo 
as /usr/share/locale/id/LC_MESSAGES/diffutils.mo
ACCESS DENIED  open_wr:   
/usr/share/locale/ja/LC_MESSAGES/diffutils.mo
/bin/install: cannot create regular 
file `/usr/share/locale/ja/LC_MESSAGES/diffutils.mo': Permission denied
installing 
ja.gmo as /usr/share/locale/ja/LC_MESSAGES/diffutils.mo
ACCESS DENIED  unlink:    
/usr/share/locale/pl/LC_MESSAGES/diffutils.mo
/bin/install: cannot remove 
`/usr/share/locale/pl/LC_MESSAGES/diffutils.mo': Permission denied
installing pl.gmo 
as /usr/share/locale/pl/LC_MESSAGES/diffutils.mo
ACCESS DENIED  open_wr:   
/usr/share/locale/pt_BR/LC_MESSAGES/diffutils.mo
/bin/install: cannot create regular 
file `/usr/share/locale/pt_BR/LC_MESSAGES/diffutils.mo': Permission 
denied
installing pt_BR.gmo as 
/usr/share/locale/pt_BR/LC_MESSAGES/diffutils.mo
ACCESS DENIED  unlink:    
/usr/share/locale/ru/LC_MESSAGES/diffutils.mo
/bin/install: cannot remove 
`/usr/share/locale/ru/LC_MESSAGES/diffutils.mo': Permission denied
installing ru.gmo 
as /usr/share/locale/ru/LC_MESSAGES/diffutils.mo
ACCESS DENIED  unlink:    
/usr/share/locale/sv/LC_MESSAGES/diffutils.mo
/bin/install: cannot remove 
`/usr/share/locale/sv/LC_MESSAGES/diffutils.mo': Permission denied
installing sv.gmo 
as /usr/share/locale/sv/LC_MESSAGES/diffutils.mo
ACCESS DENIED  unlink:    
/usr/share/locale/tr/LC_MESSAGES/diffutils.mo
/bin/install: cannot remove 
`/usr/share/locale/tr/LC_MESSAGES/diffutils.mo': Permission denied
installing tr.gmo 
as /usr/share/locale/tr/LC_MESSAGES/diffutils.mo
ACCESS DENIED  open_wr:   
/usr/share/locale/zh_TW/LC_MESSAGES/diffutils.mo
/bin/install: cannot create regular 
file `/usr/share/locale/zh_TW/LC_MESSAGES/diffutils.mo': Permission 
denied
installing zh_TW.gmo as /usr/share/locale/zh_TW/LC_MESSAGES/diffutils.mo
if 
test "diffutils" = "gettext"; then \
  /bin/sh `case "config/mkinstalldirs" in /*) echo 
"config/mkinstalldirs" ;; *) echo "../config/mkinstalldirs" ;; esac` 
/usr/share/gettext/po; \
  for file in Makefile.in.in Makevars remove-potcdate.sin quot.sed 
boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot  ; do \
    
/bin/install -c -m 644 ./$file \
                    /usr/share/gettext/po/$file; \
  done; \
else \
  : ; 
\
fi
make[1]: Leaving directory `/var/tmp/portage/diffutils-2.8.4/work/diffutils-
2.8.4/po'
make[1]: Entering directory `/var/tmp/portage/diffutils-
2.8.4/work/diffutils-2.8.4'
make[2]: Entering directory `/var/tmp/portage/diffutils-
2.8.4/work/diffutils-2.8.4'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: 
Nothing to be done for `install-data-am'.
make[2]: Leaving directory 
`/var/tmp/portage/diffutils-2.8.4/work/diffutils-2.8.4'
make[1]: Leaving directory 
`/var/tmp/portage/diffutils-2.8.4/work/diffutils-2.8.4'
gzipping man page: 
/var/tmp/portage/diffutils-2.8.4/image//usr/share/man/man1/cmp.1
gzipping man page: 
/var/tmp/portage/diffutils-2.8.4/image//usr/share/man/man1/diff.1
gzipping man page: 
/var/tmp/portage/diffutils-2.8.4/image//usr/share/man/man1/diff3.1
gzipping man 
page: /var/tmp/portage/diffutils-
2.8.4/image//usr/share/man/man1/sdiff.1
info:
gzipping GNU info file 
diff.info
strip:
/var/tmp/portage/diffutils-
2.8.4/image/usr/bin/cmp
/var/tmp/portage/diffutils-
2.8.4/image/usr/bin/diff
/var/tmp/portage/diffutils-
2.8.4/image/usr/bin/diff3
/var/tmp/portage/diffutils-
2.8.4/image/usr/bin/sdiff
>>> Completed installing into /var/tmp/portage/diffutils-
2.8.4/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-diffutils-2.8.4-
20481.log"

open_wr:   /usr/share/locale/cs/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/da/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/de/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/en_GB/LC_MESSAGES/diffutils.mo
mkdir:     
/usr/share/locale/en_US
open_wr:   
/usr/share/locale/en_US/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/eo/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/es/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/fr/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/gl/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/he/LC_MESSAGES/diffutils.mo
open_wr:   
/usr/share/locale/hu/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/id/LC_MESSAGES/diffutils.mo
open_wr:   
/usr/share/locale/ja/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/pl/LC_MESSAGES/diffutils.mo
open_wr:   
/usr/share/locale/pt_BR/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/ru/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/sv/LC_MESSAGES/diffutils.mo
unlink:    
/usr/share/locale/tr/LC_MESSAGES/diffutils.mo
open_wr:   
/usr/share/locale/zh_TW/LC_MESSAGES/diffutils.mo
--------------------------------------------------------------------------------
Comment 1 CJ Kucera 2002-09-25 09:27:44 UTC
Created attachment 4180 [details]
diffutils-2.8.4-r1.ebuild

Here's an updated ebuild that fixes the problem.  Just needed to define
"datadir" at configure-time, which is the only difference.  I'll post a diff,
too.
Comment 2 CJ Kucera 2002-09-25 09:29:39 UTC
Created attachment 4181 [details, diff]
diffutils-2.8.4-r1.patch

Here's a patch to the original diffutils-2.8.4.ebuild which fixes the problem.
Comment 3 Throstur Svanbergsson 2002-09-25 09:53:00 UTC
Yes, this fixed the problem for me. Thanks a lot. :-)
Comment 4 SpanKY gentoo-dev 2002-09-25 10:15:23 UTC
tested and did some `strings` to make sure it didnt hardcode any paths ...
committed to cvs
Comment 5 SpanKY gentoo-dev 2002-09-25 20:59:14 UTC
*** Bug 8387 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2002-09-26 15:43:47 UTC
*** Bug 8426 has been marked as a duplicate of this bug. ***
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-29 06:51:52 UTC
This is totally the wrong way to fix it.  What will happen now, is that
it will look for its data in ${D}/usr/share ... which is not right.

The correct way of handling this is to define datadir during 'make install'
again as ${D}/usr/share.