Ben Taylor wrote:
> On Tue, Jun 3, 2008 at 5:26 PM, Marcelo H Majczak
> <marcelo at randomwork.com> wrote:
>   
>> I managed to build FOSSgstreamer with a hack, since it was a lib link 
>> problem... :
>>
>> Index: GSTREAMER/0.10.17/Solaris/configure.sh
>> ===================================================================
>> --- ../GSTREAMER/0.10.17/Solaris/configure.sh   (revision 2062)
>> +++ ../GSTREAMER/0.10.17/Solaris/configure.sh   (working copy)
>> @@ -61,3 +61,5 @@
>>  #--disable-examples \
>>  #--program-suffix="" \
>>  #--with-check=no
>> +
>> +find . -name Makefile | xargs -i perl -pi000 -e 's/-L\/usr\/lib//g' {}
>>     
>
> well, besides the fact that there's also -L/usr/lib/amd64, -R/usr/lib
> and -R/usr/lib/amd64 in those files?
>
> I solved this slightly differently by removing those aforementioned
> flags with sed from CFLAGS, CXXFLAGS and LDFLAGS during
> configure.sh and build.sh.
>
>   
I tried changing the *FLAGS first but didn't work... so 'forced' it to 
get done. The -R doesn't affect this stage, might need it at runtime so 
I left it there.

I forgot about the 64bits... It doesn't affect me as I'm on a 32bit 
notebook.
> Initially, I still did not have any success despite  the fact that
> those flags should have been gone, excepting what might have
> gotten in from the pkgconfig output.
>
> I then moved gstreamer-0.10.pc and glib2-2.0.pc out of the way
> and rebuilt both.  Once I did that, then things started building
> much nicer.
>
>   
>> I'm sure somebody will provide a much better solution :)
>>
>> To pack you might need to extend the  _arch64 part (I'm on IA32):
>> Index: SPECS/gstreamer.pspc
>> ===================================================================
>> --- gstreamer.pspc      (revision 2062)
>> +++ gstreamer.pspc      (working copy)
>> @@ -22,7 +22,11 @@
>>  %dir %attr (0755, root, bin) %{_includedir}
>>  %{_includedir}/*
>>  %dir %attr (0755, root, bin) %{_libdir}
>> +%{_libdir}/*
>>  %dir %attr (0755, root, bin) %{_bindir}
>> +%{_bindir}/*
>> +%dir %attr (0755, root, sys) %{_datadir}
>> +%{_datadir}/*
>>  #
>>  %ifarch amd64 sparcv9
>>  %dir %attr (0755, root, bin) %{_libdir}/%_arch64
>>     
>
> did you actually try to build it with these settings?
>
>   
Built, packaged and installed sucessfuly. I did mention I'm on IA32 
(pentium m 758) so I don't have a way to test/adjust the _arch64 part.

> On an x86-64 box, it fails with duplicate entries for bin/amd64.
>
> I've had to go a little further, and this compiled on both an
> LX50 (32-bit only) and a X86-64 box.  There's probably
> some happy medium, as this is the first pspc file I've
> hacked up.
>
> Ben
>
> Index: gstreamer.pspc
> ===================================================================
> --- gstreamer.pspc      (revision 2062)
> +++ gstreamer.pspc      (working copy)
> @@ -22,11 +22,23 @@
>  %dir %attr (0755, root, bin) %{_includedir}
>  %{_includedir}/*
>  %dir %attr (0755, root, bin) %{_libdir}
> +%{_libdir}/lib*.so*
> +%{_libdir}/gstreamer-0.10
> +%{_libdir}/pkgconfig
>  %dir %attr (0755, root, bin) %{_bindir}
> +%{_bindir}/*
> +%dir %attr (0755, root, sys) %{_datadir}
> +%{_datadir}/gtk-doc
> +%dir %attr (0755, root, other) %{_datadir}/aclocal
> +%{_datadir}/aclocal/*
> +%{_datadir}/locale
> +%{_datadir}/man/man1
>  #
>  %ifarch amd64 sparcv9
>  %dir %attr (0755, root, bin) %{_libdir}/%_arch64
> -%dir %attr (0755, root, bin) %{_bindir}/%_arch64
> +%{_libdir}/%_arch64/lib*.so*
> +%{_libdir}/%_arch64/gstreamer-0.10
> +%{_libdir}/%_arch64/pkgconfig
>  %endif
>   


Reply via email to