[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug in install-cml2?



Hello there

I have tried to use emdebsys and got stuck with install-cml2. Here's the 
output: (*path* is only a replacement)

./install-cml2 *path*/linux-2.6.3/
Examining your build environment...
Good. You have Python 2.x installed as 'python2' already.
Python looks sane...
Good, your python has curses support linked in.
Your Python doesn't have Tk support linked in; 'xconfig' will fail.
Compiling file list...
Operating on /home/l4i/l4i/kernel/linux-2.6.3...
I see you have installed CML2 here before.
Cleaning up old CML2 files...
Error while renaming Makefile.bak
Installing new files...
tar: Documentation/kbuild: Cannot utime: Operation not permitted
tar: Documentation: Cannot utime: Operation not permitted
tar: arch/sh: Cannot utime: Operation not permitted
(...)
tar: scripts: Cannot utime: Operation not permitted
tar: Error exit delayed from previous errors
Huh?  Installation failed.
Do have write permissions on the target directory *path*/linux-2.6.3?

I found out, that it is a problem, if the parent directory doesn't belong to 
the current user. Then it may fail due to missing permissions.

If I add the option --no-overwrite-dir to the tar call it succeds. 

if os.system("(cd kernel-tree >/dev/null && tar --exclude '*.help' --exclude 
'*,v' --exclude '*~' --exclude '*.orig' --exclude '*.rej' --exclude '*.out' 
-chf - *) | (cd " + tree + ">/dev/null && tar --no-overwrite-dir -xf -)"):

I found this solution in 
http://lists.gnu.org/archive/html/bug-tar/2004-10/msg00025.html. Maybe the 
failure occurs only in the newest versions of tar (my current version is 
1.14).

I hope this may help!

Regards 

Stefan



Reply to: