mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
addce63adb
Hey folks, a little status update here. First, huge thanks are due to nobodino for helping to shake out packages that weren't building from source. With all those fixes in place (plus a few more), we have tested and found that everything in the tree compiles cleanly against glibc-2.32. So, the plan is to have another mass rebuild soon against that. Although the ABI didn't technically change, I've heard that libpthread may not be 100% compatible in some corner cases, so we'll err on the side of caution. Hopefully we can get a little testing done on the recompiled system and then go through it all again at the beginning of next month when glibc-2.33 is released. Other than that, how's Mesa working these days? If there are still issues that are resolved by dropping back to the previous branch, let's try to figure those out. I'd rather not revert Mesa unless there's no other choice. I'm hoping that the (probably unrelated) issues with Intel video hardware will be helped by today's xorg-server patch that uses the modesetting driver with newer chipsets. Please report any improvement on the LQ thread. Beta approaches. :-) a/sysklogd-2.2.0-x86_64-1.txz: Upgraded. d/distcc-3.3.5-x86_64-2.txz: Rebuilt. Properly install distccmon-gnome.desktop. Thanks to marco70. d/python-setuptools-51.3.3-x86_64-1.txz: Upgraded. l/imagemagick-7.0.10_58-x86_64-1.txz: Upgraded. l/libodfgen-0.1.8-x86_64-1.txz: Upgraded. l/libsigsegv-2.13-x86_64-1.txz: Upgraded. n/inetd-1.79s-x86_64-12.txz: Rebuilt. Rebuilt to link with libtirpc. Thanks to nobodino. n/nftables-0.9.8-x86_64-1.txz: Upgraded. n/postfix-3.5.9-x86_64-1.txz: Upgraded. n/tcp_wrappers-7.6-x86_64-4.txz: Rebuilt. Use strerror(), not sys_errlist(). Thanks to nobodino. x/xorg-server-1.20.10-x86_64-3.txz: Rebuilt. Only use the Intel DDX with pre-gen4 hardware. Newer hardware will use the modesetting driver. x/xorg-server-xephyr-1.20.10-x86_64-3.txz: Rebuilt. x/xorg-server-xnest-1.20.10-x86_64-3.txz: Rebuilt. x/xorg-server-xvfb-1.20.10-x86_64-3.txz: Rebuilt. x/xorg-server-xwayland-1.20.10-x86_64-3.txz: Rebuilt. xfce/xfce4-appfinder-4.16.1-x86_64-1.txz: Upgraded.
164 lines
4.9 KiB
Bash
Executable file
164 lines
4.9 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# Copyright 2005-2020 Patrick J. Volkerding, Sebeka, Minnesota, 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.
|
|
|
|
cd $(dirname $0) ; CWD=$(pwd)
|
|
|
|
PKGNAM=sysklogd
|
|
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
|
|
BUILD=${BUILD:-1}
|
|
|
|
# Automatically determine the architecture we're building on:
|
|
if [ -z "$ARCH" ]; then
|
|
case "$(uname -m)" in
|
|
i?86) ARCH=i586 ;;
|
|
arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
|
|
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
*) ARCH=$(uname -m) ;;
|
|
esac
|
|
export ARCH
|
|
fi
|
|
|
|
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
|
# the name of the created package would be, and then exit. This information
|
|
# could be useful to other scripts.
|
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
|
echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
|
|
exit 0
|
|
fi
|
|
|
|
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
|
|
|
|
if [ "$ARCH" = "i586" ]; then
|
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
|
LIBDIRSUFFIX=""
|
|
elif [ "$ARCH" = "i686" ]; then
|
|
SLKCFLAGS="-O2 -march=i686"
|
|
LIBDIRSUFFIX=""
|
|
elif [ "$ARCH" = "s390" ]; then
|
|
SLKCFLAGS="-O2"
|
|
LIBDIRSUFFIX=""
|
|
elif [ "$ARCH" = "x86_64" ]; then
|
|
SLKCFLAGS="-O2 -fPIC"
|
|
LIBDIRSUFFIX="64"
|
|
elif [ "$ARCH" = "armv7hl" ]; then
|
|
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"
|
|
LIBDIRSUFFIX=""
|
|
else
|
|
SLKCFLAGS="-O2"
|
|
LIBDIRSUFFIX=""
|
|
fi
|
|
|
|
TMP=${TMP:-/tmp}
|
|
PKG=$TMP/package-$PKGNAM
|
|
|
|
rm -rf $PKG
|
|
mkdir -p $TMP $PKG
|
|
|
|
cd $TMP
|
|
rm -rf $PKGNAM-$VERSION
|
|
tar xvf $CWD/$PKGNAM-$VERSION.tar.?z || exit 1
|
|
cd $PKGNAM-$VERSION || exit 1
|
|
|
|
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 {} \+
|
|
|
|
# Configure, build, and install:
|
|
CFLAGS="$SLKCFLAGS" \
|
|
CXXFLAGS="$SLKCFLAGS" \
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--docdir=/usr/doc/$PKGNAM-$VERSION \
|
|
--mandir=/usr/man \
|
|
--infodir=/usr/info \
|
|
--disable-static \
|
|
--without-logger \
|
|
--build=$ARCH-slackware-linux || exit 1
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/etc/syslog.d
|
|
cat $CWD/config/syslog.conf.new > $PKG/etc/syslog.conf.new
|
|
|
|
mkdir -p $PKG/etc/logrotate.d
|
|
cat $CWD/config/syslog.logrotate > $PKG/etc/logrotate.d/syslog.new
|
|
|
|
mkdir -p $PKG/etc/rc.d
|
|
cat $CWD/config/rc.syslog.new > $PKG/etc/rc.d/rc.syslog.new
|
|
chmod 0755 $PKG/etc/rc.d/rc.syslog.new
|
|
|
|
mkdir -p $PKG/etc/default
|
|
cat $CWD/config/syslogd.new > $PKG/etc/default/syslogd.new
|
|
|
|
mkdir -p $PKG/var/log
|
|
for i in cron debug maillog messages secure syslog ; do
|
|
touch $PKG/var/log/$i.new
|
|
chmod 640 $PKG/var/log/$i.new
|
|
done
|
|
|
|
# Don't ship .la files:
|
|
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
|
|
|
|
# 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
|
|
|
|
# Compress manual pages:
|
|
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
|
|
( cd $PKG/usr/info
|
|
rm -f dir
|
|
gzip -9 *
|
|
)
|
|
fi
|
|
|
|
# Add a documentation directory:
|
|
mkdir -p $PKG/usr/doc/${PKGNAM}-$VERSION
|
|
cp -a \
|
|
ChangeLog* COPYING* LICENSE* NEWS* README* THANKS* TODO* \
|
|
$PKG/usr/doc/${PKGNAM}-$VERSION
|
|
|
|
# If there's a ChangeLog, installing at least part of the recent history
|
|
# is useful, but don't let it get totally out of control:
|
|
if [ -r ChangeLog ]; then
|
|
DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION)
|
|
cat ChangeLog.md | head -n 1000 > $DOCSDIR/ChangeLog.md
|
|
touch -r ChangeLog.md $DOCSDIR/ChangeLog.md
|
|
fi
|
|
|
|
mkdir -p $PKG/install
|
|
zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
|
|
|
cd $PKG
|
|
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
|