texlive[51428] Build/source: buildinfo compiler names and options;

commits+karl at tug.org commits+karl at tug.org
Sun Jun 23 19:20:20 CEST 2019


Revision: 51428
          http://tug.org/svn/texlive?view=revision&revision=51428
Author:   karl
Date:     2019-06-23 19:20:20 +0200 (Sun, 23 Jun 2019)
Log Message:
-----------
buildinfo compiler names and options; reautoconf

Modified Paths:
--------------
    trunk/Build/source/Build
    trunk/Build/source/ChangeLog
    trunk/Build/source/Makefile.am
    trunk/Build/source/Makefile.in
    trunk/Build/source/doc/buildinfo.sh
    trunk/Build/source/libs/configure
    trunk/Build/source/texk/configure
    trunk/Build/source/utils/configure

Modified: trunk/Build/source/Build
===================================================================
--- trunk/Build/source/Build	2019-06-22 23:38:34 UTC (rev 51427)
+++ trunk/Build/source/Build	2019-06-23 17:20:20 UTC (rev 51428)
@@ -16,7 +16,8 @@
 mydir=`dirname $0`
 cd $mydir || exit 1
 
-: ${TL_WORKDIR=Work}
+# We export the TL_* variables so that they can be dumped to buildenv.log.
+: ${TL_WORKDIR=Work}; export TL_WORKDIR
 
 # allow override of install destination.
 if test -z "$TL_INSTALL_DEST"; then
@@ -24,6 +25,7 @@
   test -d inst || mkdir -p inst/texmf  # avoid configure warnings
   TL_INSTALL_DEST=$H/inst
 fi
+export TL_INSTALL_DEST
 
 # allow override of the make program.
 # The idea is to use TL_MAKE if that is defined (and set MAKE),
@@ -39,14 +41,14 @@
   TL_MAKE=make
   MAKE=make
 fi
-export MAKE
+export MAKE; export TL_MAKE
 
 # make flags
-: ${TL_MAKE_FLAGS=}
-: ${TL_MAKE_VERBOSE=VERBOSE=1}
+: ${TL_MAKE_FLAGS=}; export TL_MAKE_FLAGS
+: ${TL_MAKE_VERBOSE=VERBOSE=1}; export TL_MAKE_VERBOSE
 
 # allow override of make target.
-: ${TL_TARGET=world}
+: ${TL_TARGET=world}; export TL_TARGTE
 
 if test "x$1" = x--no-clean; then
   shift
@@ -56,7 +58,7 @@
 fi
 
 # allow adding environment setting for build.
-: ${TL_BUILD_ENV=}
+: ${TL_BUILD_ENV=}; export TL_BUILD_ENV
 if test "x$1" = x--debug || test "x$1" = x-g; then
   shift
   # The idea is that with Build -g, you can set TL_COMPILER_GFLAGS in
@@ -64,7 +66,7 @@
   # not necessarily anything to do with debugging, e.g., -mcpu=sparvc9.
   # Or you can set TL_{C,CXX,OBJCXX}FLAGS for per-language flags,
   # notably TL_CFLAGS=-Wdeclaration-after-statement.
-  : ${TL_COMPILER_GFLAGS=-g}
+  : ${TL_COMPILER_GFLAGS=-g}; export TL_COMPILER_CFLAGS
   c="CFLAGS='$TL_COMPILER_GFLAGS $TL_CFLAGS'"
   cxx="CXXFLAGS='$TL_COMPILER_GFLAGS $TL_CXXFLAGS'"
   objcxx="OBJCXXFLAGS='$TL_COMPILER_GFLAGS $TL_OBJCXXFLAGS'" # only for macs
@@ -73,33 +75,34 @@
 
 # allow for changing the banner identification, e.g.,
 # --with-banner-add='/SomeDistro'; see the build doc.
-: ${TL_CONF_BANNER=} 
+: ${TL_CONF_BANNER=}; export TL_CONF_BANNER
 
 # default to supporting large files as much as possible;
 # see comments at --disable-largefile in README.config.
