texlive[58227] Build/source/texk/kpathsea: cnfline.test adapt to

commits+karl at tug.org commits+karl at tug.org
Mon Mar 8 19:40:56 CET 2021


Revision: 58227
          http://tug.org/svn/texlive?view=revision&revision=58227
Author:   karl
Date:     2021-03-08 19:40:56 +0100 (Mon, 08 Mar 2021)
Log Message:
-----------
cnfline.test adapt to --enable-shared, with different $0

Modified Paths:
--------------
    trunk/Build/source/texk/kpathsea/ChangeLog
    trunk/Build/source/texk/kpathsea/tests/cnfline/texmf.cnf
    trunk/Build/source/texk/kpathsea/tests/cnfline.test

Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog	2021-03-08 18:34:16 UTC (rev 58226)
+++ trunk/Build/source/texk/kpathsea/ChangeLog	2021-03-08 18:40:56 UTC (rev 58227)
@@ -1,3 +1,12 @@
+2021-03-08  Karl Berry  <karl at freefriends.org>
+
+	* tests/cnfline/texmf.cnf (maxpr.lt-kpsewhich): set this,
+	for --enable-shared builds.
+	https://tug.org/pipermail/tex-k/2021-March/003490.html
+	* tests/cnfline.test: unset maxpr othervar, just in case
+	they are set in the environment. Maybe unset on an unset variable
+	is portable enough nowadays?
+
 2021-02-17  Karl Berry  <karl at freefriends.org>
 
 	* doc/kpathsea.texi,

Modified: trunk/Build/source/texk/kpathsea/tests/cnfline/texmf.cnf
===================================================================
--- trunk/Build/source/texk/kpathsea/tests/cnfline/texmf.cnf	2021-03-08 18:34:16 UTC (rev 58226)
+++ trunk/Build/source/texk/kpathsea/tests/cnfline/texmf.cnf	2021-03-08 18:40:56 UTC (rev 58227)
@@ -1,5 +1,14 @@
 # $Id$
 # Public domain. This tiny texmf.cnf is for kpathsea/tests/cnfline.test. 
 maxpr=100
+
+# static build:
 maxpr.kpsewhich=200
+
+# with --enable-shared (libtool) build, the binary has a different name.
+# although we could also work around this by specifying --progname in
+# cnfline.test, one goal of the test is to check what happens when
+# --progname is not specified.
+maxpr.lt-kpsewhich=200
+
 othervar=300

Modified: trunk/Build/source/texk/kpathsea/tests/cnfline.test
===================================================================
--- trunk/Build/source/texk/kpathsea/tests/cnfline.test	2021-03-08 18:34:16 UTC (rev 58226)
+++ trunk/Build/source/texk/kpathsea/tests/cnfline.test	2021-03-08 18:40:56 UTC (rev 58227)
@@ -5,6 +5,10 @@
 
 cnf_dir=$srcdir/tests/cnfline
 
+# just in case they are set in the environment
+unset maxpr
+unset othervar
+
 # Just for fun, let's first try the --cnf-line feature to set TEXMFCNF.
 val=`./kpsewhich "--cnf-line=TEXMFCNF=$cnf_dir" --var-value=othervar`
 test x"$val" = x300 || exit 1



More information about the tex-live-commits mailing list.