[Libreoffice-commits] core.git: download.lst external/fontconfig

David Tardon dtardon at redhat.com
Wed Jul 12 08:51:28 UTC 2017


 download.lst                                                        |    4 
 external/fontconfig/0001-Fix-the-build-issue-with-gperf-3.1.patch.1 |  117 ----------
 external/fontconfig/UnpackedTarball_fontconfig.mk                   |    2 
 external/fontconfig/fontconfig-glibc-limits.patch.1                 |   47 ----
 4 files changed, 2 insertions(+), 168 deletions(-)

New commits:
commit fc8badada7b9946dc9987238e3e90737d64a3830
Author: David Tardon <dtardon at redhat.com>
Date:   Wed Jul 12 08:41:54 2017 +0200

    upload fontconfig 2.12.4
    
    Change-Id: I151ce38c094d208c113cf0bd8a9f5322891d7bcd
    Reviewed-on: https://gerrit.libreoffice.org/39850
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: David Tardon <dtardon at redhat.com>

diff --git a/download.lst b/download.lst
index 43e78b02dee2..61ea81c57918 100644
--- a/download.lst
+++ b/download.lst
@@ -45,8 +45,8 @@ export EXPAT_SHA256SUM := 1868cadae4c82a018e361e2b2091de103cd820aaacb0d6cfa49bd2
 export EXPAT_TARBALL := expat-2.2.1.tar.bz2
 export FIREBIRD_SHA256SUM := 6994be3555e23226630c587444be19d309b25b0fcf1f87df3b4e3f88943e5860
 export FIREBIRD_TARBALL := Firebird-3.0.0.32483-0.tar.bz2
-export FONTCONFIG_SHA256SUM := b449a3e10c47e1d1c7a6ec6e2016cca73d3bd68fbbd4f0ae5cc6b573f7d6c7f3
-export FONTCONFIG_TARBALL := fontconfig-2.12.1.tar.bz2
+export FONTCONFIG_SHA256SUM := 668293fcc4b3c59765cdee5cee05941091c0879edcc24dfec5455ef83912e45c
+export FONTCONFIG_TARBALL := fontconfig-2.12.4.tar.bz2
 export FONT_CALADEA_SHA256SUM := c48d1c2fd613c9c06c959c34da7b8388059e2408d2bb19845dc3ed35f76e4d09
 export FONT_CALADEA_TARBALL := 368f114c078f94214a308a74c7e991bc-crosextrafonts-20130214.tar.gz
 export FONT_CARLITO_SHA256SUM := 4bd12b6cbc321c1cf16da76e2c585c925ce956a08067ae6f6c64eff6ccfdaf5a
