[gobolinux-devel] Manifest recipes issue
Jonas Karlsson
jonka750 at student.liu.se
Fri May 9 16:33:34 NZST 2008
On Thu, 08 May 2008 19:32:51 +0200, Daniele Maccari <gobo.users at gmail.com> 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/
More information about the gobolinux-devel
mailing list