[csw-maintainers] GAR: Adding a /opt/csw/lib/foo/64 --> /opt/csw/lib/foo/{amd64, sparcv9} link

Maciej (Matchek) Blizinski maciej at opencsw.org
Tue Nov 24 17:30:02 CET 2009


On Tue, Nov 24, 2009 at 4:01 PM, Dagobert Michelsen <dam at opencsw.org> wrote:
> Hi Maciej,
>
> Am 23.11.2009 um 22:57 schrieb Maciej (Matchek) Blizinski:
>>
>> It seems to me as those links are very useful.  When you have the 64
>> --> {sparcv9,amd64} symlinks, you can say:
>>
>> LD_OPTIONS = -R/opt/csw/lib/$ISALIST -R/opt/csw/lib/64
>>
>> ...and it will work on both sparcv9 and amd64.
>>
>> Here's how I did it in GAR:
>>
>> post-merge:
>>       if [ "$(GARCH)" = sparc ]; then \
>>               gln -sf sparc9 $(PKGROOT)$(libdir)/64; \
>>       elif [ "$(GARCH)" = i386 ]; then \
>>               gln -sf amd64 $(PKGROOT)$(libdir)/64; \
>>       fi
>>       @$(MAKECOOKIE)
>
> It is easier to use this:
>
> post-merge-modulated:
>        gln -s $(ISA_DEFAULT64) $(PKGROOT)$(libdir)/64
>        @$(MAKECOOKIE)
>
> ISA_DEFAULT contains the default 32 bit ISA on this platform,
> ISA_DEFAULT64 contains the default 64 bit ISA on this platform.

This fails:

gln -s "sparcv9"
"/home/maciej/src/opencsw/pkg/nspr/trunk/work/solaris8-sparc/pkgroot/opt/csw/lib/nspr/64/64"
gln: `/home/maciej/src/opencsw/pkg/nspr/trunk/work/solaris8-sparc/pkgroot/opt/csw/lib/nspr/64/64/sparcv9':
cannot overwrite directory
gmake[1]: *** [post-merge-modulated] Error 1
gmake[1]: Leaving directory `/home/maciej/src/opencsw/pkg/nspr/trunk'
gmake: *** [merge-isa-sparcv9] Error 2

I think it's because it must be run only once per architecture, that's
why I initially chose post-merge and not post-merge-modulated.  Is
that correct?

Maciej



More information about the maintainers mailing list