-: ${TL_CONF_LARGEFILE=--enable-largefile}
+: ${TL_CONF_LARGEFILE=--enable-largefile}; export TL_CONF_LARGEFILE
 
 # default to terminate if requested programs or features must be disabled.
-: ${TL_CONF_MISSING=--disable-missing}
+: ${TL_CONF_MISSING=--disable-missing}; export TL_CONF_MISSING
 
 # default to static linking.
-: ${TL_CONF_SHARED=--disable-shared}
+: ${TL_CONF_SHARED=--disable-shared}; export TL_CONF_SHARED
 
 # allow override of xdvi toolkit, default to standard xaw.
 : ${TL_CONF_XDVI_TOOLKIT=--with-xdvi-x-toolkit=xaw}
+export TL_CONF_XDVI_TOOLKIT
 
 # allow override of configure location.
-: ${TL_CONFIGURE=../configure}
+: ${TL_CONFIGURE=../configure}; export TL_CONFIGURE
 
 # allow adding arbitrary other configure args, after all the others.
-: ${TL_CONFIGURE_ARGS=}
+: ${TL_CONFIGURE_ARGS=}; export TL_CONFIGURE_ARGS
 
 # allow for doing stuff betwen configure and make.
-: ${TL_POSTCONFIGURE=true} 
+: ${TL_POSTCONFIGURE=true}; export TL_POSTCONFIGURE
 
 # Kpathsea is not going to be able to find its cnf files during the
 # build, so omit the warning about it.
-: ${KPATHSEA_WARNING=0}
+: ${KPATHSEA_WARNING=0}; export KPATHSEA_WARNING
 
 # make our working directory.
 test -d $TL_WORKDIR || mkdir $TL_WORKDIR
@@ -114,29 +117,10 @@
   #
   # output system info (will also be done by make, to buildinfo.log).
   $mydir/doc/buildinfo.sh --no-config-status
+  env | sort >buildenv.log
   echo "See also buildenv.log and buildinfo.log in `pwd`"
   echo
   #
-  # Export the interesting TL_* variables that might be set,
-  # so they can be dumped to buildenv.log.
-  test -z "$TL_BUILD_ENV" || export TL_BUILD_ENV 
-  test -z "$TL_COMPILER_GFLAGS" || export TL_COMPILER_GFLAGS
-  test -z "$TL_CONF_BANNER" || export TL_CONF_BANNER
-  test -z "$TL_CONF_LARGEFILE" || export TL_CONF_LARGEFILE
-  test -z "$TL_CONF_MISSING" || export TL_CONF_MISSING
-  test -z "$TL_CONF_SHARED" || export TL_CONF_SHARED
-  test -z "$TL_CONF_XDVI_TOOLKIT" || export TL_CONF_XDVI_TOOLKIT
-  test -z "$TL_CONFIGURE" || export TL_CONFIGURE
-  test -z "$TL_CONFIGURE_ARGS" || export TL_CONFIGURE_ARGS
-  test -z "$TL_INSTALL_DEST" || export TL_INSTALL_DEST
-  test -z "$TL_MAKE" || export TL_MAKE
-  test -z "$TL_MAKE_FLAGS" || export TL_MAKE_FLAGS 
-  test -z "$TL_MAKE_VERBOSE" || export TL_MAKE_VERBOSE
-  test -z "$TL_POSTCONFIGURE" || export TL_POSTCONFIGURE
-  test -z "$TL_TARGET" || export TL_TARGET
-  test -z "$TL_WORKDIR" || export TL_WORKDIR
-  env | sort >buildenv.log
-  #
   set -vx  # show the configure and make commands in the log.
 
   eval $TL_BUILD_ENV $TL_CONFIGURE \
@@ -152,7 +136,7 @@
   && eval $TL_POSTCONFIGURE \
   && eval $TL_BUILD_ENV $TL_MAKE $TL_MAKE_FLAGS $TL_MAKE_VERBOSE $TL_TARGET
   
