diff options
author | B. Watson <yalhcru@gmail.com> | 2017-03-05 01:50:26 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-11 07:04:20 +0700 |
commit | c6b05da296e5fb2fa7dee07e0fc22f9638937867 (patch) | |
tree | dec0e8a2ec7519621fa718fa36ebcffef6ce14a5 /system/man-db/man-db.SlackBuild | |
parent | 4da988f56658bf363d43aa4791c597cbb5277757 (diff) |
system/man-db: Minor script updates.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system/man-db/man-db.SlackBuild')
-rw-r--r-- | system/man-db/man-db.SlackBuild | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/system/man-db/man-db.SlackBuild b/system/man-db/man-db.SlackBuild index 862bd35185dd0..1df54c96fc988 100644 --- a/system/man-db/man-db.SlackBuild +++ b/system/man-db/man-db.SlackBuild @@ -6,6 +6,11 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20170305 bkw: +# - BUILD=2 +# - get rid of systemd-specific /usr/lib/tmpfiles.d from package. +# - patch configure so it doesn't write to /usr/lib. + # 20170215 bkw: # - update for 2.7.6.1 (whoops, last update wasn't for the latest version # - only update the cache in doinst.sh if it's over an hour old. this @@ -36,7 +41,7 @@ PRGNAM=man-db VERSION=${VERSION:-2.7.6.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -135,6 +140,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# The 'checking for long filenames' test in the configure script writes to +# /usr/lib, which is bad behaviour for a configure script. Not to mention +# wrong (it assumes configure is always being run as root). We already +# know we have long filename support, because we live in the 21st century +# now, so this patch gets rid of the test and force-enables it. +patch -p1 < $CWD/dont_write_in_usr.diff + # The circumlocutions below are needed because doing it the sane way: # libpipeline_LIBS="-L$PKG/usr/lib$LIBDIRSUFFIX -lpipeline" # gets broken by libtool (it *insists* on replacing -lpipeline with @@ -161,6 +173,10 @@ CXXFLAGS="$SLKCFLAGS" \ make make install-strip DESTDIR=$PKG +# This stuff is for systemd, we don't need it (and it might confuse +# people coming from systemd distros): +rm -rf $PKG/usr/lib/tmpfiles.d/ + # There will always be man pages here, regardless of USR=yes or no. 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 |