From: SourceForge.net <no...@so...> - 2011-02-02 21:45:28
|
Bugs item #3170674, was opened at 2011-02-02 17:03 Message generated for change (Comment added) made by borutr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3170674&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build system >Group: fixed >Status: Pending >Resolution: Fixed Priority: 5 Private: No Submitted By: George Oikonomou (oikonomou) >Assigned to: Borut Ražem (borutr) Summary: Incorrect file ownerships after make install Initial Comment: On Ubuntu 10.10 with GNU Make 3.81 and SDCC sources rev$ 6188 (checked out from svn). The sdcc source directory is owned by a normal user, we run all commands below as the same user. Jumping to the fix: pass -p as argument to cp in ./sdas/linksrc/Makefile.in line 77 How to reproduce Configuring with: ./configure --disable-gbz80-port --disable-z80-port --disable-ds390-port --disable-ds400-port --disable-pic-port --disable-pic14-port --disable-pic16-port --disable-hc08-port $ make everything builds $ ls -al bin/ total 3008 drwxr-xr-x 3 geo geo 4096 2011-02-02 15:26 . drwxr-xr-x 11 geo geo 4096 2011-02-02 15:03 .. -rwxr-xr-x 1 geo geo 6531 2011-02-02 15:26 as2gbmap -rwxr-xr-x 1 geo geo 48086 2011-02-02 15:24 asranlib -rwxr-xr-x 1 geo geo 19174 2011-02-02 15:24 makebin -rwxr-xr-x 1 geo geo 21304 2011-02-02 15:26 packihx -rwxr-xr-x 1 geo geo 147175 2011-02-02 15:25 sdas8051 -rwxr-xr-x 1 geo geo 1885760 2011-02-02 15:25 sdcc -rwxr-xr-x 1 geo geo 29478 2011-02-02 15:24 sdcclib -rwxr-xr-x 1 geo geo 628150 2011-02-02 15:25 sdcpp -rwxr-xr-x 1 geo geo 246663 2011-02-02 15:25 sdld drwxr-xr-x 6 geo geo 4096 2011-02-02 14:33 .svn The contents look perfectly normal at this stage, however somewhere during make install files owned by root creep in the src_dir/bin directory. $ sudo make install things happen, install succeeds. We try to make clean, as the same user - expected outcome: successful clean. $ make clean + Cleaning root of the project... make -f ./clean.mk clean make[1]: Entering directory `/home/geo/sdcc-packages/sdcc' rm -f *core *[%~] *.[oa] rm -f .[a-z]*~ cd bin && for name in *; do if [ -f $name -a $name != README ]; then rm $name; fi; done rm: remove write-protected regular file `sdld6808'? We expect things to clean without having to answer questions, so we check the contents of bin again: $ ls -al bin/ total 3752 drwxr-xr-x 3 geo geo 4096 2011-02-02 15:30 . drwxr-xr-x 11 geo geo 4096 2011-02-02 15:03 .. -rwxr-xr-x 1 geo geo 6531 2011-02-02 15:30 as2gbmap -rwxr-xr-x 1 geo geo 48086 2011-02-02 15:29 asranlib -rwxr-xr-x 1 geo geo 19174 2011-02-02 15:29 makebin -rwxr-xr-x 1 geo geo 21304 2011-02-02 15:30 packihx -rwxr-xr-x 1 geo geo 147175 2011-02-02 15:30 sdas8051 -rwxr-xr-x 1 geo geo 1885760 2011-02-02 15:30 sdcc -rwxr-xr-x 1 geo geo 29478 2011-02-02 15:29 sdcclib -rwxr-xr-x 1 geo geo 628150 2011-02-02 15:29 sdcpp -rwxr-xr-x 1 geo geo 246663 2011-02-02 15:30 sdld -rwxr-xr-x 1 root root 246663 2011-02-02 15:30 sdld6808 -rwxr-xr-x 1 root root 246663 2011-02-02 15:30 sdldgb -rwxr-xr-x 1 root root 246663 2011-02-02 15:30 sdldz80 drwxr-xr-x 6 geo geo 4096 2011-02-02 14:33 .svn 3 new files have appeared during make install, copies of sdld but owned by root. ---------------------------------------------------------------------- >Comment By: Borut Ražem (borutr) Date: 2011-02-02 22:45 Message: Fixed in svn revision #6189. George, can you please verify the fix? Borut ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3170674&group_id=599 |