[vlc-devel] [PATCH 1/2] Bootstrap on Solaris

Maciej (Matchek) Bliziński maciej at opencsw.org
Wed Feb 29 09:00:15 CET 2012


2012/2/28 Francois Cartegnie <fcvlcdev at free.fr>:
> Le 28/02/2012 08:29, Maciej (Matchek) Bliziński a écrit :
>> Why not make it just work for everyone? It's enough to avoid this
>> particular construct. Instead you can either invert the logic and use
>> 'else', do something like this:
>
> Because we can't fix everything that is called with a broken shell: The
> 'everyone' is POSIX.
>
>> That might help, but there is a hardcoded call to 'sh' in bootstrap,
>> which resolves to /bin/sh and causes genmf to fail. Perhaps genmf
>> should be patched to honor CONFIG_SHELL?
>
> There was a similar patch posted, but never applied and finally end up
> as wiki instructions.

I don't understand this. If there are people who care, and write code
that works on all systems

> I've changed that line to honor an alternative CONFIG_SHELL too.

Cool, thanks!

> Meanwhile, you're still not telling on which platform and which vlc
> version you're trying to build (and which compiler: official suncc or gcc).

Here's the platform and compiler information:

maciej at unstable10s [unstable10s]:~ $ uname -a
SunOS unstable10s 5.10 Generic_142909-17 sun4v sparc SUNW,SPARC-Enterprise-T5220
maciej at unstable10s [unstable10s]:~ $ cat /etc/release
                   Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
     Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
                            Assembled 11 August 2010
maciej at unstable10s [unstable10s]:~ $ /opt/csw/bin/gcc -v
Reading specs from /opt/csw/lib/gcc/sparc-sun-solaris2.10/4.6.2/specs
COLLECT_GCC=/opt/csw/bin/gcc
COLLECT_LTO_WRAPPER=/opt/csw/libexec/gcc/sparc-sun-solaris2.10/4.6.2/lto-wrapper
Target: sparc-sun-solaris2.10
Configured with:
/home/maciej/src/opencsw/pkg/gcc4/trunk/work/solaris10-sparc/build-isa-sparcv8plus/gcc-4.6.2/configure
--program-suffix=-4.6 --prefix=/opt/csw --exec_prefix=/opt/csw
--bindir=/opt/csw/bin --sbindir=/opt/csw/sbin
--libexecdir=/opt/csw/libexec --datadir=/opt/csw/share
--sysconfdir=/etc/opt/csw --sharedstatedir=/opt/csw/share
--localstatedir=/var/opt/csw --libdir=/opt/csw/lib
--infodir=/opt/csw/share/info --includedir=/opt/csw/include
--mandir=/opt/csw/share/man --with-gnu-as --with-as=/opt/csw/bin/gas
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-nls
--with-included-gettext --with-libiconv-prefix=/opt/csw --with-x
--with-mpfr=/opt/csw --with-gmp=/opt/csw --with-ppl=/opt/csw
--with-cloog=/opt/csw --enable-cloog-backend=isl
--enable-java-awt=xlib --enable-libada --enable-libssp
--enable-objc-gc --enable-threads=posix
--enable-languages=ada,c,c++,fortran,java,objc
--with-system-zlib=/opt/csw --with-cpu=v8
Thread model: posix
gcc version 4.6.2 (GCC)

The VLC version I'm building is from git://git.videolan.org/vlc.git,
the master branch. I'm building with GCC, I expect the sunpro build to
be more difficult, and I don't want to get into discussions about
broken compilers.



More information about the vlc-devel mailing list