Lo slackbuild in versione originale è il seguente:
Codice: Seleziona tutto
#!/bin/sh
# Slackware build script for libvdpau
# Copyright 2009 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libvdpau
VERSION=0.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--disable-static \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
Poi ho dato chmod +x libvdpau.SlackBuild ed infine l'ho eseguito. Il risultato è questo:
Codice: Seleziona tutto
root@Penelope:/home/tom_slack/Download/libvdpau# ./libvdpau.SlackBuild
libvdpau-0.2/
libvdpau-0.2/acinclude.m4
libvdpau-0.2/autogen.sh
libvdpau-0.2/src/
libvdpau-0.2/src/Makefile.am
libvdpau-0.2/src/Makefile.in
libvdpau-0.2/src/vdpau_wrapper.c
libvdpau-0.2/trace/
libvdpau-0.2/trace/vdpau_trace.cpp
libvdpau-0.2/trace/Makefile.am
libvdpau-0.2/trace/Makefile.in
libvdpau-0.2/include/
libvdpau-0.2/include/vdpau/
libvdpau-0.2/include/vdpau/vdpau_x11.h
libvdpau-0.2/include/vdpau/vdpau.h
libvdpau-0.2/INSTALL
libvdpau-0.2/depcomp
libvdpau-0.2/Makefile.am
libvdpau-0.2/COPYING
libvdpau-0.2/ChangeLog
libvdpau-0.2/configure
libvdpau-0.2/Makefile.in
libvdpau-0.2/configure.ac
libvdpau-0.2/aclocal.m4
libvdpau-0.2/ltmain.sh
libvdpau-0.2/config.sub
libvdpau-0.2/config.h.in
libvdpau-0.2/install-sh
libvdpau-0.2/NEWS
libvdpau-0.2/README
libvdpau-0.2/AUTHORS
libvdpau-0.2/config.guess
libvdpau-0.2/missing
libvdpau-0.2/vdpau.pc.in
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... x86_64-slackware-linux-gnu
checking host system type... x86_64-slackware-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/x86_64-slackware-linux/bin/ld
checking if the linker (/usr/x86_64-slackware-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-slackware-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by g++... /usr/x86_64-slackware-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for X11... yes
checking for dlopen... no
checking for dlopen in -ldl... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating trace/Makefile
config.status: creating vdpau.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make all-recursive
make[1]: Entering directory `/tmp/SBo/libvdpau-0.2'
Making all in src
make[2]: Entering directory `/tmp/SBo/libvdpau-0.2/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -fPIC -MT vdpau_wrapper.lo -MD -MP -MF .deps/vdpau_wrapper.Tpo -c -o vdpau_wrapper.lo vdpau_wrapper.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -fPIC -MT vdpau_wrapper.lo -MD -MP -MF .deps/vdpau_wrapper.Tpo -c vdpau_wrapper.c -fPIC -DPIC -o .libs/vdpau_wrapper.o
mv -f .deps/vdpau_wrapper.Tpo .deps/vdpau_wrapper.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -I../include -O2 -fPIC -version-info 1:0:0 -no-undefined -o libvdpau.la -rpath /usr/lib64 vdpau_wrapper.lo -ldl
libtool: link: gcc -shared .libs/vdpau_wrapper.o -ldl -Wl,-soname -Wl,libvdpau.so.1 -o .libs/libvdpau.so.1.0.0
libtool: link: (cd ".libs" && rm -f "libvdpau.so.1" && ln -s "libvdpau.so.1.0.0" "libvdpau.so.1")
libtool: link: (cd ".libs" && rm -f "libvdpau.so" && ln -s "libvdpau.so.1.0.0" "libvdpau.so")
libtool: link: ( cd ".libs" && rm -f "libvdpau.la" && ln -s "../libvdpau.la" "libvdpau.la" )
make[2]: Leaving directory `/tmp/SBo/libvdpau-0.2/src'
Making all in trace
make[2]: Entering directory `/tmp/SBo/libvdpau-0.2/trace'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -fPIC -MT vdpau_trace.lo -MD -MP -MF .deps/vdpau_trace.Tpo -c -o vdpau_trace.lo vdpau_trace.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -fPIC -MT vdpau_trace.lo -MD -MP -MF .deps/vdpau_trace.Tpo -c vdpau_trace.cpp -fPIC -DPIC -o .libs/vdpau_trace.o
mv -f .deps/vdpau_trace.Tpo .deps/vdpau_trace.Plo
/bin/sh ../libtool --tag=CXX --mode=link g++ -I../include -O2 -fPIC -avoid-version -module -no-undefined -o libvdpau_trace.la -rpath /usr/lib64 vdpau_trace.lo -ldl
libtool: link: g++ -shared -nostdlib /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/crtbeginS.o .libs/vdpau_trace.o -Wl,-rpath -Wl,/usr/lib64/../lib64 -Wl,-rpath -Wl,/usr/lib64/../lib64 -ldl -L/usr/lib64/gcc/x86_64-slackware-linux/4.3.3 -L/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../x86_64-slackware-linux/lib -L/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../.. /usr/lib64/../lib64/libstdc++.so -lm -lc -lgcc_s /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/crtendS.o /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../lib64/crtn.o -Wl,-soname -Wl,libvdpau_trace.so -o .libs/libvdpau_trace.so
libtool: link: ( cd ".libs" && rm -f "libvdpau_trace.la" && ln -s "../libvdpau_trace.la" "libvdpau_trace.la" )
make[2]: Leaving directory `/tmp/SBo/libvdpau-0.2/trace'
make[2]: Entering directory `/tmp/SBo/libvdpau-0.2'
make[2]: Leaving directory `/tmp/SBo/libvdpau-0.2'
make[1]: Leaving directory `/tmp/SBo/libvdpau-0.2'
make INSTALL_PROGRAM="/bin/sh /tmp/SBo/libvdpau-0.2/install-sh -c -s" \
install_sh_PROGRAM="/bin/sh /tmp/SBo/libvdpau-0.2/install-sh -c -s" INSTALL_STRIP_FLAG=-s \
`test -z 'strip' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='strip'"` install
make[1]: Entering directory `/tmp/SBo/libvdpau-0.2'
Making install in src
make[2]: Entering directory `/tmp/SBo/libvdpau-0.2/src'
make[3]: Entering directory `/tmp/SBo/libvdpau-0.2/src'
test -z "/usr/lib64" || /bin/mkdir -p "/tmp/SBo/package-libvdpau/usr/lib64"
/bin/sh ../libtool --mode=install /bin/ginstall -c -s 'libvdpau.la' '/tmp/SBo/package-libvdpau/usr/lib64/libvdpau.la'
libtool: install: /bin/ginstall -c .libs/libvdpau.so.1.0.0 /tmp/SBo/package-libvdpau/usr/lib64/libvdpau.so.1.0.0
libtool: install: strip --strip-unneeded /tmp/SBo/package-libvdpau/usr/lib64/libvdpau.so.1.0.0
libtool: install: (cd /tmp/SBo/package-libvdpau/usr/lib64 && { ln -s -f libvdpau.so.1.0.0 libvdpau.so.1 || { rm -f libvdpau.so.1 && ln -s libvdpau.so.1.0.0 libvdpau.so.1; }; })
libtool: install: (cd /tmp/SBo/package-libvdpau/usr/lib64 && { ln -s -f libvdpau.so.1.0.0 libvdpau.so || { rm -f libvdpau.so && ln -s libvdpau.so.1.0.0 libvdpau.so; }; })
libtool: install: /bin/ginstall -c .libs/libvdpau.lai /tmp/SBo/package-libvdpau/usr/lib64/libvdpau.la
libtool: install: warning: remember to run `libtool --finish /usr/lib64'
test -z "/usr/include/vdpau" || /bin/mkdir -p "/tmp/SBo/package-libvdpau/usr/include/vdpau"
/bin/ginstall -c -m 644 '../include/vdpau/vdpau.h' '/tmp/SBo/package-libvdpau/usr/include/vdpau/vdpau.h'
/bin/ginstall -c -m 644 '../include/vdpau/vdpau_x11.h' '/tmp/SBo/package-libvdpau/usr/include/vdpau/vdpau_x11.h'
make[3]: Leaving directory `/tmp/SBo/libvdpau-0.2/src'
make[2]: Leaving directory `/tmp/SBo/libvdpau-0.2/src'
Making install in trace
make[2]: Entering directory `/tmp/SBo/libvdpau-0.2/trace'
make[3]: Entering directory `/tmp/SBo/libvdpau-0.2/trace'
test -z "/usr/lib64" || /bin/mkdir -p "/tmp/SBo/package-libvdpau/usr/lib64"
/bin/sh ../libtool --mode=install /bin/ginstall -c -s 'libvdpau_trace.la' '/tmp/SBo/package-libvdpau/usr/lib64/libvdpau_trace.la'
libtool: install: /bin/ginstall -c .libs/libvdpau_trace.so /tmp/SBo/package-libvdpau/usr/lib64/libvdpau_trace.so
libtool: install: strip --strip-unneeded /tmp/SBo/package-libvdpau/usr/lib64/libvdpau_trace.so
libtool: install: /bin/ginstall -c .libs/libvdpau_trace.lai /tmp/SBo/package-libvdpau/usr/lib64/libvdpau_trace.la
libtool: install: warning: remember to run `libtool --finish /usr/lib64'
test -z "/usr/include/vdpau" || /bin/mkdir -p "/tmp/SBo/package-libvdpau/usr/include/vdpau"
/bin/ginstall -c -m 644 '../include/vdpau/vdpau.h' '/tmp/SBo/package-libvdpau/usr/include/vdpau/vdpau.h'
/bin/ginstall -c -m 644 '../include/vdpau/vdpau_x11.h' '/tmp/SBo/package-libvdpau/usr/include/vdpau/vdpau_x11.h'
make[3]: Leaving directory `/tmp/SBo/libvdpau-0.2/trace'
make[2]: Leaving directory `/tmp/SBo/libvdpau-0.2/trace'
make[2]: Entering directory `/tmp/SBo/libvdpau-0.2'
make[3]: Entering directory `/tmp/SBo/libvdpau-0.2'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib64/pkgconfig" || /bin/mkdir -p "/tmp/SBo/package-libvdpau/usr/lib64/pkgconfig"
/bin/ginstall -c -m 644 'vdpau.pc' '/tmp/SBo/package-libvdpau/usr/lib64/pkgconfig/vdpau.pc'
make[3]: Leaving directory `/tmp/SBo/libvdpau-0.2'
make[2]: Leaving directory `/tmp/SBo/libvdpau-0.2'
make[1]: Leaving directory `/tmp/SBo/libvdpau-0.2'
Usage: makepkg package_name.tgz
(or: package_name.tbz, package_name.tlz, package_name.txz)
Makes a Slackware compatible package containing the contents of the current
and all subdirectories. If symbolic links exist, they will be removed and
an installation script will be made to recreate them later. This script will
be called "install/doinst.sh". You may add any of your own ash-compatible
shell scripts to this file and rebuild the package if you wish.
options: -l, --linkadd y|n (moves symlinks into doinst.sh: recommended)
-p, --prepend (prepend rather than append symlinks to an existing
doinst.sh. Useful to link libraries needed by
programs in the doinst.sh script)
-c, --chown y|n (resets all permissions to root:root 755
- not generally recommended)
If these options are not set, makepkg will prompt as appropriate.
./libvdpau.SlackBuild: line 85: /tmp/libvdpau-0.2-x86_64-1_SBo.txz: No such file or directory
1) se rimodifico nello slackbuild txz in tgz il risultato non cambia mi dà lo stesso messaggio di errore
2) se invece ELIMINO la directory di lavoro, e poi riscompatto il tar.gz (con lo slackbuild dentro), gli infilo i sorgenti e modifico nello slackbuild nuovo SOLTANTO i486 con X86_64, ottenendo pertanto lo stesso IDENTICO slackbuild del punto 1, la compilazione allora va a buon fine.
Perchè?
PS: Slackware64 appena installata, che sia un bug che è stato risolto con gli aggiornamenti di sicurezza?