-  # Too arcane to try to propagate the exit status through a pipeline.
+  # Too arcane to propagate the exit status through a pipeline.
   # Just use a temp file.
   echo $? >exitstatus.txt
 } 2>&1 | tee build.log
@@ -167,7 +151,7 @@
     echo "$0: $count executables in $bindir."
   else
     echo "$0: Build failed, no executables under $bindir."
-    echo "$0: Full log in `pwd`/build.log."
+    echo "$0: Full log in: `pwd`/build.log"
     exit 1
   fi | tee -a build.log
 # if no bindir, perhaps they specified --prefix; don't worry.

Modified: trunk/Build/source/ChangeLog
===================================================================
--- trunk/Build/source/ChangeLog	2019-06-22 23:38:34 UTC (rev 51427)
+++ trunk/Build/source/ChangeLog	2019-06-23 17:20:20 UTC (rev 51428)
@@ -1,3 +1,10 @@
+2019-06-23  Karl Berry  <karl at freefriends.org>
+
+	* doc/buildinfo.sh: output the compiler/other names
+	that we pass from the buildinfo target.
+	* Makefile.am (buildinfo): pass OBJCXX, not OBJC.
+	* Build: more maintainable exports of TL_*.
+
 2019-06-22  Karl Berry  <karl at freefriends.org>
 
 	* doc/buildinfo.sh: rename from build-info.sh;

Modified: trunk/Build/source/Makefile.am
===================================================================
--- trunk/Build/source/Makefile.am	2019-06-22 23:38:34 UTC (rev 51427)
+++ trunk/Build/source/Makefile.am	2019-06-23 17:20:20 UTC (rev 51428)
@@ -67,7 +67,7 @@
 	-env MAKE="$(MAKE)" LDFLAGS="$(LDFLAGS)" \
 	    CC="$(CC)" CFLAGS="$(CFLAGS)" \
 	    CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" \
-	    OBJC="$(OBJC)" OBJCXXFLAGS="$(OBJCXXFLAGS)" \
+	    OBJCXX="$(OBJCXX)" OBJCXXFLAGS="$(OBJCXXFLAGS)" \
 	$(srcdir)/doc/buildinfo.sh >buildinfo.log
 
 # should be harmless to run it, but just in case:

Modified: trunk/Build/source/Makefile.in
===================================================================
--- trunk/Build/source/Makefile.in	2019-06-22 23:38:34 UTC (rev 51427)
+++ trunk/Build/source/Makefile.in	2019-06-23 17:20:20 UTC (rev 51428)
@@ -1053,7 +1053,7 @@
 	-env MAKE="$(MAKE)" LDFLAGS="$(LDFLAGS)" \
 	    CC="$(CC)" CFLAGS="$(CFLAGS)" \
 	    CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" \
-	    OBJC="$(OBJC)" OBJCXXFLAGS="$(OBJCXXFLAGS)" \
+	    OBJCXX="$(OBJCXX)" OBJCXXFLAGS="$(OBJCXXFLAGS)" \
 	$(srcdir)/doc/buildinfo.sh >buildinfo.log
 
 # run buildinfo first.

Modified: trunk/Build/source/doc/buildinfo.sh
===================================================================
--- trunk/Build/source/doc/buildinfo.sh	2019-06-22 23:38:34 UTC (rev 51427)
+++ trunk/Build/source/doc/buildinfo.sh	2019-06-23 17:20:20 UTC (rev 51428)
@@ -14,13 +14,24 @@
 
 # /etc/issue often contains only placeholders, so don't bother.
 
+printf 'MAKE\t"%s"\n'     "${MAKE-make}"
 printf 'MAKE-v\t"%s"\n'   "`${MAKE-make} -v 2>&1 | sed 1q`"
 # BSD make does not give version info with -v, but the
 # first line of the usage message is sort of an identifier.
 
 # our configure defaults to using gcc and g++.
