summaryrefslogtreecommitdiff
path: root/source/x/mesa
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2019-10-09 20:33:48 +0000
committerEric Hameleers <alien@slackware.com>2019-10-10 08:59:49 +0200
commit0ce5a5f67027ddbc393240572a09d42743f5addd (patch)
tree7fbfc15ebe1aa1e70cd2e10277e46c22ca23c61c /source/x/mesa
parentc64eae2230c159a7eaf03cd1404acabfbf9ac279 (diff)
downloadcurrent-0ce5a5f67027ddbc393240572a09d42743f5addd.tar.gz
Wed Oct 9 20:33:48 UTC 201920191009203348
d/vala-0.46.3-x86_64-1.txz: Upgraded. l/libsoup-2.68.2-x86_64-1.txz: Upgraded. n/openssh-8.1p1-x86_64-1.txz: Upgraded. ssh(1), sshd(8), ssh-agent(1): add protection for private keys at rest in RAM against speculation and memory side-channel attacks like Spectre, Meltdown and Rambleed. This release encrypts private keys when they are not in use with a symmetric key that is derived from a relatively large "prekey" consisting of random data (currently 16KB). x/libXvMC-1.0.12-x86_64-3.txz: Rebuilt. Reverted to the stock xvmc.pc since Mesa has been fixed to work with it. x/libglvnd-1.2.0-x86_64-2.txz: Rebuilt. x/mesa-19.2.1-x86_64-1.txz: Upgraded. xap/network-manager-applet-1.8.24-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/x/mesa')
-rw-r--r--source/x/mesa/glesv2.pc10
-rwxr-xr-xsource/x/mesa/mesa.SlackBuild68
2 files changed, 32 insertions, 46 deletions
diff --git a/source/x/mesa/glesv2.pc b/source/x/mesa/glesv2.pc
deleted file mode 100644
index 7af1555b..00000000
--- a/source/x/mesa/glesv2.pc
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=/usr
-libdir=${prefix}/lib64
-includedir=${prefix}/include
-
-Name: glesv2
-Description: Mesa OpenGL ES 2.0 library
-Version: 19.1.0
-Libs: -L${libdir} -lGLESv2
-Libs.private: -lpthread -pthread -lm -ldl
-Cflags: -I${includedir}
diff --git a/source/x/mesa/mesa.SlackBuild b/source/x/mesa/mesa.SlackBuild
index 5428881b..a3cf4ae3 100755
--- a/source/x/mesa/mesa.SlackBuild
+++ b/source/x/mesa/mesa.SlackBuild
@@ -25,7 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=mesa
VERSION=${VERSION:-$(echo $PKGNAM-1*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
DEMOVERS=${DEMOVERS:-8.4.0}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
+BUILD_DEMOS=${BUILD_DEMOS:-YES}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -129,7 +130,7 @@ meson setup \
-Dshared-llvm=true \
-Dshared-glapi=true \
-Degl=true \
- -Dgles1=false \
+ -Dgles1=true \
-Dgles2=true \
.. || exit 1
"${NINJA:=ninja}" $NUMJOBS || exit 1
@@ -141,42 +142,37 @@ if [ -r $PKG/etc/drirc ]; then
mv $PKG/etc/drirc $PKG/etc/drirc.new
fi
-# Install glesv2.pc:
-mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig
-cat $CWD/glesv2.pc > $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/glesv2.pc
-if [ ! "${LIBDIRSUFFIX}" = "64" ]; then
- sed -i "s/lib64/lib/g" $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/glesv2.pc
-fi
-
-# Now build/install a small subset of the demos:
-export CWD SLKCFLAGS NUMJOBS PKG
-( 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 \
+if [ "$BUILD_DEMOS" = "YES" ]; then
+ # Now build/install a small subset of the demos:
+ export CWD SLKCFLAGS NUMJOBS PKG
+ ( 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 || exit 1
- make $NUMJOBS || exit 1
- # Install all the demos (including the pointless ones) at first, in a
- # temporary location:
- make install DESTDIR=$PKG/cruft || exit 1
- # Install gears and glinfo, as well as a few other demos:
- mkdir -p $PKG/usr/bin
- for demo in gears glinfo glthreads glxcontexts glxdemo glxgears \
- glxgears_fbconfig glxheads glxinfo glxpbdemo glxpixmap ; do
- mv --verbose $PKG/cruft/usr/bin/$demo $PKG/usr/bin
+ -exec chmod 644 {} \+
+ CFLAGS="$SLKCFLAGS" \
+ ./configure \
+ --prefix=/usr \
+ --build=$ARCH-slackware-linux || exit 1
+ make $NUMJOBS || exit 1
+ # Install all the demos (including the pointless ones) at first, in a
+ # temporary location:
+ make install DESTDIR=$PKG/cruft || exit 1
+ # Install gears and glinfo, as well as a few other demos:
+ mkdir -p $PKG/usr/bin
+ for demo in gears glinfo glthreads glxcontexts glxdemo glxgears \
+ glxgears_fbconfig glxheads glxinfo glxpbdemo glxpixmap ; do
+ mv --verbose $PKG/cruft/usr/bin/$demo $PKG/usr/bin
done
- # Remove cruft:
- rm -rf $PKG/cruft
-) || exit 1
+ # Remove cruft:
+ rm -rf $PKG/cruft
+ ) || exit 1
+fi
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \