Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
03-12-2014, 07:41 AM
|
#16
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
I will add it if I have some spare time and see if it makes a difference. I also consider to create a repo with an updated graphics stack for radeon users on Slackware, since these questions come up pretty often, but this is something I don't have time for until end of next week.
|
|
|
03-12-2014, 08:28 AM
|
#17
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep:
|
Ok guys, thanks for all the help. Will try when get home in a few hours. Will also post the results, I hope it works. I know I am never buying an AMD card again.
|
|
|
03-12-2014, 12:30 PM
|
#18
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep:
|
After reading a bit, just a little I must confess. I decided to do sort of frankeinstein SlackBuild using both of your SlackBuilds. Here is how it looks like (I had to remove "intel" off DRI_DRIVERS since it was giving me an error "configure: error: DRI driver directory 'intel' does not exist"). I got a bit confused but I think the SlackBuild is right:
I'd use llvm-shared-libraries, thought it'd be a good thing but I didn't build llvm with shared libraries (oops) and since I don't want to rebuild it I removed it too.
Code:
#!/bin/sh
# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013 Patrick J. Volkerding, Sebeka, MN, USA
# 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.
PKGNAM=mesa
VERSION=10.1.0
DEMOVERS=8.1.0
BUILD=${BUILD:-1}
# Be sure this list is up-to-date:
DRI_DRIVERS="i915,i965,radeon,swrast"
NUMJOBS=${NUMJOBS:--j8}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-mesa
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf Mesa-${VERSION}
tar xvf $CWD/MesaLib-${VERSION}.tar.?z* || exit 1
cd Mesa-$VERSION
# Let's kill the warning about operating on a dangling symlink:
rm -f src/gallium/state_trackers/d3d1x/w32api
# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Apply patches from git (and maybe elsewhere):
# Patches obtained by:
# git checkout origin/8.0
# git format-patch 3d657b14b4cab98a2945904823e78cd8950944f4.. # 8.0.3 release
if /bin/ls $CWD/patches/*.patch 1> /dev/null 2> /dev/null ; then
for patch in $CWD/patches/*.patch ; do
patch -p1 < $patch || exit 1 ;
done
fi
if [ ! -r configure ]; then
autoreconf || exit 1
fi
# Running autogen to avoid problems if our autotools don't match upstream's:
./autogen.sh
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--docdir=/usr/doc/mesa-$VERSION \
--with-dri-driverdir=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri \
--with-dri-drivers="$DRI_DRIVERS" \
--with-egl-platforms="drm,x11" \
--with-gallium-drivers="r300,r600" \
--enable-gles1 \
--enable-gles2 \
--enable-openvg \
--enable-gbm \
--enable-gallium-egl \
--enable-gallium-gbm \
--enable-xorg \
--enable-glx-tls \
--enable-gallium-llvm \
--enable-vdpau \
--enable-texture-float \
--enable-shared-glapi \
--enable-xa \
--enable-osmesa \
--enable-r600-llvm-compiler \
--disable-dri3 \
--build=$ARCH-slackware-linux
# r300 requires llvm
# Other gallium drivers:
# galahad,i915,identity,llvmpipe,noop,nv50,nvc0,nvfx,rbug,softpipe,svga,trace
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
# Now install the demos
( cd $TMP
rm -rf mesa-demos-$DEMOVERS
tar xvf $CWD/mesa-demos-$DEMOVERS.tar.?z* || exit 1
cd mesa-demos-$DEMOVERS
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--build=$ARCH-slackware-linux
# Build and install gears and glinfo, as well as a few other demos
make -C src/demos gears glinfo
make -C src/xdemos \
glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
glxheads glxinfo glxpbdemo glxpixmap
mkdir -p $PKG/usr/bin
cp -a src/demos/{gears,glinfo} $PKG/usr/bin
for i in glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
glxheads glxinfo glxpbdemo glxpixmap ; do
cp -a src/xdemos/$i $PKG/usr/bin ;
done
)
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Compress info files, if any:
if [ -d $PKG/usr/info ]; then
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*
fi
mkdir -p $PKG/usr/doc/Mesa-$VERSION/html
cp -a \
docs/COPYING* docs/relnotes-${VERSION}*.html docs/README* docs/GL* \
$PKG/usr/doc/Mesa-$VERSION
cp -a docs/*.html $PKG/usr/doc/Mesa-$VERSION/html
rm -f $PKG/usr/doc/Mesa-$VERSION/html/relnotes*.html
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
And, well, while I was finishing this post the build failed
Code:
Making all in gallium/auxiliary
gmake[2]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/auxiliary'
Making all in pipe-loader
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/auxiliary/pipe-loader'
gmake[3]: Nada a ser feito para `all'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/auxiliary/pipe-loader'
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/auxiliary'
gmake[3]: Nada a ser feito para `all-am'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/auxiliary'
gmake[2]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/auxiliary'
Making all in gallium/drivers
gmake[2]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers'
Making all in .
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers'
gmake[3]: Nada a ser feito para `all-am'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers'
Making all in galahad
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/galahad'
gmake[3]: Nada a ser feito para `all'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/galahad'
Making all in identity
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/identity'
gmake[3]: Nada a ser feito para `all'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/identity'
Making all in noop
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/noop'
gmake[3]: Nada a ser feito para `all'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/noop'
Making all in trace
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/trace'
gmake[3]: Nada a ser feito para `all'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/trace'
Making all in rbug
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/rbug'
gmake[3]: Nada a ser feito para `all'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/rbug'
Making all in radeon
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/radeon'
CCLD libradeon.la
CC libllvmradeon_la-radeon_llvm_emit.lo
radeon_llvm_emit.c:35:20: fatal error: libelf.h: No such file or directory
#include <libelf.h>
^
compilation terminated.
gmake[3]: ** [libllvmradeon_la-radeon_llvm_emit.lo] Erro 1
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/radeon'
gmake[2]: ** [all-recursive] Erro 1
gmake[2]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers'
gmake[1]: ** [all-recursive] Erro 1
gmake[1]: Saindo do diretório `/tmp/Mesa-10.1.0/src'
make: ** [all-recursive] Erro 1
root@darkstar:/home/pedro/SlackBuilds/14.1/mesa#
|
|
|
03-12-2014, 01:17 PM
|
#19
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
A missing libelf is surprising, since libelf is part of a standard Slackware installation. I assume that you did a full install?
|
|
|
03-12-2014, 02:41 PM
|
#20
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep:
|
I just skipped KDE and a few other packages, I might have removed. What is the name of the package? Libelf?
EDIT: found some old libelf packages on google, I guess it is not called libelf anymore.
Last edited by moisespedro; 03-12-2014 at 02:45 PM.
|
|
|
03-12-2014, 03:43 PM
|
#21
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by moisespedro
I just skipped KDE and a few other packages, I might have removed. What is the name of the package? Libelf?
EDIT: found some old libelf packages on google, I guess it is not called libelf anymore.
|
Code:
>>> slackpkg search libelf
DONE
The list below shows all packages with name matching "libelf".
[ Status ] [ Repository ] [ Package ]
installed libelf-0.8.13-x86_64-2
installed multilib libelf-compat32-0.8.13-x86_64-2compat32
You can search specific files using "slackpkg file-search file".
>>> find slackware64 -name "libelf*.txz"
slackware64/l/libelf-0.8.13-x86_64-2.txz
As you can see, libelf is still a normal package in a standard installation. For the future, if you ask for help with a non-standard installation please provide the info that it is a non-standard installation.
|
|
|
03-12-2014, 03:45 PM
|
#22
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep:
|
Things got weird, I have libelf installed
Code:
root@darkstar:~# slackpkg search libelf
DONE
The list below shows all packages with name matching "libelf".
[ Status ] [ Repository ] [ Package ]
installed libelf-0.8.13-x86_64-2
installed multilib libelf-compat32-0.8.13-x86_64-2compat32
You can search specific files using "slackpkg file-search file".
|
|
|
03-12-2014, 03:50 PM
|
#23
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
That is indeed weird. If such things happen I usually repeat the process in a clean chroot to rule out errors in my installation.
|
|
|
03-12-2014, 03:55 PM
|
#24
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep:
|
EDIT: Forget this. Could it be something related to llvm?
EDIT2: Or libelf being misplaced?
EDIT3:
Contents of the libelf package I just reinstalled (stock slackware version)
Code:
install/slack-desc
install/doinst.sh
usr/doc/libelf-0.8.13/INSTALL
usr/doc/libelf-0.8.13/README
usr/doc/libelf-0.8.13/COPYING.LIB
usr/doc/libelf-0.8.13/ChangeLog
usr/lib64/libelf.a
usr/lib64/pkgconfig/libelf.pc
usr/lib64/libelf.so.0.8.13
usr/include/libelf/nlist.h
usr/include/libelf/libelf.h
usr/include/libelf/elf_repl.h
usr/include/libelf/sys_elf.h
usr/include/libelf/gelf.h
usr/share/locale/de/LC_MESSAGES/libelf.mo
EDIT4: I am sort of o a noob on this type of thing (still) but could it be related to this:
--libdir=/usr/lib${LIBDIRSUFFIX} \ (from the mesa.SlackBuild - LIBDIRSUFFIX being = 64)
EDIT5: root@darkstar:/home/pedro/SlackBuilds/14.1/mesa# ls /usr/lib64/ | grep libelf
libelf.a
libelf.so@
libelf.so.0@
libelf.so.0.8.13*
root@darkstar:/home/pedro/SlackBuilds/14.1/mesa# ls /usr/include/libelf/
elf_repl.h gelf.h libelf.h nlist.h sys_elf.h
Last edited by moisespedro; 03-12-2014 at 04:08 PM.
|
|
|
03-12-2014, 05:31 PM
|
#25
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Have you tried to run the Slackbuild again after re-installing libelf? Also, does the Slackbuild as you have it now work in a clean chroot?
|
|
|
03-12-2014, 07:35 PM
|
#26
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep:
|
Yes I tried and what do you mean by a clean chroot?
|
|
|
03-13-2014, 12:42 PM
|
#28
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep:
|
Guys it was something with llvm! I took " --enable-r600-llvm-compiler \" out of my SlackBuild and it worked!
Here is the SlackBuild:
Code:
#!/bin/sh
# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013 Patrick J. Volkerding, Sebeka, MN, USA
# 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.
PKGNAM=mesa
VERSION=10.1.0
DEMOVERS=8.1.0
BUILD=${BUILD:-1}
# Be sure this list is up-to-date:
DRI_DRIVERS="i915,i965,radeon,swrast"
NUMJOBS=${NUMJOBS:--j8}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-mesa
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf Mesa-${VERSION}
tar xvf $CWD/MesaLib-${VERSION}.tar.?z* || exit 1
cd Mesa-$VERSION
# Let's kill the warning about operating on a dangling symlink:
rm -f src/gallium/state_trackers/d3d1x/w32api
# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Apply patches from git (and maybe elsewhere):
# Patches obtained by:
# git checkout origin/8.0
# git format-patch 3d657b14b4cab98a2945904823e78cd8950944f4.. # 8.0.3 release
if /bin/ls $CWD/patches/*.patch 1> /dev/null 2> /dev/null ; then
for patch in $CWD/patches/*.patch ; do
patch -p1 < $patch || exit 1 ;
done
fi
if [ ! -r configure ]; then
autoreconf || exit 1
fi
# Running autogen to avoid problems if our autotools don't match upstream's:
./autogen.sh
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--docdir=/usr/doc/mesa-$VERSION \
--with-dri-driverdir=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri \
--with-dri-drivers="$DRI_DRIVERS" \
--with-egl-platforms="drm,x11" \
--with-gallium-drivers="r300,r600" \
--enable-gles1 \
--enable-gles2 \
--enable-openvg \
--enable-gbm \
--enable-gallium-egl \
--enable-gallium-gbm \
--enable-xorg \
--enable-glx-tls \
--enable-gallium-llvm \
--enable-vdpau \
--enable-texture-float \
--enable-shared-glapi \
--enable-xa \
--enable-osmesa \
--disable-dri3 \
--build=$ARCH-slackware-linux
# r300 requires llvm
# Other gallium drivers:
# galahad,i915,identity,llvmpipe,noop,nv50,nvc0,nvfx,rbug,softpipe,svga,trace
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
# Now install the demos
( cd $TMP
rm -rf mesa-demos-$DEMOVERS
tar xvf $CWD/mesa-demos-$DEMOVERS.tar.?z* || exit 1
cd mesa-demos-$DEMOVERS
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--build=$ARCH-slackware-linux
# Build and install gears and glinfo, as well as a few other demos
make -C src/demos gears glinfo
make -C src/xdemos \
glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
glxheads glxinfo glxpbdemo glxpixmap
mkdir -p $PKG/usr/bin
cp -a src/demos/{gears,glinfo} $PKG/usr/bin
for i in glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
glxheads glxinfo glxpbdemo glxpixmap ; do
cp -a src/xdemos/$i $PKG/usr/bin ;
done
)
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Compress info files, if any:
if [ -d $PKG/usr/info ]; then
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*
fi
mkdir -p $PKG/usr/doc/Mesa-$VERSION/html
cp -a \
docs/COPYING* docs/relnotes-${VERSION}*.html docs/README* docs/GL* \
$PKG/usr/doc/Mesa-$VERSION
cp -a docs/*.html $PKG/usr/doc/Mesa-$VERSION/html
rm -f $PKG/usr/doc/Mesa-$VERSION/html/relnotes*.html
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
EDIT: by the way, apart from glxinfo and glxgears is there another way to check if I didn't do anything stupid?
Last edited by moisespedro; 03-13-2014 at 12:46 PM.
|
|
|
03-13-2014, 04:04 PM
|
#29
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
Not really. The only other thing would be to put an intensive OpenGL app to work as a load bearing test.
Remember to get driconf also.
|
|
|
03-13-2014, 06:55 PM
|
#30
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep:
|
Reaper, did you have any problems with llvm not founding libelf?
And ok I will get driconf (I think I already did)
|
|
|
All times are GMT -5. The time now is 10:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|