diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2023-06-13 20:15:52 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2023-06-13 22:33:37 +0200 |
commit | a053a2e001f487193d01646f4de496c37bf144c8 (patch) | |
tree | 050101bbe1833ff9a02a399a07899e3ad8a732b0 /source | |
parent | 7da4809348c684aacb051389cd36e09088933812 (diff) | |
download | current-a053a2e001f487193d01646f4de496c37bf144c8.tar.gz current-a053a2e001f487193d01646f4de496c37bf144c8.tar.xz |
Tue Jun 13 20:15:52 UTC 202320230613201552
a/userspace-rcu-0.14.0-x86_64-1.txz: Added.
This is needed by xfsprogs-6.3.0.
a/xfsprogs-6.3.0-x86_64-1.txz: Upgraded.
ap/xfsdump-3.1.12-x86_64-1.txz: Upgraded.
d/ccache-4.8.2-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source')
-rw-r--r-- | source/a/userspace-rcu/slack-desc | 19 | ||||
-rwxr-xr-x | source/a/userspace-rcu/userspace-rcu.SlackBuild | 146 | ||||
-rw-r--r-- | source/a/userspace-rcu/userspace-rcu.url | 1 | ||||
-rwxr-xr-x | source/a/xfsprogs/xfsprogs.SlackBuild | 9 | ||||
-rwxr-xr-x | source/ap/xfsdump/xfsdump.SlackBuild | 2 | ||||
-rw-r--r-- | source/installer/ChangeLog.txt | 3 | ||||
-rwxr-xr-x | source/installer/build_installer.sh | 3 |
7 files changed, 179 insertions, 4 deletions
diff --git a/source/a/userspace-rcu/slack-desc b/source/a/userspace-rcu/slack-desc new file mode 100644 index 000000000..4774e2f5c --- /dev/null +++ b/source/a/userspace-rcu/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +userspace-rcu: userspace-rcu (userspace read-copy-update library) +userspace-rcu: +userspace-rcu: Read-copy update (RCU) is a synchronization mechanism that achieves +userspace-rcu: scalability improvements by allowing reads to occur concurrently with +userspace-rcu: updates. +userspace-rcu: +userspace-rcu: Homepage: https://liburcu.org +userspace-rcu: +userspace-rcu: +userspace-rcu: +userspace-rcu: diff --git a/source/a/userspace-rcu/userspace-rcu.SlackBuild b/source/a/userspace-rcu/userspace-rcu.SlackBuild new file mode 100755 index 000000000..52989a9b3 --- /dev/null +++ b/source/a/userspace-rcu/userspace-rcu.SlackBuild @@ -0,0 +1,146 @@ +#!/bin/bash + +# Copyright 2023 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=userspace-rcu +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: +if [ ! -r configure ]; then + if [ -x ./autogen.sh ]; then + NOCONFIGURE=1 ./autogen.sh + else + autoreconf -vif + fi +fi +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --docdir=/usr/doc/$PKGNAM-$VERSION \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --disable-static \ + --build=$ARCH-slackware-linux || exit 1 +make $NUMJOBS || make || exit 1 +make install DESTDIR=$PKG || exit 1 + +# 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 + +# Add a documentation directory: +mkdir -p $PKG/usr/doc/${PKGNAM}-$VERSION +cp -a \ + ChangeLog CodingStyle* COPYING* LICENSE* README* \ + *gpl*txt \ + $PKG/usr/doc/${PKGNAM}-$VERSION + +# Find this stuff in the source tarball: +rm -rf $PKG/usr/doc/${PKGNAM}-$VERSION/examples + +# 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 | head -n 1000 > $DOCSDIR/ChangeLog + touch -r ChangeLog $DOCSDIR/ChangeLog +fi + +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 diff --git a/source/a/userspace-rcu/userspace-rcu.url b/source/a/userspace-rcu/userspace-rcu.url new file mode 100644 index 000000000..0aac2d4fd --- /dev/null +++ b/source/a/userspace-rcu/userspace-rcu.url @@ -0,0 +1 @@ +https://liburcu.org diff --git a/source/a/xfsprogs/xfsprogs.SlackBuild b/source/a/xfsprogs/xfsprogs.SlackBuild index 4293eaf9c..8c79ed459 100755 --- a/source/a/xfsprogs/xfsprogs.SlackBuild +++ b/source/a/xfsprogs/xfsprogs.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2008, 2009, 2010, 2012, 2017, 2018 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2010, 2012, 2017, 2018, 2023 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=xfsprogs VERSION=${VERSION:-$(echo xfsprogs-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-5} +BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -106,6 +106,9 @@ mv $PKG/usr/doc/xfsprogs $PKG/usr/doc/xfsprogs-$VERSION cp -a README doc/COPYING doc/CREDITS doc/PORTING \ $PKG/usr/doc/xfsprogs-$VERSION +# Not sure why these don't get installed automatically, but they should: +cp -a LICENSES/* $PKG/usr/doc/xfsprogs-$VERSION + rm -f $PKG/usr/doc/xfsprogs-$VERSION/CHANGES.gz # If there's a ChangeLog, installing at least part of the recent history @@ -142,7 +145,7 @@ chmod 755 $PKG/lib${LIBDIRSUFFIX}/* # Strip libraries: find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -strip -g $PKG/usr/lib${LIBDIRSUFFIX}/*.a +#strip -g $PKG/usr/lib${LIBDIRSUFFIX}/*.a mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/source/ap/xfsdump/xfsdump.SlackBuild b/source/ap/xfsdump/xfsdump.SlackBuild index 922ff2c98..18d782cfa 100755 --- a/source/ap/xfsdump/xfsdump.SlackBuild +++ b/source/ap/xfsdump/xfsdump.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=xfsdump VERSION=${VERSION:-$(echo xfsdump-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} diff --git a/source/installer/ChangeLog.txt b/source/installer/ChangeLog.txt index b3341d421..9b48ad7fb 100644 --- a/source/installer/ChangeLog.txt +++ b/source/installer/ChangeLog.txt @@ -1,3 +1,6 @@ +Tue Jun 13 20:02:38 UTC 2023 + Added liburcu and liburcu-common libraries for xfsprogs. ++--------------------------+ Thu May 25 00:15:21 UTC 2023 Mount efivarfs. +--------------------------+ diff --git a/source/installer/build_installer.sh b/source/installer/build_installer.sh index 9504270ff..ea253fc59 100755 --- a/source/installer/build_installer.sh +++ b/source/installer/build_installer.sh @@ -998,6 +998,7 @@ a/util-linux \ a/xfsprogs \ a/xz \ a/zerofree \ +a/userspace-rcu \ ap/ddrescue \ ap/dmidecode \ ap/lsscsi \ @@ -1344,6 +1345,8 @@ cp -fa${VERBOSE1} \ libpam*.so* \ libpcre2-8.so* \ libpopt*.so* \ + liburcu-common.so.* \ + liburcu.so.* \ libreiserfscore.so* \ libsmartcols.so* \ libssl*so* \ |