diff options
author | Karl Berry <karl@freefriends.org> | 2024-03-05 23:23:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-03-05 23:23:42 +0000 |
commit | 8f2165b0a66024a98a18007895ce6b35c8185b97 (patch) | |
tree | 33a2f699b0c3d58dcc6c6f925fb05a17458b88d0 /Build/source/texk/dvisvgm/TLpatches | |
parent | 49bb2a2c52b76df12ec49e8fe3daf950f74249db (diff) |
dvisvgm 3.2.1
git-svn-id: svn://tug.org/texlive/trunk@70431 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/TLpatches')
-rw-r--r-- | Build/source/texk/dvisvgm/TLpatches/TL-Changes | 19 | ||||
-rw-r--r-- | Build/source/texk/dvisvgm/TLpatches/patch-04-configure | 15 | ||||
-rw-r--r-- | Build/source/texk/dvisvgm/TLpatches/patch-08-makefiles | 163 |
3 files changed, 51 insertions, 146 deletions
diff --git a/Build/source/texk/dvisvgm/TLpatches/TL-Changes b/Build/source/texk/dvisvgm/TLpatches/TL-Changes index a2b81ac1e19..de53a4f9260 100644 --- a/Build/source/texk/dvisvgm/TLpatches/TL-Changes +++ b/Build/source/texk/dvisvgm/TLpatches/TL-Changes @@ -32,13 +32,14 @@ svn rm `!!` svn status | sed -n 's/^\!//p' # rerun, should be empty now cd .. -Update our ./configure.ac from upstream dvisvgm-src/configure.ac. -See patch-04-configure for reference, but they won't apply as-is. -Probably easiest to check dvisvgm-prev/configure.ac vs. new: -diff dvisvgm-{prev,$ver}/configure.ac -and then install the changes in our configure.ac by hand. +# Update our ./configure.ac from upstream dvisvgm-src/configure.ac. +# See patch-04-configure for reference, but won't apply if there are any +# non-trivial changes. Best to check dvisvgm-prev/configure.ac vs. new: +cd .. +diff -u2 dvisvgm-{prev,$ver}/configure.ac +# and then install the changes in our configure.ac by hand as needed. -# patch to integrate into TL build; will likely need adjusting also. +# patch to integrate into TL build; even more likely to need adjusting. patch -d dvisvgm-src -p1 <TLpatches/patch-08-makefiles # remake autostuff (then make, etc., with fingers crossed). @@ -55,6 +56,12 @@ make -C ../../Work/texk/dvisvgm check \cp -f ../../Work/texk/dvisvgm/sample*.svg tests/ \cp -f ../../Work/texk/dvisvgm/upjf_full.svg tests/upjf.svg \cp -f ../../Work/texk/dvisvgm/upjf1_full.svg tests/upjf1.svg +# +# check that only diffs are the version number: +svn diff tests +# +# and rerun make check, should pass now: +make -C ../../Work/texk/dvisvgm check # before committing, update patches: diff -u2 dvisvgm-$ver/configure.ac ./ >TLpatches/patch-04-configure diff --git a/Build/source/texk/dvisvgm/TLpatches/patch-04-configure b/Build/source/texk/dvisvgm/TLpatches/patch-04-configure index 5fcac0cc37e..d4f43dc4a1a 100644 --- a/Build/source/texk/dvisvgm/TLpatches/patch-04-configure +++ b/Build/source/texk/dvisvgm/TLpatches/patch-04-configure @@ -1,5 +1,5 @@ ---- dvisvgm-3.2/configure.ac 2024-01-11 00:52:01.000000000 -0800 -+++ ./configure.ac 2024-01-16 10:32:10.211225839 -0800 +--- dvisvgm-3.2.1/configure.ac 2024-02-29 00:19:44.000000000 -0800 ++++ ./configure.ac 2024-03-05 14:59:41.578987696 -0800 @@ -1,18 +1,31 @@ -# This file is part of dvisvgm -# Copyright (C) 2005-2024 Martin Gieseking <martin.gieseking@uos.de> @@ -21,10 +21,10 @@ +dnl Copyright 2005-2024 Martin Gieseking +dnl AC_PREREQ([2.69]) --AC_INIT([dvisvgm],[3.2],[martin.gieseking@uos.de]) +-AC_INIT([dvisvgm],[3.2.1],[martin.gieseking@uos.de]) +m4_include([version.ac])[] dnl define dvisvgm_version +AC_INIT([dvisvgm (TeX Live)], dvisvgm_version, [tex-k@tug.org]) - DATE="January 2024" + DATE="February 2024" -AC_CONFIG_SRCDIR(src) +AC_CONFIG_SRCDIR([dvisvgm-src/src/dvisvgm.cpp]) AC_CONFIG_HEADERS([config.h]) @@ -122,7 +122,7 @@ +fi AS_IF([test "x$have_libgs" = "xno"], # Ghostscript not found, check for dlopen -@@ -83,65 +70,88 @@ +@@ -83,68 +70,88 @@ [AC_DEFINE(DISABLE_GS, 1, [Set to 1 if PostScript support should be disabled])] [AC_MSG_WARN(PostScript support disabled)])]) +fi @@ -235,6 +235,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"], @@ -265,7 +268,7 @@ - AC_CHECK_HEADERS_ONCE([libintl.h stdlib.h string.h strings.h unistd.h]) -@@ -156,81 +166,82 @@ +@@ -159,81 +166,82 @@ AX_GCC_BUILTIN(__builtin_clz) -# add options for selection of "optional" library locations diff --git a/Build/source/texk/dvisvgm/TLpatches/patch-08-makefiles b/Build/source/texk/dvisvgm/TLpatches/patch-08-makefiles index 728144cf82d..e3753fc5682 100644 --- a/Build/source/texk/dvisvgm/TLpatches/patch-08-makefiles +++ b/Build/source/texk/dvisvgm/TLpatches/patch-08-makefiles @@ -1,6 +1,6 @@ ---- dvisvgm-3.2/./Makefile.am 2024-01-03 02:50:11.000000000 -0800 -+++ dvisvgm-src/./Makefile.am 2024-01-16 09:31:00.523974816 -0800 -@@ -4,9 +4,9 @@ +--- dvisvgm-3.2.1/./Makefile.am 2024-01-03 02:50:11.000000000 -0800 ++++ dvisvgm-src/./Makefile.am 2024-03-05 15:17:38.259701130 -0800 +@@ -4,9 +4,12 @@ ## Process this file with automake. -include $(top_srcdir)/aminclude_static.am @@ -9,141 +9,36 @@ AUTOMAKE_OPTIONS = foreign EXTRA_DIST = COPYING -SUBDIRS = libs src tests doc -+SUBDIRS = libs src #not for TL: m4 tests doc - ACLOCAL_AMFLAGS = -I m4 - ---- dvisvgm-3.2/./libs/Makefile.am 2024-01-03 02:50:11.000000000 -0800 -+++ dvisvgm-src/./libs/Makefile.am 2024-01-16 09:31:00.524974811 -0800 -@@ -4,5 +4,9 @@ - ## Process this file with automake. - --SUBDIRS = boost clipper md5 potrace variant xxHash -+SUBDIRS = boost clipper md5 variant xxHash -+ ++SUBDIRS = libs src +if !TEXLIVE_BUILD -+SUBDIRS += potrace ++SUBDIRS += m4 tests doc +endif + ACLOCAL_AMFLAGS = -I m4 - if ENABLE_WOFF ---- dvisvgm-3.2/./libs/defs.am 2024-01-03 02:50:11.000000000 -0800 -+++ dvisvgm-src/./libs/defs.am 2024-01-16 09:49:05.754922928 -0800 -@@ -8,6 +8,9 @@ - +--- dvisvgm-3.2.1/./libs/defs.am 2024-01-22 05:46:24.000000000 -0800 ++++ dvisvgm-src/./libs/defs.am 2024-03-05 15:20:00.075059010 -0800 +@@ -11,6 +11,6 @@ + else if !HAVE_POTRACE -POTRACE_CFLAGS = -I$(dvisvgm_srcdir)/libs/potrace -POTRACE_LIBS = ../libs/potrace/libpotrace.a -+POTRACE_CFLAGS = $(POTRACE_INCLUDES) -+endif -+# -+if TEXLIVE_BUILD -+POTRACE_CFLAGS = $(POTRACE_INCLUDES) - endif - ---- dvisvgm-3.2/./src/ttf/Makefile.am 2023-01-10 05:20:29.000000000 -0800 -+++ dvisvgm-src/./src/ttf/Makefile.am 2024-01-16 09:31:00.524974811 -0800 -@@ -23,3 +23,4 @@ - -I$(dvisvgm_srcdir)/libs/boost \ - -I$(dvisvgm_srcdir)/libs/variant/include \ -+ $(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-18 09:44:09.359399768 -0800 -@@ -18,8 +18,6 @@ - ../libs/clipper/libclipper.a \ - ../libs/md5/libmd5.a \ -- $(FREETYPE_LIBS) \ - $(POTRACE_LIBS) \ -- $(XXHASH_LIBS) \ -- $(ZLIB_LIBS) -+ $(XXHASH_LIBS) - - if ENABLE_WOFF -@@ -29,5 +27,16 @@ - $(WOFF2_LIBS) \ - $(BROTLI_LIBS) --endif -+endif ENABLE_WOFF -+ -+if TEXLIVE_BUILD -+dvisvgm_LDADD += \ -+ $(KPATHSEA_LIBS) \ -+ $(FREETYPE2_LIBS) \ -+ $(ZLIB_LIBS) -+else -+dvisvgm_LDADD += \ -+ $(FREETYPE_LIBS) \ -+ $(ZLIB_LIBS) -+endif !TEXLIVE_BUILD - - dvisvgm_DEPENDENCIES = $(noinst_LTLIBRARIES) -@@ -171,9 +180,4 @@ - EXTRA_DIST = options.xml options.dtd iapi.h ierrors.h MiKTeXCom.hpp MiKTeXCom.cpp - --if !TEXLIVE_BUILD --WARNING_CFLAGS = -Wall --WARNING_CXXFLAGS = -Wall -Wnon-virtual-dtor --endif ++# POTRACE_CFLAGS = -I$(dvisvgm_srcdir)/libs/potrace ++# POTRACE_LIBS = ../libs/potrace/libpotrace.a + endif !HAVE_POTRACE + endif !TEXLIVE_BUILD +--- dvisvgm-3.2.1/./src/Makefile.am 2024-02-29 00:19:44.000000000 -0800 ++++ dvisvgm-src/./src/Makefile.am 2024-03-05 15:05:07.159805866 -0800 +@@ -258,13 +258,2 @@ + @POTRACE_RULE@ + endif TEXLIVE_BUILD - - AM_CFLAGS = $(WARNING_CFLAGS) \ - $(ZLIB_CFLAGS) \ -@@ -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 += \ -@@ -192,4 +192,22 @@ - $(XXHASH_CFLAGS) - -+if TEXLIVE_BUILD -+AM_CXXFLAGS += \ -+ $(KPATHSEA_INCLUDES) \ -+ $(POTRACE_INCLUDES) \ -+ $(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) -+endif !TEXLIVE_BUILD -+ - AM_LDFLAGS = \ - $(KPSE_LIBS) \ -@@ -203,6 +221,9 @@ - $(WOFF2_CFLAGS) - -+# TL: do not try to rebuild these source files. -+if !TEXLIVE_BUILD - AM_LDFLAGS += $(TTFAUTOHINT_LIBS) --endif -+endif !TEXLIVE_BUILD -+endif ENABLE_WOFF - - AM_CXXFLAGS += -I$(dvisvgm_srcdir)/libs/md5 -@@ -226,4 +247,15 @@ - - if TEXLIVE_BUILD -+# Rebuild libkpathsea: -+@KPATHSEA_RULE@ -+# Rebuild libfreetype: -+@FREETYPE2_RULE@ -+# Rebuild libz: -+@ZLIB_RULE@ -+# Rebuild potrace: -+@POTRACE_RULE@ -+endif TEXLIVE_BUILD -+ -+if TEXLIVE_BUILD - # Rebuild libkpathsea: - @KPATHSEA_RULE@ +-if TEXLIVE_BUILD +-# Rebuild libkpathsea: +-@KPATHSEA_RULE@ +-# Rebuild libfreetype: +-@FREETYPE2_RULE@ +-# Rebuild libz: +-@ZLIB_RULE@ +-# Rebuild potrace: +-@POTRACE_RULE@ +-endif TEXLIVE_BUILD |