texlive[69478] Build/source/texk/dvisvgm: fixes from Martin for
commits+karl at tug.org
commits+karl at tug.org
Thu Jan 18 18:49:48 CET 2024
Revision: 69478
https://tug.org/svn/texlive?view=revision&revision=69478
Author: karl
Date: 2024-01-18 18:49:47 +0100 (Thu, 18 Jan 2024)
Log Message:
-----------
fixes from Martin for non-TL build
Modified Paths:
--------------
trunk/Build/source/texk/dvisvgm/ChangeLog
trunk/Build/source/texk/dvisvgm/TLpatches/patch-04-configure
trunk/Build/source/texk/dvisvgm/TLpatches/patch-08-makefiles
trunk/Build/source/texk/dvisvgm/configure
trunk/Build/source/texk/dvisvgm/dvisvgm-src/configure.ac
trunk/Build/source/texk/dvisvgm/dvisvgm-src/src/Makefile.am
trunk/Build/source/texk/dvisvgm/dvisvgm-src/src/Makefile.in
Modified: trunk/Build/source/texk/dvisvgm/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvisvgm/ChangeLog 2024-01-18 00:44:41 UTC (rev 69477)
+++ trunk/Build/source/texk/dvisvgm/ChangeLog 2024-01-18 17:49:47 UTC (rev 69478)
@@ -1,3 +1,15 @@
+2024-01-18 Karl Berry <karl at freefriends.org>
+
+ * configure.ac,
+ * Makefile.am,
+ * TLpatches/patch-04-configure,
+ * TLpatches/patch-08-makefiles: tweaks from Martin for non-TL build.
+ https://github.com/mgieseki/dvisvgm/issues/259
+
+2024-01-18 Karl Berry <karl at freefriends.org>
+
+ * Import dvisvgm-3.2.
+
2024-01-01 TANAKA Takuji <ttk at t-lab.opal.ne.jp>
* tests/dvisvgm.test: Make easier to test on Windows.
Modified: trunk/Build/source/texk/dvisvgm/TLpatches/patch-04-configure
===================================================================
--- trunk/Build/source/texk/dvisvgm/TLpatches/patch-04-configure 2024-01-18 00:44:41 UTC (rev 69477)
+++ trunk/Build/source/texk/dvisvgm/TLpatches/patch-04-configure 2024-01-18 17:49:47 UTC (rev 69478)
@@ -1,5 +1,5 @@
--- dvisvgm-3.2/configure.ac 2024-01-11 00:52:01.000000000 -0800
-+++ ./configure.ac 2024-01-16 09:29:40.201424363 -0800
++++ ./configure.ac 2024-01-16 10:32:10.211225839 -0800
@@ -1,18 +1,31 @@
-# This file is part of dvisvgm
-# Copyright (C) 2005-2024 Martin Gieseking <martin.gieseking at uos.de>
@@ -6,7 +6,7 @@
-#
-# Process this file with autoconf to produce a configure script.
-
-+dnl $Id: configure.ac 67404 2023-06-18 22:03:59Z karl $
++dnl $Id: configure.ac 69453 2024-01-16 18:32:08Z karl $
+dnl Process this file with autoconf to produce a configure script
+dnl for dvisvgm in TeX Live.
+dnl
@@ -122,7 +122,7 @@
+fi
AS_IF([test "x$have_libgs" = "xno"],
# Ghostscript not found, check for dlopen
-@@ -83,65 +70,89 @@
+@@ -83,65 +70,88 @@
[AC_DEFINE(DISABLE_GS, 1, [Set to 1 if PostScript support should be disabled])]
[AC_MSG_WARN(PostScript support disabled)])])
+fi
@@ -263,10 +263,9 @@
# Check for header files.
AC_HEADER_DIRENT
-
-+AC_HEADER_STDC
AC_CHECK_HEADERS_ONCE([libintl.h stdlib.h string.h strings.h unistd.h])
-@@ -156,81 +167,82 @@
+@@ -156,81 +166,82 @@
AX_GCC_BUILTIN(__builtin_clz)
-# add options for selection of "optional" library locations
Modified: trunk/Build/source/texk/dvisvgm/TLpatches/patch-08-makefiles
===================================================================
--- trunk/Build/source/texk/dvisvgm/TLpatches/patch-08-makefiles 2024-01-18 00:44:41 UTC (rev 69477)
+++ trunk/Build/source/texk/dvisvgm/TLpatches/patch-08-makefiles 2024-01-18 17:49:47 UTC (rev 69478)
@@ -47,7 +47,7 @@
+ $(ZLIB_INCLUDES) \
$(BROTLI_CFLAGS) $(WOFF2_CFLAGS)
--- dvisvgm-3.2/./src/Makefile.am 2024-01-11 00:52:01.000000000 -0800
-+++ dvisvgm-src/./src/Makefile.am 2024-01-16 09:53:07.401546123 -0800
++++ dvisvgm-src/./src/Makefile.am 2024-01-18 09:44:09.359399768 -0800
@@ -18,8 +18,6 @@
../libs/clipper/libclipper.a \
../libs/md5/libmd5.a \
@@ -86,16 +86,20 @@
-
AM_CFLAGS = $(WARNING_CFLAGS) \
$(ZLIB_CFLAGS) \
-@@ -182,13 +186,28 @@
+@@ -182,9 +186,5 @@
AM_CXXFLAGS = $(WARNING_CXXFLAGS) \
-I$(dvisvgm_srcdir)/libs/clipper \
- -I$(dvisvgm_srcdir)/libs/variant/include \
+- $(KPSE_CFLAGS) \
+- $(FREETYPE_CFLAGS) \
+- $(ZLIB_CFLAGS) \
+- $(CODE_COVERAGE_CFLAGS)
+ -I$(dvisvgm_srcdir)/libs/variant/include
-+
-+AM_CXXFLAGS += \
-+ $(POTRACE_CFLAGS) \
-+ $(XXHASH_CFLAGS)
-+
+
+ AM_CXXFLAGS += \
+@@ -192,4 +192,22 @@
+ $(XXHASH_CFLAGS)
+
+if TEXLIVE_BUILD
+AM_CXXFLAGS += \
+ $(KPATHSEA_INCLUDES) \
@@ -103,23 +107,20 @@
+ $(FREETYPE2_INCLUDES) \
+ $(ZLIB_INCLUDES) \
+ $(CODE_COVERAGE_CFLAGS)
++if WIN32
++AM_CXXFLAGS += -DTEXLIVEWIN32
++endif WIN32
+else
+AM_CXXFLAGS += \
- $(KPSE_CFLAGS) \
- $(FREETYPE_CFLAGS) \
- $(ZLIB_CFLAGS) \
- $(CODE_COVERAGE_CFLAGS)
++ $(KPSE_CFLAGS) \
++ $(FREETYPE_CFLAGS) \
++ $(ZLIB_CFLAGS) \
++ $(CODE_COVERAGE_CFLAGS)
+endif !TEXLIVE_BUILD
-
--AM_CXXFLAGS += \
-- $(POTRACE_CFLAGS) \
-- $(XXHASH_CFLAGS)
-+if WIN32
-+AM_CXXFLAGS += -DTEXLIVEWIN32
-+endif WIN32
-
++
AM_LDFLAGS = \
-@@ -203,6 +222,9 @@
+ $(KPSE_LIBS) \
+@@ -203,6 +221,9 @@
$(WOFF2_CFLAGS)
+# TL: do not try to rebuild these source files.
@@ -130,7 +131,7 @@
+endif ENABLE_WOFF
AM_CXXFLAGS += -I$(dvisvgm_srcdir)/libs/md5
-@@ -226,4 +248,15 @@
+@@ -226,4 +247,15 @@
if TEXLIVE_BUILD
+# Rebuild libkpathsea:
Modified: trunk/Build/source/texk/dvisvgm/configure
===================================================================
--- trunk/Build/source/texk/dvisvgm/configure 2024-01-18 00:44:41 UTC (rev 69477)
+++ trunk/Build/source/texk/dvisvgm/configure 2024-01-18 17:49:47 UTC (rev 69478)
@@ -24004,90 +24004,9 @@
fi
-# Autoupdate added the next two lines to ensure that your configure
-# script's behavior did not change. They are probably safe to remove.
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
-printf %s "checking for egrep... " >&6; }
-if test ${ac_cv_path_EGREP+y}
-then :
- printf %s "(cached) " >&6
-else case e in #(
- e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
- then ac_cv_path_EGREP="$GREP -E"
- else
- if test -z "$EGREP"; then
- ac_path_EGREP_found=false
- # Loop through the user's path and test for each of PROGNAME-LIST
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
-do
- IFS=$as_save_IFS
- case $as_dir in #(((
- '') as_dir=./ ;;
- */) ;;
- *) as_dir=$as_dir/ ;;
- esac
- for ac_prog in egrep
- do
- for ac_exec_ext in '' $ac_executable_extensions; do
- ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
- as_fn_executable_p "$ac_path_EGREP" || continue
-# Check for GNU ac_path_EGREP and select it if it is found.
- # Check for GNU $ac_path_EGREP
-case `"$ac_path_EGREP" --version 2>&1` in #(
-*GNU*)
- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
-#(
-*)
- ac_count=0
- printf %s 0123456789 >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- printf "%s\n" 'EGREP' >> "conftest.nl"
- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
- as_fn_arith $ac_count + 1 && ac_count=$as_val
- if test $ac_count -gt ${ac_path_EGREP_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_EGREP="$ac_path_EGREP"
- ac_path_EGREP_max=$ac_count
- fi
- # 10*(2^10) chars as input seems more than enough
- test $ac_count -gt 10 && break
- done
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
- $ac_path_EGREP_found && break 3
- done
- done
- done
-IFS=$as_save_IFS
- if test -z "$ac_cv_path_EGREP"; then
- as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
- fi
-else
- ac_cv_path_EGREP=$EGREP
-fi
- fi ;;
-esac
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
-printf "%s\n" "$ac_cv_path_EGREP" >&6; }
- EGREP="$ac_cv_path_EGREP"
-
- EGREP_TRADITIONAL=$EGREP
- ac_cv_path_EGREP_TRADITIONAL=$EGREP
-
-
-
-
-
# Check for typedefs, structures, and compiler characteristics.
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
if test "x$ac_cv_type__Bool" = xyes
Modified: trunk/Build/source/texk/dvisvgm/dvisvgm-src/configure.ac
===================================================================
--- trunk/Build/source/texk/dvisvgm/dvisvgm-src/configure.ac 2024-01-18 00:44:41 UTC (rev 69477)
+++ trunk/Build/source/texk/dvisvgm/dvisvgm-src/configure.ac 2024-01-18 17:49:47 UTC (rev 69478)
@@ -119,6 +119,9 @@
AM_CONDITIONAL(HAVE_WOFF2, [test "x$have_woff2" = "xyes"])
AM_CONDITIONAL(HAVE_XXHASH, [test "x$have_xxhash" = "xyes"])
+# Dummy required for TL build sections in automake files
+AM_CONDITIONAL(WIN32, false)
+
AS_IF([test "x$enable_woff" != "xyes"],
[AC_DEFINE([DISABLE_WOFF], 1, [Define if WOFF support is disabled])],
[AS_IF([test "x$with_ttfautohint" != "xno"],
Modified: trunk/Build/source/texk/dvisvgm/dvisvgm-src/src/Makefile.am
===================================================================
--- trunk/Build/source/texk/dvisvgm/dvisvgm-src/src/Makefile.am 2024-01-18 00:44:41 UTC (rev 69477)
+++ trunk/Build/source/texk/dvisvgm/dvisvgm-src/src/Makefile.am 2024-01-18 17:49:47 UTC (rev 69478)
@@ -198,6 +198,9 @@
$(FREETYPE2_INCLUDES) \
$(ZLIB_INCLUDES) \
$(CODE_COVERAGE_CFLAGS)
+if WIN32
+AM_CXXFLAGS += -DTEXLIVEWIN32
+endif WIN32
else
AM_CXXFLAGS += \
$(KPSE_CFLAGS) \
@@ -206,10 +209,6 @@
$(CODE_COVERAGE_CFLAGS)
endif !TEXLIVE_BUILD
-if WIN32
-AM_CXXFLAGS += -DTEXLIVEWIN32
-endif WIN32
-
AM_LDFLAGS = \
$(KPSE_LIBS) \
$(CODE_COVERAGE_LDFLAGS)
Modified: trunk/Build/source/texk/dvisvgm/dvisvgm-src/src/Makefile.in
===================================================================
--- trunk/Build/source/texk/dvisvgm/dvisvgm-src/src/Makefile.in 2024-01-18 00:44:41 UTC (rev 69477)
+++ trunk/Build/source/texk/dvisvgm/dvisvgm-src/src/Makefile.in 2024-01-18 17:49:47 UTC (rev 69478)
@@ -118,13 +118,13 @@
@TEXLIVE_BUILD_TRUE@ $(ZLIB_INCLUDES) \
@TEXLIVE_BUILD_TRUE@ $(CODE_COVERAGE_CFLAGS)
- at TEXLIVE_BUILD_FALSE@am__append_12 = \
+ at TEXLIVE_BUILD_TRUE@@WIN32_TRUE at am__append_12 = -DTEXLIVEWIN32
+ at TEXLIVE_BUILD_FALSE@am__append_13 = \
@TEXLIVE_BUILD_FALSE@ $(KPSE_CFLAGS) \
@TEXLIVE_BUILD_FALSE@ $(FREETYPE_CFLAGS) \
@TEXLIVE_BUILD_FALSE@ $(ZLIB_CFLAGS) \
@TEXLIVE_BUILD_FALSE@ $(CODE_COVERAGE_CFLAGS)
- at WIN32_TRUE@am__append_13 = -DTEXLIVEWIN32
@ENABLE_WOFF_TRUE at am__append_14 = $(TTFAUTOHINT_CFLAGS) \
@ENABLE_WOFF_TRUE@ $(BROTLI_CFLAGS) $(WOFF2_CFLAGS)
More information about the tex-live-commits
mailing list.