From 7e5ee73de954e6c084195b0a1fa6ef01a78d092f Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Tue, 19 Jun 2018 22:35:25 +0000 Subject: Tue Jun 19 22:35:25 UTC 2018 a/acl-2.2.53-x86_64-1.txz: Upgraded. a/attr-2.4.48-x86_64-1.txz: Upgraded. n/gnupg-1.4.23-x86_64-1.txz: Upgraded. Sanitize the diagnostic output of the original file name in verbose mode. By using a made up file name in the message it was possible to fake status messages. Using this technique it was for example possible to fake the verification status of a signed mail. For more information, see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12020 (* Security fix *) x/libXaw3d-1.6.3-x86_64-1.txz: Upgraded. x/libinput-1.11.1-x86_64-1.txz: Upgraded. x/xf86-input-mouse-1.9.3-x86_64-1.txz: Upgraded. testing/packages/pkgtools-15.0-noarch-20.txz: Rebuilt. This update is a bit scarier than usual, so we're going to test it here first and then move it into the main tree in a couple of days if there are no serious bug reports. It's well-tested here, and works with the slackpkg that's in -current now, but I don't know about slackpkg+ so that's another reason to let it cool down here first. The purpose of this update is to migrate the package database and directories from /var/log to /var/lib/pkgtools. /var/log was never a good place for this data, as it is considered by many to be a directory that could be wiped to free up some space. Originally the package database was in /var/adm, but the FSSTND (later FHS) group decided that directory should be a symlink to /var/log, and I went along with that since it was years ago and I was a n00b and didn't know any better. /var/lib/pkgtools will be a better and safer location. The removed_packages and removed_scripts directories are really just logs that aren't actually used for anything - those will remain under /var/log, but moved into /var/log/pkgtools. Everything under /var/log will be considered potentially non-permanent by the pkgtools - if any directories or symlinks disappear from there, the pkgtools will automatically recreate them as needed. In fact, the migration process will create symlinks from all the old directory locations to the new ones, so anything that expects the old locations (including slackpkg, for now) should continue to work. Once this moves into the main tree, the plan is to fix other packages to use the new installer script directory (/var/lib/pkgtools/setup) and change the installer and slackpkg to use the new native locations for everything. When slackpkg is changed over to use the new native locations, I'll also make sure to float that in testing/ for a few days before moving it to the main tree to avoid more unintentional disruption to slackpkg+ users. Be aware that the package database migration is a one-way operation, but even so if you later downgrade to an older version of the pkgtools it will still work through the compatibility symlinks. --- source/a/acl/acl.SlackBuild | 53 +++++++++++++++++++++++++-------------------- source/a/acl/acl.url | 1 + source/a/acl/slack-desc | 2 +- 3 files changed, 31 insertions(+), 25 deletions(-) create mode 100644 source/a/acl/acl.url (limited to 'source/a/acl') diff --git a/source/a/acl/acl.SlackBuild b/source/a/acl/acl.SlackBuild index 83e78f9d..9d024b20 100755 --- a/source/a/acl/acl.SlackBuild +++ b/source/a/acl/acl.SlackBuild @@ -23,8 +23,8 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=acl -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 4- -d . | rev | cut -f 2 -d -)} -BUILD=${BUILD:-2} +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 @@ -53,13 +53,15 @@ else LIBDIRSUFFIX="" fi +NUMJOBS=${NUMJOBS:-" -j7 "} + rm -rf $PKG -mkdir -p $TMP $PKG +mkdir -p $TMP $PKG/usr/lib${LIBDIRSUFFIX} cd $TMP rm -rf acl-$(echo $VERSION | cut -f 1 -d '-') -tar xvf $CWD/acl-$VERSION.src.tar.?z || exit 1 +tar xvf $CWD/acl-$VERSION.tar.?z || exit 1 cd acl-$(echo $VERSION | cut -f 1 -d '-') || exit 1 chown -R root:root . @@ -70,22 +72,19 @@ find . \ -exec chmod 644 {} \; ./configure \ - --prefix=/ \ - --exec-prefix=/ \ - --sbindir=/bin \ - --bindir=/usr/bin \ - --libdir=/lib${LIBDIRSUFFIX} \ - --libexecdir=/usr/lib${LIBDIRSUFFIX} \ - --includedir=/usr/include \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --docdir=/usr/doc/$PKGNAM-$VERSION \ --mandir=/usr/man \ - --datadir=/usr/share \ + --infodir=/usr/info \ + --disable-static \ --docdir=/usr/doc/acl-$VERSION \ --build=$ARCH-slackware-linux || exit 1 -make PKG_DOC_DIR=/usr/doc/acl-$VERSION || exit 1 -make install PKG_DOC_DIR=/usr/doc/acl-$VERSION DESTDIR=$PKG || exit 1 -make install-dev PKG_DOC_DIR=/usr/doc/acl-$VERSION DESTDIR=$PKG || exit 1 -make install-lib PKG_DOC_DIR=/usr/doc/acl-$VERSION DESTDIR=$PKG || exit 1 +make $NUMJOBS || make || exit 1 +make install DESTDIR=$PKG || exit 1 #It would be nice to keep the same timestamps that the files have in the source: cp -a \ @@ -96,17 +95,23 @@ cp -a \ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) -strip -g $PKG/usr/lib${LIBDIRSUFFIX}/*.a -# Remove bogus files: -rm -f $PKG/lib${LIBDIRSUFFIX}/*.a $PKG/lib${LIBDIRSUFFIX}/libacl.so $PKG/lib${LIBDIRSUFFIX}/*.la $PKG/usr/lib${LIBDIRSUFFIX}/*.la -# Make /usr/lib${LIBDIRSUFFIX}/libacl.so a symlink to /lib${LIBDIRSUFFIX}: +# Don't ship static libraries: +rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.a + +# Don't ship .la files: +rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.la + +# Move libraries, as they might be needed by programs that bring a network +# mounted /usr online: +mkdir $PKG/lib${LIBDIRSUFFIX} ( cd $PKG/usr/lib${LIBDIRSUFFIX} - rm -f libacl.so - ln -sf /lib${LIBDIRSUFFIX}/libacl.so.1 libacl.so + for file in lib*.so.?.* ; do + mv $file ../../lib${LIBDIRSUFFIX} + ln -sf ../../lib${LIBDIRSUFFIX}/$file . + done + cp -a lib*.so.? ../../lib${LIBDIRSUFFIX} ) -# Fix shared library perms: -chmod 755 $PKG/lib${LIBDIRSUFFIX}/* # Gzip the man pages: ( cd $PKG/usr/man diff --git a/source/a/acl/acl.url b/source/a/acl/acl.url new file mode 100644 index 00000000..ea5a80b3 --- /dev/null +++ b/source/a/acl/acl.url @@ -0,0 +1 @@ +http://download.savannah.nongnu.org/releases/acl diff --git a/source/a/acl/slack-desc b/source/a/acl/slack-desc index a3b5966f..95f100fc 100644 --- a/source/a/acl/slack-desc +++ b/source/a/acl/slack-desc @@ -13,7 +13,7 @@ acl: POSIX Access Control Lists. POSIX Access Control Lists (defined in acl: POSIX 1003.1e draft standard 17) are used to define more fine-grained acl: discretionary access rights for files and directories. acl: +acl: Homepage: http://savannah.nongnu.org/projects/acl acl: acl: -acl: Homepage: http://savannah.nongnu.org/projects/acl acl: -- cgit v1.2.3