diff --git a/external/fontconfig/0001-Fix-the-build-issue-with-gperf-3.1.patch.1 b/external/fontconfig/0001-Fix-the-build-issue-with-gperf-3.1.patch.1
deleted file mode 100644
index fe6f44505ffd..000000000000
--- a/external/fontconfig/0001-Fix-the-build-issue-with-gperf-3.1.patch.1
+++ /dev/null
@@ -1,117 +0,0 @@
-From 31010a2cc6f2d0596dac640b190df3472e0089dd Mon Sep 17 00:00:00 2001
-From: Akira TAGOH <akira at tagoh.org>
-Date: Thu, 23 Feb 2017 21:39:10 +0900
-Subject: [PATCH] Fix the build issue with gperf 3.1
-
-To support the one of changes in gperf 3.1:
-* The 'len' parameter of the hash function and of the lookup function is now
-  of type 'size_t' instead of 'unsigned int'. This makes it safe to call these
-  functions with strings of length > 4 GB, on 64-bit machines.
----
- config.h.in  |  3 +++
- configure    | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- configure.ac | 20 ++++++++++++++++++++
- src/fcobjs.c |  4 ++--
- 4 files changed, 81 insertions(+), 2 deletions(-)
-
-diff --git a/config.h.in b/config.h.in
-index ffff4cd..d5c14a1 100644
---- a/config.h.in
-+++ b/config.h.in
-@@ -21,6 +21,9 @@
- /* System font directory */
- #undef FC_DEFAULT_FONTS
- 
-+/* The type of len parameter of the gperf hash/lookup function */
-+#undef FC_GPERF_SIZE_T
-+
- /* Define to nothing if C supports flexible array members, and to 1 if it does
-    not. That way, with a declaration like `struct s { int n; double
-    d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99
-diff --git a/configure b/configure
-index eed481c..9eddc2b 100755
---- a/configure
-+++ b/configure
-@@ -14946,6 +14946,62 @@ _ACEOF
- fi
- 
- 
-+# Check the argument type of the gperf hash/lookup function
-+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking The type of len parameter of gperf hash/lookup function" >&5
-+$as_echo_n "checking The type of len parameter of gperf hash/lookup function... " >&6; }
-+fc_gperf_test="$(echo 'foo' | gperf -L ANSI-C)"
-+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h.  */
-+
-+	#include <string.h>
-+
-+	const char *in_word_set(register const char *, register size_t);
-+	$fc_gperf_test
-+
-+int
-+main ()
-+{
-+
-+  ;
-+  return 0;
-+}
-+_ACEOF
-+if ac_fn_c_try_compile "$LINENO"; then :
-+  FC_GPERF_SIZE_T=size_t
-+else
-+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h.  */
-+
-+		#include <string.h>
-+
-+		const char *in_word_set(register const char *, register unsigned int);
-+		$fc_gperf_test
-+
-+int
-+main ()
-+{
-+
-+  ;
-+  return 0;
-+}
-+_ACEOF
-+if ac_fn_c_try_compile "$LINENO"; then :
-+  FC_GPERF_SIZE_T="unsigned int"
-+else
-+  as_fn_error $? "Unable to determine the type of the len parameter of the gperf hash/lookup function" "$LINENO" 5
-+
-+fi
-+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-+fi
-+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-+
-+cat >>confdefs.h <<_ACEOF
-+#define FC_GPERF_SIZE_T $FC_GPERF_SIZE_T
-+_ACEOF
-+
-+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_GPERF_SIZE_T" >&5
-+$as_echo "$FC_GPERF_SIZE_T" >&6; }
-+
- #
- # Checks for iconv
- #
-diff --git a/src/fcobjs.c b/src/fcobjs.c
-index 16ff31c..33bba8d 100644
---- a/src/fcobjs.c
-+++ b/src/fcobjs.c
-@@ -25,10 +25,10 @@
- #include "fcint.h"
- 
- static unsigned int
--FcObjectTypeHash (register const char *str, register unsigned int len);
-+FcObjectTypeHash (register const char *str, register FC_GPERF_SIZE_T len);
- 
- static const struct FcObjectTypeInfo *
--FcObjectTypeLookup (register const char *str, register unsigned int len);
-+FcObjectTypeLookup (register const char *str, register FC_GPERF_SIZE_T len);
- 
- #include "fcobjshash.h"
- 
--- 
-2.12.0
-
diff --git a/external/fontconfig/UnpackedTarball_fontconfig.mk b/external/fontconfig/UnpackedTarball_fontconfig.mk
index a2d596a327a3..6026a817c5ed 100644
--- a/external/fontconfig/UnpackedTarball_fontconfig.mk
+++ b/external/fontconfig/UnpackedTarball_fontconfig.mk
@@ -13,8 +13,6 @@ $(eval $(call gb_UnpackedTarball_set_tarball,fontconfig,$(FONTCONFIG_TARBALL),,f
 
 $(eval $(call gb_UnpackedTarball_add_patches,fontconfig,\
 	external/fontconfig/fontconfig-2.12.1.patch.1 \
-	external/fontconfig/fontconfig-glibc-limits.patch.1 \
-	external/fontconfig/0001-Fix-the-build-issue-with-gperf-3.1.patch.1 \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/fontconfig/fontconfig-glibc-limits.patch.1 b/external/fontconfig/fontconfig-glibc-limits.patch.1
deleted file mode 100644
index 8eff16098186..000000000000
--- a/external/fontconfig/fontconfig-glibc-limits.patch.1
+++ /dev/null
@@ -1,47 +0,0 @@
-From 1ab5258f7c2abfafcd63a760ca08bf93591912da Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem at gmail.com>
-Date: Wed, 14 Dec 2016 16:11:05 -0800
-Subject: [PATCH] Avoid conflicts with integer width macros from TS
- 18661-1:2014
-
-glibc 2.25+ has now defined these macros in <limits.h>
-https://sourceware.org/git/?p=glibc.git;a=commit;h=5b17fd0da62bf923cb61d1bb7b08cf2e1f1f9c1a
-
-Create an alias for FC_CHAR_WIDTH for ABI compatibility
-
-Signed-off-by: Khem Raj <raj.khem at gmail.com>
----
- fontconfig/fontconfig.h | 3 ++-
- src/fcobjs.h            | 2 +-
- 2 files changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/fontconfig/fontconfig.h b/fontconfig/fontconfig.h
-index 5c72b22..070a557 100644
---- a/fontconfig/fontconfig.h
-+++ b/fontconfig/fontconfig.h
-@@ -128,7 +128,8 @@ typedef int		FcBool;
- #define FC_USER_CACHE_FILE	    ".fonts.cache-" FC_CACHE_VERSION
- 
- /* Adjust outline rasterizer */
--#define FC_CHAR_WIDTH	    "charwidth"	/* Int */
-+#define FC_CHARWIDTH	    "charwidth"	/* Int */
-+#define FC_CHAR_WIDTH	    FC_CHARWIDTH
- #define FC_CHAR_HEIGHT	    "charheight"/* Int */
- #define FC_MATRIX	    "matrix"    /* FcMatrix */
- 
-diff --git a/src/fcobjs.h b/src/fcobjs.h
-index 1fc4f65..d27864b 100644
---- a/src/fcobjs.h
-+++ b/src/fcobjs.h
-@@ -51,7 +51,7 @@ FC_OBJECT (DPI,			FcTypeDouble,	NULL)
- FC_OBJECT (RGBA,		FcTypeInteger,	NULL)
- FC_OBJECT (SCALE,		FcTypeDouble,	NULL)
- FC_OBJECT (MINSPACE,		FcTypeBool,	NULL)
--FC_OBJECT (CHAR_WIDTH,		FcTypeInteger,	NULL)
-+FC_OBJECT (CHARWIDTH,		FcTypeInteger,	NULL)
- FC_OBJECT (CHAR_HEIGHT,		FcTypeInteger,	NULL)
- FC_OBJECT (MATRIX,		FcTypeMatrix,	NULL)
- FC_OBJECT (CHARSET,		FcTypeCharSet,	FcCompareCharSet)
--- 
-2.9.3
-


More information about the Libreoffice-commits mailing list