Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21858 - jam fails to compile because of permission-problems
Summary: jam fails to compile because of permission-problems
Status: RESOLVED DUPLICATE of bug 20251
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-28 18:12 UTC by Benjamin Judas (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
2 users (show)

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


Attachments
Full output of "emerge jam" (jammerge.out,13.00 KB, text/plain)
2003-05-29 07:40 UTC, Benjamin Judas (RETIRED)
Details
make.conf (make.conf,12.12 KB, text/plain)
2003-05-29 07:41 UTC, Benjamin Judas (RETIRED)
Details
Output of "emerge jam -d" (emerge-jam-d.log,22.80 KB, text/plain)
2003-05-29 12:36 UTC, Benjamin Judas (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Judas (RETIRED) gentoo-dev 2003-05-28 18:12:38 UTC
Jam doesnt compile because of permission problems ("Keine Berechtigung" =
Permission denied)

==========================================================
EMERGE-OUTPUT :
==========================================================
antares /usr/portage/distfiles # emerge jam
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-util/jam-2.4 to /
>>> md5 src_uri ;-) jam-2.4.zip
>>> Unpacking source...
>>> Unpacking jam-2.4.zip to /var/tmp/portage/jam-2.4/work
>>> Source unpacked.
/usr/sbin/ebuild.sh: line 639: ./command.c: Keine Berechtigung
cp: regul
Comment 1 Benjamin Judas (RETIRED) gentoo-dev 2003-05-28 18:12:38 UTC
Jam doesnt compile because of permission problems ("Keine Berechtigung" =
Permission denied)

==========================================================
EMERGE-OUTPUT :
==========================================================
antares /usr/portage/distfiles # emerge jam
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-util/jam-2.4 to /
>>> md5 src_uri ;-) jam-2.4.zip
>>> Unpacking source...
>>> Unpacking jam-2.4.zip to /var/tmp/portage/jam-2.4/work
>>> Source unpacked.
/usr/sbin/ebuild.sh: line 639: ./command.c: Keine Berechtigung
cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt
werden: Keine Berechtigung
/usr/sbin/ebuild.sh: line 639: ./command.h: Keine Berechtigung
cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt
werden: Keine Berechtigung
/usr/sbin/ebuild.sh: line 639: ./compile.c: Keine Berechtigung
cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt
werden: Keine Berechtigung
/usr/sbin/ebuild.sh: line 639: ./compile.h: Keine Berechtigung
cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt
werden: Keine Berechtigung
/usr/sbin/ebuild.sh: line 639: ./execcmd.h: Keine Berechtigung
cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt
werden: Keine Berechtigung
/usr/sbin/ebuild.sh: line 639: ./execmac.c: Keine Berechtigung
cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt
werden: Keine Berechtigung
/usr/sbin/ebuild.sh: line 639: ./execunix.c: Keine Berechtigung
...
...
cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt
werden: Keine Berechtigung
/usr/sbin/ebuild.sh: line 639: ./builtins.h: Keine Berechtigung
cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt
werden: Keine Berechtigung
/usr/sbin/ebuild.sh: line 639: ./pathsys.h: Keine Berechtigung
cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt
werden: Keine Berechtigung
gcc -o jam0 -march=athlon-tbird -O2 -pipe -mmmx -m3dnow builtins.c command.c
compile.c execunix.c execvms.c expand.c filent.c fileos2.c fileunix.c filevms.c
glob.c hash.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c
newstr.c option.c parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c
timestamp.c variable.c
In file included from jamgram.h:11,
                 from scan.c:11:
jam.h:475: redefinition of `struct globs'
In file included from jamgram.h:13,
                 from scan.c:11:
lists.h:43: redefinition of `LIST'
lists.h:43: `LIST' previously declared here
lists.h:45: redefinition of `struct _list'
lists.h:55: redefinition of `LOL'
lists.h:55: `LOL' previously declared here
lists.h:59: redefinition of `struct _lol'
In file included from jamgram.h:14,
                 from scan.c:11:
parse.h:15: redefinition of `PARSE'
parse.h:15: `PARSE' previously declared here
parse.h:17: redefinition of `struct _PARSE'
In file included from jamgramtab.h:11,
                 from scan.c:32:
jam.h:475: parse error before "struct"
In file included from jamgramtab.h:13,
                 from scan.c:32:
lists.h:43: redefinition of `LIST'
lists.h:43: `LIST' previously declared here
lists.h:45: redefinition of `struct _list'
lists.h:55: redefinition of `LOL'
lists.h:55: `LOL' previously declared here
lists.h:59: redefinition of `struct _lol'
In file included from jamgramtab.h:14,
                 from scan.c:32:
