summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson2022-03-16 17:48:53 +0100
committer B. Watson2022-03-17 18:23:07 +0100
commit500fc6fd897f88607adbb71a75f62084e61c74bf (patch)
tree87fac0ed82f4201fd4d81af94bbc23dc404d90c7
parent9ffbc67bd83770e6f253c4210f214e5510c4a758 (diff)
downloadslackbuilds-500fc6fd897f88607adbb71a75f62084e61c74bf.tar.gz
system/makepp: Fix broken symlinks.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r--system/makepp/makepp.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/system/makepp/makepp.SlackBuild b/system/makepp/makepp.SlackBuild
index 17164b658d..cb296d2ea6 100644
--- a/system/makepp/makepp.SlackBuild
+++ b/system/makepp/makepp.SlackBuild
@@ -6,6 +6,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20220316 bkw: derp. fix broken symlinks.
# 20210824 bkw: update for v2.0.99.2, aka 2.1rc1, because 2.0 won't
# build on -current and other distros have been shipping 2.1 betas and
# release candidates for years now.
@@ -14,7 +15,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=makepp
VERSION=${VERSION:-2.0.99.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -60,6 +61,14 @@ perl install.pl \
none \
$PKG
+# 20220316 bkw: install.pl's symlinks are absolute, pointing to $PKG.
+# Make them relative. This code only works because the link targets
+# are in the same directories as the links.
+for link in $( find -P $PKG -type l); do
+ target="$( realpath $link )"
+ rm -f $link; ln -s $( basename $target ) $link
+done
+
# in 2.0.99.2, they're already gzipped.
#gzip -9 $PKG/usr/man/man1/*.1