diff options
3 files changed, 120 insertions, 62 deletions
diff --git a/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/configure.patch b/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/configure.patch index 8b98707cd7..976e0380e4 100644 --- a/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/configure.patch +++ b/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/configure.patch | |||
| @@ -1,11 +1,21 @@ | |||
| 1 | From 81c1ba940415595584a837ab1078c64855072f0c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
| 3 | Date: Mon, 21 Nov 2011 12:00:54 +0100 | ||
| 4 | Subject: [PATCH] t1lib: add 5.1.2 | ||
| 1 | 5 | ||
| 2 | # | 6 | # |
| 3 | # Patch managed by http://www.holgerschurig.de/patcher.html | 7 | # Patch managed by http://www.holgerschurig.de/patcher.html |
| 4 | # | 8 | # |
| 5 | 9 | ||
| 6 | --- t1lib-5.0.2/configure.in~configure.patch | 10 | --- |
| 7 | +++ t1lib-5.0.2/configure.in | 11 | configure.in | 95 ++++++++++++++++++++++++------------------------------------ |
| 8 | @@ -75,9 +75,9 @@ | 12 | 1 file changed, 38 insertions(+), 57 deletions(-) |
| 13 | |||
| 14 | diff --git a/configure.in b/configure.in | ||
| 15 | index eade4c0..e649ea9 100644 | ||
| 16 | --- a/configure.in | ||
| 17 | +++ b/configure.in | ||
| 18 | @@ -74,9 +74,9 @@ T1LIB_PATCHLEVEL=builtin(eval, MACRO_T1LIB_LT_REVISION) | ||
| 9 | T1LIB_VERSIONSTRING=\"MACRO_T1LIB_IDENTIFIER\" | 19 | T1LIB_VERSIONSTRING=\"MACRO_T1LIB_IDENTIFIER\" |
| 10 | 20 | ||
| 11 | 21 | ||
| @@ -18,7 +28,7 @@ | |||
| 18 | 28 | ||
| 19 | dnl We want these before the checks, so the checks can modify their values. | 29 | dnl We want these before the checks, so the checks can modify their values. |
| 20 | test -z "$LDLIBS" && LDLIBS=-lm AC_SUBST(LDLIBS) | 30 | test -z "$LDLIBS" && LDLIBS=-lm AC_SUBST(LDLIBS) |
| 21 | @@ -161,6 +161,7 @@ | 31 | @@ -162,6 +162,7 @@ fi |
| 22 | 32 | ||
| 23 | dnl **** Check for underscore on external symbols **** | 33 | dnl **** Check for underscore on external symbols **** |
| 24 | 34 | ||
| @@ -26,21 +36,12 @@ | |||
| 26 | AC_CACHE_CHECK("whether external symbols need an underscore prefix", | 36 | AC_CACHE_CHECK("whether external symbols need an underscore prefix", |
| 27 | ac_cv_c_extern_prefix, | 37 | ac_cv_c_extern_prefix, |
| 28 | [saved_libs=$LIBS | 38 | [saved_libs=$LIBS |
| 29 | @@ -178,68 +179,48 @@ | 39 | @@ -179,68 +180,48 @@ then |
| 30 | AC_DEFINE(NEED_UNDERSCORE_PREFIX) | 40 | AC_DEFINE(NEED_UNDERSCORE_PREFIX) |
| 31 | fi | 41 | fi |
| 32 | 42 | ||
| 33 | -dnl **** Check which ANSI integer type is 16 bit | 43 | -dnl **** Check which ANSI integer type is 16 bit |
| 34 | +dnl **** Check which ANSI integer type is 16 bit | 44 | - |
| 35 | +T1_AA_TYPE16="" | ||
| 36 | +for type in short int; do | ||
| 37 | + if test x"`eval echo \\$ac_cv_sizeof_$type`" = "x2"; then | ||
| 38 | + T1_AA_TYPE16="-DT1_AA_TYPE16=$type" | ||
| 39 | + T1_INT16="$type" | ||
| 40 | + break | ||
| 41 | + fi | ||
| 42 | +done | ||
| 43 | |||
| 44 | -AC_CACHE_CHECK( "which ANSI integer type is 16 bit", ac_16bit_type, | 45 | -AC_CACHE_CHECK( "which ANSI integer type is 16 bit", ac_16bit_type, |
| 45 | - AC_TRY_RUN([ | 46 | - AC_TRY_RUN([ |
| 46 | -int main(void) { | 47 | -int main(void) { |
| @@ -58,21 +59,23 @@ | |||
| 58 | -else | 59 | -else |
| 59 | - T1_AA_TYPE16="-DT1_AA_TYPE16=int" | 60 | - T1_AA_TYPE16="-DT1_AA_TYPE16=int" |
| 60 | - T1_INT16="int" | 61 | - T1_INT16="int" |
| 62 | +dnl **** Check which ANSI integer type is 16 bit | ||
| 63 | +T1_AA_TYPE16="" | ||
| 64 | +for type in short int; do | ||
| 65 | + if test x"`eval echo \\$ac_cv_sizeof_$type`" = "x2"; then | ||
| 66 | + T1_AA_TYPE16="-DT1_AA_TYPE16=$type" | ||
| 67 | + T1_INT16="$type" | ||
| 68 | + break | ||
| 69 | + fi | ||
| 70 | +done | ||
| 71 | + | ||
| 61 | +if test x"$T1_AA_TYPE16" = "x"; then | 72 | +if test x"$T1_AA_TYPE16" = "x"; then |
| 62 | + AC_MSG_ERROR("Unable to determine which integer type is 16 bit.") | 73 | + AC_MSG_ERROR("Unable to determine which integer type is 16 bit.") |
| 63 | fi | 74 | fi |
| 64 | 75 | ||
| 65 | - | 76 | - |
| 66 | dnl **** Check which ANSI integer type is 32 bit | 77 | dnl **** Check which ANSI integer type is 32 bit |
| 67 | +T1_AA_TYPE32="" | 78 | - |
| 68 | +for type in int long; do | ||
| 69 | + if test x"`eval echo \\$ac_cv_sizeof_$type`" = "x4"; then | ||
| 70 | + T1_AA_TYPE32="-DT1_AA_TYPE32=$type" | ||
| 71 | + T1_INT32="$type" | ||
| 72 | + break | ||
| 73 | + fi | ||
| 74 | +done | ||
| 75 | |||
| 76 | -AC_CACHE_CHECK( "which ANSI integer type is 32 bit", ac_32bit_type, | 79 | -AC_CACHE_CHECK( "which ANSI integer type is 32 bit", ac_32bit_type, |
| 77 | - AC_TRY_RUN([ | 80 | - AC_TRY_RUN([ |
| 78 | -int main(void) { | 81 | -int main(void) { |
| @@ -90,21 +93,22 @@ | |||
| 90 | -else | 93 | -else |
| 91 | - T1_AA_TYPE32="-DT1_AA_TYPE32=long" | 94 | - T1_AA_TYPE32="-DT1_AA_TYPE32=long" |
| 92 | - T1_INT32="long" | 95 | - T1_INT32="long" |
| 96 | +T1_AA_TYPE32="" | ||
| 97 | +for type in int long; do | ||
| 98 | + if test x"`eval echo \\$ac_cv_sizeof_$type`" = "x4"; then | ||
| 99 | + T1_AA_TYPE32="-DT1_AA_TYPE32=$type" | ||
| 100 | + T1_INT32="$type" | ||
| 101 | + break | ||
| 102 | + fi | ||
| 103 | +done | ||
| 104 | + | ||
| 93 | +if test x"$T1_AA_TYPE32" = "x"; then | 105 | +if test x"$T1_AA_TYPE32" = "x"; then |
| 94 | + AC_MSG_ERROR("Unable to determine which integer type is 32 bit.") | 106 | + AC_MSG_ERROR("Unable to determine which integer type is 32 bit.") |
| 95 | fi | 107 | fi |
| 96 | 108 | ||
| 97 | - | 109 | - |
| 98 | dnl **** Check which ANSI integer type is 64 bit | 110 | dnl **** Check which ANSI integer type is 64 bit |
| 99 | +T1_AA_TYPE64="" | 111 | - |
| 100 | +for type in long long_long; do | ||
| 101 | + if test x"`eval echo \\$ac_cv_sizeof_$type`" = "x8"; then | ||
| 102 | + AC_MSG_WARN("$type is 64 bit") | ||
| 103 | + T1_AA_TYPE64="-DT1_AA_TYPE64=\"`echo $type|tr '_' ' '`\"" | ||
| 104 | + break | ||
| 105 | + fi | ||
| 106 | +done | ||
| 107 | |||
| 108 | -AC_CACHE_CHECK( "which ANSI integer type is 64 bit", ac_64bit_type, | 112 | -AC_CACHE_CHECK( "which ANSI integer type is 64 bit", ac_64bit_type, |
| 109 | - AC_TRY_RUN([ | 113 | - AC_TRY_RUN([ |
| 110 | -int main(void) { | 114 | -int main(void) { |
| @@ -118,6 +122,15 @@ | |||
| 118 | - T1_AA_TYPE64="-DT1_AA_TYPE64=long" | 122 | - T1_AA_TYPE64="-DT1_AA_TYPE64=long" |
| 119 | -else | 123 | -else |
| 120 | - T1_AA_TYPE64= | 124 | - T1_AA_TYPE64= |
| 125 | +T1_AA_TYPE64="" | ||
| 126 | +for type in long long_long; do | ||
| 127 | + if test x"`eval echo \\$ac_cv_sizeof_$type`" = "x8"; then | ||
| 128 | + AC_MSG_WARN("$type is 64 bit") | ||
| 129 | + T1_AA_TYPE64="-DT1_AA_TYPE64=\"`echo $type|tr '_' ' '`\"" | ||
| 130 | + break | ||
| 131 | + fi | ||
| 132 | +done | ||
| 133 | + | ||
| 121 | +if test x"$T1_AA_TYPE64" = "x"; then | 134 | +if test x"$T1_AA_TYPE64" = "x"; then |
| 122 | + AC_MSG_ERROR("Unable to determine which integer type is 64 bit.") | 135 | + AC_MSG_ERROR("Unable to determine which integer type is 64 bit.") |
| 123 | fi | 136 | fi |
diff --git a/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/format_security.patch b/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/format_security.patch index 8b4ce400f3..bc2476bfc1 100644 --- a/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/format_security.patch +++ b/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/format_security.patch | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | From cea83003de3ffebde92becd1e599fe3b28f0a7c4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 6 Mar 2017 23:13:36 -0800 | ||
| 4 | Subject: [PATCH] t1lib: Fix printf format string errors | ||
| 5 | |||
| 1 | Fix printf formats to use format qualifiers | 6 | Fix printf formats to use format qualifiers |
| 2 | fixes | 7 | fixes |
| 3 | 8 | ||
| @@ -6,20 +11,17 @@ error: format string is not a string literal (potentially insecure) [-Werror,-Wf | |||
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 7 | Upstream-Status: Pending | 12 | Upstream-Status: Pending |
| 8 | 13 | ||
| 9 | --- a/lib/type1/objects.c | 14 | --- |
| 10 | +++ b/lib/type1/objects.c | 15 | lib/t1lib/t1subset.c | 2 +- |
| 11 | @@ -957,7 +957,7 @@ | 16 | lib/type1/objects.c | 2 +- |
| 12 | 17 | lib/type1/objects.h | 2 +- | |
| 13 | sprintf(typemsg, "Wrong object type in %s; expected %s, found %s.\n", | 18 | 3 files changed, 3 insertions(+), 3 deletions(-) |
| 14 | name, TypeFmt(expect), TypeFmt(obj->type)); | 19 | |
| 15 | - IfTrace0(TRUE,typemsg); | 20 | diff --git a/lib/t1lib/t1subset.c b/lib/t1lib/t1subset.c |
| 16 | + IfTrace1(TRUE, "%s", typemsg); | 21 | index da427b2..e76974f 100644 |
| 17 | |||
| 18 | ObjectPostMortem(obj); | ||
| 19 | |||
| 20 | --- a/lib/t1lib/t1subset.c | 22 | --- a/lib/t1lib/t1subset.c |
| 21 | +++ b/lib/t1lib/t1subset.c | 23 | +++ b/lib/t1lib/t1subset.c |
| 22 | @@ -759,7 +759,7 @@ | 24 | @@ -759,7 +759,7 @@ char *T1_SubsetFont( int FontID, |
| 23 | tr_len); | 25 | tr_len); |
| 24 | T1_PrintLog( "T1_SubsetFont()", err_warn_msg_buf, | 26 | T1_PrintLog( "T1_SubsetFont()", err_warn_msg_buf, |
| 25 | T1LOG_DEBUG); | 27 | T1LOG_DEBUG); |
| @@ -28,9 +30,24 @@ Upstream-Status: Pending | |||
| 28 | } | 30 | } |
| 29 | 31 | ||
| 30 | /* compute size of output file */ | 32 | /* compute size of output file */ |
| 33 | diff --git a/lib/type1/objects.c b/lib/type1/objects.c | ||
| 34 | index c413a0f..f828e6a 100644 | ||
| 35 | --- a/lib/type1/objects.c | ||
| 36 | +++ b/lib/type1/objects.c | ||
| 37 | @@ -957,7 +957,7 @@ struct xobject *TypeErr(name, obj, expect, ret) /* non-ANSI avoids overly strict | ||
| 38 | |||
| 39 | sprintf(typemsg, "Wrong object type in %s; expected %s, found %s.\n", | ||
| 40 | name, TypeFmt(expect), TypeFmt(obj->type)); | ||
| 41 | - IfTrace0(TRUE,typemsg); | ||
| 42 | + IfTrace1(TRUE, "%s", typemsg); | ||
| 43 | |||
| 44 | ObjectPostMortem(obj); | ||
| 45 | |||
| 46 | diff --git a/lib/type1/objects.h b/lib/type1/objects.h | ||
| 47 | index 13cbae7..3a1d337 100644 | ||
| 31 | --- a/lib/type1/objects.h | 48 | --- a/lib/type1/objects.h |
| 32 | +++ b/lib/type1/objects.h | 49 | +++ b/lib/type1/objects.h |
| 33 | @@ -214,7 +214,7 @@ | 50 | @@ -214,7 +214,7 @@ struct xobject { |
| 34 | /*SHARED*/ | 51 | /*SHARED*/ |
| 35 | /* NDW: personally, I want to see status and error messages! */ | 52 | /* NDW: personally, I want to see status and error messages! */ |
| 36 | #define IfTrace0(condition,model) \ | 53 | #define IfTrace0(condition,model) \ |
diff --git a/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/libtool.patch b/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/libtool.patch index e050025739..da54f87abb 100644 --- a/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/libtool.patch +++ b/meta-oe/recipes-extended/t1lib/t1lib-5.1.2/libtool.patch | |||
| @@ -1,12 +1,28 @@ | |||
| 1 | From bab41f5e1fc1fc809da1371e6a0222e0eb21e5f0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
| 3 | Date: Mon, 21 Nov 2011 12:00:54 +0100 | ||
| 4 | Subject: [PATCH] t1lib: add 5.1.2 | ||
| 1 | 5 | ||
| 2 | # | 6 | # |
| 3 | # Patch managed by http://www.holgerschurig.de/patcher.html | 7 | # Patch managed by http://www.holgerschurig.de/patcher.html |
| 4 | # | 8 | # |
| 5 | 9 | ||
| 6 | --- t1lib-5.0.2/Makefile.in~libtool | 10 | --- |
| 7 | +++ t1lib-5.0.2/Makefile.in | 11 | Makefile.in | 5 +++-- |
| 12 | examples/Makefile.in | 5 +++-- | ||
| 13 | lib/Makefile.in | 6 ++++-- | ||
| 14 | lib/t1lib/Makefile.in | 6 ++++-- | ||
| 15 | lib/type1/Makefile.in | 6 ++++-- | ||
| 16 | type1afm/Makefile.in | 6 ++++-- | ||
| 17 | xglyph/Makefile.in | 6 ++++-- | ||
| 18 | 7 files changed, 26 insertions(+), 14 deletions(-) | ||
| 19 | |||
| 20 | diff --git a/Makefile.in b/Makefile.in | ||
| 21 | index 29c3468..396c020 100644 | ||
| 22 | --- a/Makefile.in | ||
| 23 | +++ b/Makefile.in | ||
| 8 | @@ -18,7 +18,8 @@ | 24 | @@ -18,7 +18,8 @@ |
| 9 | # Last modified: 2001-04-01 | 25 | # Last modified: 2005-05-01 |
| 10 | # | 26 | # |
| 11 | 27 | ||
| 12 | -SHELL = /bin/sh | 28 | -SHELL = /bin/sh |
| @@ -15,7 +31,7 @@ | |||
| 15 | CC = @CC@ | 31 | CC = @CC@ |
| 16 | CPP = @CPP@ | 32 | CPP = @CPP@ |
| 17 | CFLAGS = @CFLAGS@ | 33 | CFLAGS = @CFLAGS@ |
| 18 | @@ -150,7 +151,7 @@ | 34 | @@ -149,7 +150,7 @@ distclean: clean |
| 19 | $(RM) examples/Makefile | 35 | $(RM) examples/Makefile |
| 20 | $(RM) xglyph/Makefile | 36 | $(RM) xglyph/Makefile |
| 21 | $(RM) doc/Makefile | 37 | $(RM) doc/Makefile |
| @@ -24,8 +40,10 @@ | |||
| 24 | 40 | ||
| 25 | 41 | ||
| 26 | # The following two targets are for building and cleaning the python- | 42 | # The following two targets are for building and cleaning the python- |
| 27 | --- t1lib-5.0.2/examples/Makefile.in~libtool | 43 | diff --git a/examples/Makefile.in b/examples/Makefile.in |
| 28 | +++ t1lib-5.0.2/examples/Makefile.in | 44 | index b301db5..7a6a514 100644 |
| 45 | --- a/examples/Makefile.in | ||
| 46 | +++ b/examples/Makefile.in | ||
| 29 | @@ -14,9 +14,10 @@ | 47 | @@ -14,9 +14,10 @@ |
| 30 | # Last modified: 2001-04-01 | 48 | # Last modified: 2001-04-01 |
| 31 | # | 49 | # |
| @@ -39,8 +57,10 @@ | |||
| 39 | CC = @CC@ | 57 | CC = @CC@ |
| 40 | CPP = @CPP@ | 58 | CPP = @CPP@ |
| 41 | CFLAGS = @CFLAGS@ | 59 | CFLAGS = @CFLAGS@ |
| 42 | --- t1lib-5.0.2/lib/Makefile.in~libtool | 60 | diff --git a/lib/Makefile.in b/lib/Makefile.in |
| 43 | +++ t1lib-5.0.2/lib/Makefile.in | 61 | index 89e5e86..6e0f960 100644 |
| 62 | --- a/lib/Makefile.in | ||
| 63 | +++ b/lib/Makefile.in | ||
| 44 | @@ -15,8 +15,10 @@ | 64 | @@ -15,8 +15,10 @@ |
| 45 | # | 65 | # |
| 46 | # Contributions by H.Kakugawa to use libtool! | 66 | # Contributions by H.Kakugawa to use libtool! |
| @@ -54,8 +74,10 @@ | |||
| 54 | CC = @CC@ | 74 | CC = @CC@ |
| 55 | CPP = @CPP@ | 75 | CPP = @CPP@ |
| 56 | CFLAGS = @CFLAGS@ | 76 | CFLAGS = @CFLAGS@ |
| 57 | --- t1lib-5.0.2/lib/t1lib/Makefile.in~libtool | 77 | diff --git a/lib/t1lib/Makefile.in b/lib/t1lib/Makefile.in |
| 58 | +++ t1lib-5.0.2/lib/t1lib/Makefile.in | 78 | index a6c2478..32434b3 100644 |
| 79 | --- a/lib/t1lib/Makefile.in | ||
| 80 | +++ b/lib/t1lib/Makefile.in | ||
| 59 | @@ -14,8 +14,10 @@ | 81 | @@ -14,8 +14,10 @@ |
| 60 | # | 82 | # |
| 61 | # Modified by H.Kakugawa to use libtool | 83 | # Modified by H.Kakugawa to use libtool |
| @@ -69,8 +91,10 @@ | |||
| 69 | CC = @CC@ | 91 | CC = @CC@ |
| 70 | CPP = @CPP@ | 92 | CPP = @CPP@ |
| 71 | CFLAGS = @CFLAGS@ | 93 | CFLAGS = @CFLAGS@ |
| 72 | --- t1lib-5.0.2/lib/type1/Makefile.in~libtool | 94 | diff --git a/lib/type1/Makefile.in b/lib/type1/Makefile.in |
| 73 | +++ t1lib-5.0.2/lib/type1/Makefile.in | 95 | index 241f124..42efa94 100644 |
| 96 | --- a/lib/type1/Makefile.in | ||
| 97 | +++ b/lib/type1/Makefile.in | ||
| 74 | @@ -14,8 +14,10 @@ | 98 | @@ -14,8 +14,10 @@ |
| 75 | # | 99 | # |
| 76 | # Modified by H.Kakugawa to use libtool | 100 | # Modified by H.Kakugawa to use libtool |
| @@ -84,8 +108,10 @@ | |||
| 84 | CC = @CC@ | 108 | CC = @CC@ |
| 85 | CPP = @CPP@ | 109 | CPP = @CPP@ |
| 86 | CFLAGS = @CFLAGS@ | 110 | CFLAGS = @CFLAGS@ |
| 87 | --- t1lib-5.0.2/type1afm/Makefile.in~libtool | 111 | diff --git a/type1afm/Makefile.in b/type1afm/Makefile.in |
| 88 | +++ t1lib-5.0.2/type1afm/Makefile.in | 112 | index 61611e1..9b51406 100644 |
| 113 | --- a/type1afm/Makefile.in | ||
| 114 | +++ b/type1afm/Makefile.in | ||
| 89 | @@ -15,8 +15,10 @@ | 115 | @@ -15,8 +15,10 @@ |
| 90 | # | 116 | # |
| 91 | # Modified by H.Kakugawa to use libtool | 117 | # Modified by H.Kakugawa to use libtool |
| @@ -99,8 +125,10 @@ | |||
| 99 | CC = @CC@ | 125 | CC = @CC@ |
| 100 | CPP = @CPP@ | 126 | CPP = @CPP@ |
| 101 | CFLAGS = @CFLAGS@ | 127 | CFLAGS = @CFLAGS@ |
| 102 | --- t1lib-5.0.2/xglyph/Makefile.in~libtool | 128 | diff --git a/xglyph/Makefile.in b/xglyph/Makefile.in |
| 103 | +++ t1lib-5.0.2/xglyph/Makefile.in | 129 | index 8da9b63..741334c 100644 |
| 130 | --- a/xglyph/Makefile.in | ||
| 131 | +++ b/xglyph/Makefile.in | ||
| 104 | @@ -15,8 +15,10 @@ | 132 | @@ -15,8 +15,10 @@ |
| 105 | # | 133 | # |
| 106 | # Modified by H.Kakugawa to use libtool | 134 | # Modified by H.Kakugawa to use libtool |
