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. ;) Solution would be to either change the behaviour of PrepareProgram or, if $fulldest is a link, see if it points to a directory. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel