On Fri, May 9, 2008 at 6:28 PM, Daniele Maccari <[EMAIL PROTECTED]> wrote: > 2008/5/9 Michael Homer <[EMAIL PROTECTED]>: >> >> On Fri, May 9, 2008 at 4:33 PM, Jonas Karlsson <[EMAIL PROTECTED]> >> wrote: >> > On Thu, 08 May 2008 19:32:51 +0200, Daniele Maccari >> > <[EMAIL PROTECTED]> wrote: >> > >> >> Hello everybody, >> >> >> >> I was trying to create a recipe for OpenOffice 2.4.0, so I simply >> >> newversioned the preexistent recipe. However, after having manually >> >> fixed the recipe a little I found a problem in the installation phase, >> >> namely it seems that Compile doesn't correctly recognize some >> >> directories as such. The problem seems to be related to these lines >> >> (starting at line 1445 of Compile) >> >> >> >> if [ -d "$src" -a -d "$fulldst" ] >> >> then $sudo_exec cp -R "$src"/* "$fulldst" >> >> else $sudo_exec cp -R $src "$fulldst" >> >> fi >> >> >> >> In fact, when trying to copy files from /usr/share and >> >> /opt/OpenOffice2.4/share to Shared the if check seems to not work as >> >> expected, thus treating share as a simple file to copy under Shared, >> >> leading to /P/OpenOffice/2.4.0_bin/Shared/share, which prevent the >> >> pre_link function to correctly perform its task of symlinking desktop >> >> entries. >> > >> > That's because the '-d' test returns false for symlinks and during an >> > install 'Shared' is a symlink to 'share', hence the second alternative >> > is being executed. Personally I don't see why PrepareProgram creates >> > Shared->share instead of share->Shared. I guess it's a legacy. ;) >> Are you sure? I wondered about that, but: >> ~]bash >> [EMAIL PROTECTED] ~][ -d /bin ] && echo /bin is a directory ; ls -l /bin >> /bin is a directory >> lrwxrwxrwx 1 root root 24 2008-04-19 10:46 /bin -> >> System/Links/Executables >> [EMAIL PROTECTED] ~] >> >> On the other hand, I don't see what else causes that problem. > However, I wouldn't want this problem to be openoffice related, so we > should probably find some manifest recipe to test (if what Jonas pointed out > were the problem, I think trying to copy something under bin, lib etc would > cause problem too, wouldn't it?) Shared doesn't appear to be a symlink anyway for me. It might be some issue specific to Shared, that just hasn't come up in the past because no other manifest recipe copies a directory directly to Shared.
Lucas' patch is what would give us the important debugging information here. Without that it's hard to say what the problem might be. -Michael _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel