summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/kpathsea/ChangeLog6
-rwxr-xr-xBuild/source/texk/kpathsea/tests/kpsereadlink.test17
2 files changed, 19 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index 4d166d0ebd0..452890b9efa 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,9 @@
+2024-02-22 Karl Berry <karl@freefriends.org>
+
+ * tests/kpsereadlink.test: create and use our own test file and
+ symlink, instead of using libtool's, in case slibtool is in use.
+ From orbea, https://github.com/TeX-Live/texlive-source/pull/65.
+
2023-02-10 Karl Berry <karl@tug.org>
* texmf.cnf (TEXMFVAR, TEXMFCONFIG, doc): 2024.
diff --git a/Build/source/texk/kpathsea/tests/kpsereadlink.test b/Build/source/texk/kpathsea/tests/kpsereadlink.test
index 3b3570aa8d2..2e1a8524947 100755
--- a/Build/source/texk/kpathsea/tests/kpsereadlink.test
+++ b/Build/source/texk/kpathsea/tests/kpsereadlink.test
@@ -1,14 +1,23 @@
#! /bin/sh -vx
# $Id$
-# Copyright 2017 Karl Berry <tex-live@tug.org>
+# Copyright 2017-2024 Karl Berry <tex-live@tug.org>
# Copyright 2010 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
+test -n "$LN_S" || LN_S="ln -s" # standalone testing
+
test "x$LN_S" = 'xln -s' || exit 77
-./kpsereadlink $LT_OBJDIR/libkpathsea.lai && exit 1
+rm -f readlink_test_file readlink_test_symlink
+
+touch readlink_test_file
+
+$LN_S readlink_test_file readlink_test_symlink || exit 1
+
+./kpsereadlink readlink_test_file && exit 1
-link=`./kpsereadlink $LT_OBJDIR/libkpathsea.la` || exit 1
+link=`./kpsereadlink readlink_test_symlink` || exit 1
-test "x$link" = x../libkpathsea.la || exit 1
+test "x$link" = xreadlink_test_file || exit 1
+rm -f readlink_test_file readlink_test_symlink