parse.h:15: redefinition of `PARSE'
parse.h:15: `PARSE' previously declared here
parse.h:17: redefinition of `struct _PARSE'
In file included from jamgramtab.h:16,
                 from scan.c:32:
rules.h:32: redefinition of `RULE'
rules.h:32: `RULE' previously declared here
rules.h:33: redefinition of `TARGET'
rules.h:33: `TARGET' previously declared here
rules.h:34: redefinition of `TARGETS'
rules.h:34: `TARGETS' previously declared here
rules.h:35: redefinition of `ACTION'
rules.h:35: `ACTION' previously declared here
rules.h:36: redefinition of `ACTIONS'
rules.h:36: `ACTIONS' previously declared here
rules.h:37: redefinition of `SETTINGS'
rules.h:37: `SETTINGS' previously declared here
rules.h:41: redefinition of `struct _rule'
rules.h:59: redefinition of `struct _actions'
rules.h:67: redefinition of `struct _action'
rules.h:77: redefinition of `struct _settings'
rules.h:85: redefinition of `struct _targets'
rules.h:93: redefinition of `struct _target'
In file included from jamgramtab.h:18,
                 from scan.c:32:
command.h:38: redefinition of `CMD'
command.h:38: `CMD' previously declared here
command.h:41: redefinition of `struct _cmd'
In file included from scan.c:32:
jamgramtab.h:30: redefinition of `cmd_new'
jamgram.h:30: `cmd_new' previously defined here
jamgramtab.h:59: redefinition of `cmd_free'
jamgram.h:59: `cmd_free' previously defined here
scan.c:33: parse error before '{' token
scan.c: In function `yylex':
scan.c:245: `STRING' undeclared (first use in this function)
scan.c:245: (Each undeclared identifier is reported only once
scan.c:245: for each function it appears in.)
scan.c:342: `ARG' undeclared (first use in this function)
scan.c: In function `symdump':
scan.c:382: `ARG' undeclared (first use in this function)
scan.c:385: `STRING' undeclared (first use in this function)
make: *** [jam0] Fehler 1
 
!!! ERROR: dev-util/jam-2.4 failed.
!!! Function src_compile, Line 21, Exitcode 2
!!! (no error message)
Comment 2 Benjamin Judas (RETIRED) gentoo-dev 2003-05-29 07:40:20 UTC
Created attachment 12527 [details]
Full output of "emerge jam"
Comment 3 Benjamin Judas (RETIRED) gentoo-dev 2003-05-29 07:41:32 UTC
Created attachment 12528 [details]
make.conf
Comment 4 Benjamin Judas (RETIRED) gentoo-dev 2003-05-29 12:36:01 UTC
Created attachment 12544 [details]
Output of "emerge jam -d"
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-05-29 13:15:44 UTC
diff -u -b -B -r1.29 eutils.eclass
--- eutils.eclass       11 Mar 2003 21:50:43 -0000      1.29
+++ eutils.eclass       29 May 2003 17:15:12 -0000
@@ -636,6 +636,8 @@
 edos2unix() {
        for f in $@ ; do
                cp ${f} ${T}/edos2unix
+               rm -f ${f}
                sed 's/\r$//' ${T}/edos2unix > ${f}
+               rm -f ${T}/edos2unix
        done
 }
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-05-29 13:16:23 UTC
this is a patch for eclass/eutils.eclass
Comment 7 Benjamin Judas (RETIRED) gentoo-dev 2003-05-29 13:23:07 UTC
Fine - this works - for this packet

I'll report Problems related to this fix here if they occure
Comment 8 Benjamin Judas (RETIRED) gentoo-dev 2003-05-31 04:42:09 UTC
Ok - I didn't experience any further problems. Looks like this "hack" is working. I suggest to close this one.
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2003-05-31 08:29:09 UTC
now in cvs
Comment 10 SpanKY gentoo-dev 2003-06-06 13:53:41 UTC
fix is incorrect ... will break other things
Comment 11 Martin Holzer (RETIRED) gentoo-dev 2003-06-06 18:10:42 UTC
only happens on  my gcc 3.2 machine
on the old gcc 2.95 it works without hack
Comment 12 SpanKY gentoo-dev 2003-06-12 11:20:09 UTC
ok, this bug is not from the eclass, it is from 'userpriv' in FEATURES ...
giving over to carpaski ... ive gone ahead and removed the 'fix' added to eclass ...
the reason being that if you use edos2unix on a +x shell script, it would currently
recreate the file without the +x ...

nick: edos2unix fails because it cannot write a file to ${T} ...
Comment 13 SpanKY gentoo-dev 2003-06-16 08:32:42 UTC

*** This bug has been marked as a duplicate of 20251 ***