aboutsummaryrefslogtreecommitdiff
path: root/system/makepp
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-03-16 12:48:53 -0400
committerB. Watson <yalhcru@gmail.com>2022-03-17 13:23:07 -0400
commit500fc6fd897f88607adbb71a75f62084e61c74bf (patch)
tree87fac0ed82f4201fd4d81af94bbc23dc404d90c7 /system/makepp
parent9ffbc67bd83770e6f253c4210f214e5510c4a758 (diff)
system/makepp: Fix broken symlinks.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system/makepp')
-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 17164b658db5e..cb296d2ea63f9 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