[Mageia-dev] Help with package

Juan Luis Baptiste juancho at mageia.org
Fri Jan 4 00:21:30 CET 2013


On Thu, Jan 3, 2013 at 5:23 PM, David Walser <luigiwalser at yahoo.com> wrote:

>
> > for i in %{_datadir}/%{name}/basewsw/*;
> > do
> >   file=`basename $i`
> >
> >   ln -sf $i  %{buildroot}%{gamelibdir}/basewsw/$file
> > done
>
> Looks better, that should make relative links.
>
> The problem is in the first line, the %{_datadir}/%{name}/basewsw/*
> should have a %{buildroot} at the beginning of it.  Otherwise, it's
> matching
> against files on your actual system already installed at that location,
> which of course won't be there on the build system.  That's why the *
> doesn't
> match anything, and becomes a literal *.
>
>

I had tried that before, but on that case, on my local build the symlinks
are created like this:

ll /usr/lib64/games/warsow/basewsw/
total 4
lrwxrwxrwx 1 root root 114 Jan  3 18:01 * ->
../../../../../home/cauldron/mageia/cauldron/warsow/BUILDROOT/warsow-1.02-5.mga3.x86_64/usr/share/warsow/basewsw/*

-- 
Juancho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-dev/attachments/20130103/038c3baf/attachment.html>


More information about the Mageia-dev mailing list