+printf 'CC\t"%s"\n'       "${CC-gcc}"
+printf 'CFLAGS\t"%s"\n'   "${CFLAGS}"
 printf 'CC-v\t"%s"\n'     "`${CC-gcc} --version 2>&1 | sed 1q`"
+#
+printf 'CXX\t"%s"\n'      "${CXX-g++}"
+printf 'CXXFLAGS\t"%s"\n' "${CXXFLAGS}"
 printf 'CXX-v\t"%s"\n'    "`${CXX-g++} --version 2>&1 | sed 1q`"
+#
+printf 'OBJCXX\t"%s"\n'      "${OBJCXX-cc}"
+printf 'OBJCXXFLAGS\t"%s"\n' "${OBJCXXFLAGS}"
+#
+printf 'LDFLAGS\t"%s"\n'  "${LDFLAGS}"
 
 # Some Linux-based systems provide this, but don't worry if not there.
 # Let's hope that other systems are sufficiently identified by uname,

Modified: trunk/Build/source/libs/configure
===================================================================
--- trunk/Build/source/libs/configure	2019-06-22 23:38:34 UTC (rev 51427)
+++ trunk/Build/source/libs/configure	2019-06-23 17:20:20 UTC (rev 51428)
@@ -1626,8 +1626,8 @@
   --with-mf-x-toolkit     use X toolkit for METAFONT
   --with-gs=/PATH/TO/gs   Hard-wire the location of GhostScript
   --with-xdvi-x-toolkit=KIT
-                          Use toolkit KIT (motif/xaw/xaw3d/neXtaw) for xdvi
-                          [default: Motif if available, else Xaw]
+                          Use toolkit KIT (xaw/motif/xaw3d/neXtaw) for xdvi
+                          [default: Xaw]
   --with-system-harfbuzz  use installed harfbuzz headers and library (requires
                           pkg-config)
   --with-system-icu       use installed ICU headers and libraries (requires

Modified: trunk/Build/source/texk/configure
===================================================================
--- trunk/Build/source/texk/configure	2019-06-22 23:38:34 UTC (rev 51427)
+++ trunk/Build/source/texk/configure	2019-06-23 17:20:20 UTC (rev 51428)
@@ -1626,8 +1626,8 @@
   --with-mf-x-toolkit     use X toolkit for METAFONT
   --with-gs=/PATH/TO/gs   Hard-wire the location of GhostScript
   --with-xdvi-x-toolkit=KIT
-                          Use toolkit KIT (motif/xaw/xaw3d/neXtaw) for xdvi
-                          [default: Motif if available, else Xaw]
+                          Use toolkit KIT (xaw/motif/xaw3d/neXtaw) for xdvi
+                          [default: Xaw]
   --with-system-harfbuzz  use installed harfbuzz headers and library (requires
                           pkg-config)
   --with-system-icu       use installed ICU headers and libraries (requires

Modified: trunk/Build/source/utils/configure
===================================================================
--- trunk/Build/source/utils/configure	2019-06-22 23:38:34 UTC (rev 51427)
+++ trunk/Build/source/utils/configure	2019-06-23 17:20:20 UTC (rev 51428)
@@ -1626,8 +1626,8 @@
   --with-mf-x-toolkit     use X toolkit for METAFONT
   --with-gs=/PATH/TO/gs   Hard-wire the location of GhostScript
   --with-xdvi-x-toolkit=KIT
-                          Use toolkit KIT (motif/xaw/xaw3d/neXtaw) for xdvi
-                          [default: Motif if available, else Xaw]
+                          Use toolkit KIT (xaw/motif/xaw3d/neXtaw) for xdvi
+                          [default: Xaw]
   --with-system-harfbuzz  use installed harfbuzz headers and library (requires
                           pkg-config)
   --with-system-icu       use installed ICU headers and libraries (requires



More information about the tex-live-commits mailing list