Date: Friday, January 2, 2015 @ 02:57:20 Author: heftig Revision: 125150
archrelease: copy trunk to multilib-x86_64 Added: lib32-freetype2/repos/multilib-x86_64/PKGBUILD (from rev 125149, lib32-freetype2/trunk/PKGBUILD) lib32-freetype2/repos/multilib-x86_64/env_FT2_SUBPIXEL_HINTING.diff (from rev 125149, lib32-freetype2/trunk/env_FT2_SUBPIXEL_HINTING.diff) lib32-freetype2/repos/multilib-x86_64/freetype-2.2.1-enable-valid.patch (from rev 125149, lib32-freetype2/trunk/freetype-2.2.1-enable-valid.patch) lib32-freetype2/repos/multilib-x86_64/freetype-2.5.1-enable-sph.patch (from rev 125149, lib32-freetype2/trunk/freetype-2.5.1-enable-sph.patch) lib32-freetype2/repos/multilib-x86_64/freetype-2.5.1-enable-spr.patch (from rev 125149, lib32-freetype2/trunk/freetype-2.5.1-enable-spr.patch) Deleted: lib32-freetype2/repos/multilib-x86_64/0001-pcf-Fix-Savannah-bug-43774.patch lib32-freetype2/repos/multilib-x86_64/PKGBUILD lib32-freetype2/repos/multilib-x86_64/env_FT2_SUBPIXEL_HINTING.diff lib32-freetype2/repos/multilib-x86_64/freetype-2.2.1-enable-valid.patch lib32-freetype2/repos/multilib-x86_64/freetype-2.5.1-enable-sph.patch lib32-freetype2/repos/multilib-x86_64/freetype-2.5.1-enable-spr.patch ---------------------------------------+ 0001-pcf-Fix-Savannah-bug-43774.patch | 125 ------------------------------- PKGBUILD | 129 +++++++++++++++----------------- env_FT2_SUBPIXEL_HINTING.diff | 36 ++++---- freetype-2.2.1-enable-valid.patch | 40 ++++----- freetype-2.5.1-enable-sph.patch | 26 +++--- freetype-2.5.1-enable-spr.patch | 26 +++--- 6 files changed, 126 insertions(+), 256 deletions(-) Deleted: 0001-pcf-Fix-Savannah-bug-43774.patch =================================================================== --- 0001-pcf-Fix-Savannah-bug-43774.patch 2015-01-02 01:56:36 UTC (rev 125149) +++ 0001-pcf-Fix-Savannah-bug-43774.patch 2015-01-02 01:57:20 UTC (rev 125150) @@ -1,125 +0,0 @@ -From 74af85c4b62b35e55b0ce9dec55ee10cbc4962a2 Mon Sep 17 00:00:00 2001 -From: Werner Lemberg <w...@gnu.org> -Date: Mon, 8 Dec 2014 16:01:50 +0100 -Subject: [PATCH] [pcf] Fix Savannah bug #43774. - -Work around `features' of X11's `pcfWriteFont' and `pcfReadFont' -functions. Since the PCF format doesn't have an official -specification, we have to exactly follow these functions' behaviour. - -The problem was unveiled with a patch from 2014-11-06, fixing issue #43547. - -* src/pcf/pcfread.c (pcf_read_TOC): Don't check table size for last -element. Instead, assign real size. ---- - ChangeLog | 14 ++++++++++++++ - src/pcf/pcfread.c | 54 +++++++++++++++++++++++++++++++++++++++++++----------- - 2 files changed, 57 insertions(+), 11 deletions(-) - -diff --git a/src/pcf/pcfread.c b/src/pcf/pcfread.c -index 998cbed..e3caf82 100644 ---- a/src/pcf/pcfread.c -+++ b/src/pcf/pcfread.c -@@ -2,7 +2,7 @@ - - FreeType font driver for pcf fonts - -- Copyright 2000-2010, 2012, 2013 by -+ Copyright 2000-2010, 2012-2014 by - Francesco Zappa Nardelli - - Permission is hereby granted, free of charge, to any person obtaining a copy -@@ -78,7 +78,7 @@ THE SOFTWARE. - FT_FRAME_START( 16 ), - FT_FRAME_ULONG_LE( type ), - FT_FRAME_ULONG_LE( format ), -- FT_FRAME_ULONG_LE( size ), -+ FT_FRAME_ULONG_LE( size ), /* rounded up to a multiple of 4 */ - FT_FRAME_ULONG_LE( offset ), - FT_FRAME_END - }; -@@ -95,9 +95,11 @@ THE SOFTWARE. - FT_Memory memory = FT_FACE( face )->memory; - FT_UInt n; - -+ FT_ULong size; - -- if ( FT_STREAM_SEEK ( 0 ) || -- FT_STREAM_READ_FIELDS ( pcf_toc_header, toc ) ) -+ -+ if ( FT_STREAM_SEEK( 0 ) || -+ FT_STREAM_READ_FIELDS( pcf_toc_header, toc ) ) - return FT_THROW( Cannot_Open_Resource ); - - if ( toc->version != PCF_FILE_VERSION || -@@ -154,14 +156,35 @@ THE SOFTWARE. - break; - } - -- /* we now check whether the `size' and `offset' values are reasonable: */ -- /* `offset' + `size' must not exceed the stream size */ -+ /* -+ * We now check whether the `size' and `offset' values are reasonable: -+ * `offset' + `size' must not exceed the stream size. -+ * -+ * Note, however, that X11's `pcfWriteFont' routine (used by the -+ * `bdftopcf' program to create PDF font files) has two special -+ * features. -+ * -+ * - It always assigns the accelerator table a size of 100 bytes in the -+ * TOC, regardless of its real size, which can vary between 34 and 72 -+ * bytes. -+ * -+ * - Due to the way the routine is designed, it ships out the last font -+ * table with its real size, ignoring the TOC's size value. Since -+ * the TOC size values are always rounded up to a multiple of 4, the -+ * difference can be up to three bytes for all tables except the -+ * accelerator table, for which the difference can be as large as 66 -+ * bytes. -+ * -+ */ -+ - tables = face->toc.tables; -- for ( n = 0; n < toc->count; n++ ) -+ size = stream->size; -+ -+ for ( n = 0; n < toc->count - 1; n++ ) - { - /* we need two checks to avoid overflow */ -- if ( ( tables->size > stream->size ) || -- ( tables->offset > stream->size - tables->size ) ) -+ if ( ( tables->size > size ) || -+ ( tables->offset > size - tables->size ) ) - { - error = FT_THROW( Invalid_Table ); - goto Exit; -@@ -169,6 +192,15 @@ THE SOFTWARE. - tables++; - } - -+ /* no check of `tables->size' for last table element ... */ -+ if ( ( tables->offset > size ) ) -+ { -+ error = FT_THROW( Invalid_Table ); -+ goto Exit; -+ } -+ /* ... instead, we adjust `tables->size' to the real value */ -+ tables->size = size - tables->offset; -+ - #ifdef FT_DEBUG_LEVEL_TRACE - - { -@@ -733,8 +765,8 @@ THE SOFTWARE. - - FT_TRACE4(( " number of bitmaps: %d\n", nbitmaps )); - -- /* XXX: PCF_Face->nmetrics is singed FT_Long, see pcf.h */ -- if ( face->nmetrics < 0 || nbitmaps != ( FT_ULong )face->nmetrics ) -+ /* XXX: PCF_Face->nmetrics is signed FT_Long, see pcf.h */ -+ if ( face->nmetrics < 0 || nbitmaps != (FT_ULong)face->nmetrics ) - return FT_THROW( Invalid_File_Format ); - - if ( FT_NEW_ARRAY( offsets, nbitmaps ) ) --- -2.1.3 - Deleted: PKGBUILD =================================================================== --- PKGBUILD 2015-01-02 01:56:36 UTC (rev 125149) +++ PKGBUILD 2015-01-02 01:57:20 UTC (rev 125150) @@ -1,67 +0,0 @@ -# $Id$ -# Maintainer: Ionut Biru <ib...@archlinux.org> -# Contributor: Jan de Groot <j...@archlinux.org> - -_pkgbasename=freetype2 -pkgname=lib32-$_pkgbasename -pkgver=2.5.4 -pkgrel=3 -pkgdesc="TrueType font rendering library (32-bit)" -arch=(x86_64) -license=('GPL') -url="http://freetype.sourceforge.net" -# adding harfbuzz for improved OpenType features auto-hinting -# introduces a cycle dep to harfbuzz depending on freetype wanted by upstream -depends=('lib32-zlib' 'lib32-bzip2' 'lib32-libpng' 'lib32-harfbuzz' $_pkgbasename) -makedepends=(gcc-multilib) -source=(http://download.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.bz2{,.sig} - freetype-2.2.1-enable-valid.patch - freetype-2.5.1-enable-spr.patch - freetype-2.5.1-enable-sph.patch - env_FT2_SUBPIXEL_HINTING.diff - 0001-pcf-Fix-Savannah-bug-43774.patch) -sha1sums=('f30b929e2edc5d7ca64c1ccc65f0c2068e84c5e2' - 'SKIP' - 'f279d922a873d62a8af50bfc873051839d194dca' - '13ee8d558593db991ad29fa090b461f914536104' - 'c31fa3d342ead56f3acfa1f267b474a7686d0014' - '78322bee05f013cd76487439ddac0cae50596db4' - '16057f51b084e9ce5c614a4add41b532d32648b4') -validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5') - -prepare() { - cd "${srcdir}/freetype-${pkgver}" - patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch" - patch -Np1 -i "${srcdir}/freetype-2.5.1-enable-spr.patch" - - # https://bugs.archlinux.org/task/35274 - patch -Np1 -i "${srcdir}/freetype-2.5.1-enable-sph.patch" - # Provide a way to enable the above patch at runtime. - # Hopefully just a temporary measure until fontconfig picks up - # the necessary configurables. - patch -Np1 -i "${srcdir}/env_FT2_SUBPIXEL_HINTING.diff" - - # http://savannah.nongnu.org/bugs/index.php?43774 - patch -Np1 -i "${srcdir}/0001-pcf-Fix-Savannah-bug-43774.patch" -} - -build() { - export CC="gcc -m32" - export CXX="g++ -m32" - export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" - - cd "${srcdir}/freetype-${pkgver}" - ./configure --prefix=/usr --libdir=/usr/lib32 - make -} - -check() { - cd "${srcdir}/freetype-${pkgver}" - make -k check -} - -package() { - cd "${srcdir}/freetype-${pkgver}" - make DESTDIR="${pkgdir}" install - rm -r "${pkgdir}"/usr/{include,share,bin} -} Copied: lib32-freetype2/repos/multilib-x86_64/PKGBUILD (from rev 125149, lib32-freetype2/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2015-01-02 01:57:20 UTC (rev 125150) @@ -0,0 +1,62 @@ +# $Id$ +# Maintainer: Ionut Biru <ib...@archlinux.org> +# Contributor: Jan de Groot <j...@archlinux.org> + +_pkgbasename=freetype2 +pkgname=lib32-$_pkgbasename +pkgver=2.5.5 +pkgrel=1 +pkgdesc="TrueType font rendering library (32-bit)" +arch=(x86_64) +license=('GPL') +url="http://freetype.sourceforge.net" +# adding harfbuzz for improved OpenType features auto-hinting +# introduces a cycle dep to harfbuzz depending on freetype wanted by upstream +depends=('lib32-zlib' 'lib32-bzip2' 'lib32-libpng' 'lib32-harfbuzz' $_pkgbasename) +makedepends=(gcc-multilib) +source=(http://download.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.bz2{,.sig} + freetype-2.2.1-enable-valid.patch + freetype-2.5.1-enable-spr.patch + freetype-2.5.1-enable-sph.patch + env_FT2_SUBPIXEL_HINTING.diff) +sha1sums=('7b7460ef51a8fdb17baae53c6658fc1ad000a1c2' + 'SKIP' + 'f279d922a873d62a8af50bfc873051839d194dca' + '13ee8d558593db991ad29fa090b461f914536104' + 'c31fa3d342ead56f3acfa1f267b474a7686d0014' + '78322bee05f013cd76487439ddac0cae50596db4') +validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5') + +prepare() { + cd "${srcdir}/freetype-${pkgver}" + patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch" + patch -Np1 -i "${srcdir}/freetype-2.5.1-enable-spr.patch" + + # https://bugs.archlinux.org/task/35274 + patch -Np1 -i "${srcdir}/freetype-2.5.1-enable-sph.patch" + # Provide a way to enable the above patch at runtime. + # Hopefully just a temporary measure until fontconfig picks up + # the necessary configurables. + patch -Np1 -i "${srcdir}/env_FT2_SUBPIXEL_HINTING.diff" +} + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd "${srcdir}/freetype-${pkgver}" + ./configure --prefix=/usr --libdir=/usr/lib32 + make +} + +check() { + cd "${srcdir}/freetype-${pkgver}" + make -k check +} + +package() { + cd "${srcdir}/freetype-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -r "${pkgdir}"/usr/{include,share,bin} +} Deleted: env_FT2_SUBPIXEL_HINTING.diff =================================================================== --- env_FT2_SUBPIXEL_HINTING.diff 2015-01-02 01:56:36 UTC (rev 125149) +++ env_FT2_SUBPIXEL_HINTING.diff 2015-01-02 01:57:20 UTC (rev 125150) @@ -1,18 +0,0 @@ -diff -u -r freetype-2.5.4/src/truetype/ttobjs.c freetype-2.5.4-env/src/truetype/ttobjs.c ---- freetype-2.5.4/src/truetype/ttobjs.c 2014-12-06 18:52:13.098214719 +0100 -+++ freetype-2.5.4-env/src/truetype/ttobjs.c 2014-12-10 09:13:04.418886699 +0100 -@@ -1264,10 +1264,11 @@ - return FT_THROW( Could_Not_Find_Context ); - - #ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING -- driver->interpreter_version = TT_INTERPRETER_VERSION_38; --#else -- driver->interpreter_version = TT_INTERPRETER_VERSION_35; -+ if ( getenv( "FT2_SUBPIXEL_HINTING" ) ) -+ driver->interpreter_version = TT_INTERPRETER_VERSION_38; -+ else - #endif -+ driver->interpreter_version = TT_INTERPRETER_VERSION_35; - - #else /* !TT_USE_BYTECODE_INTERPRETER */ - Copied: lib32-freetype2/repos/multilib-x86_64/env_FT2_SUBPIXEL_HINTING.diff (from rev 125149, lib32-freetype2/trunk/env_FT2_SUBPIXEL_HINTING.diff) =================================================================== --- env_FT2_SUBPIXEL_HINTING.diff (rev 0) +++ env_FT2_SUBPIXEL_HINTING.diff 2015-01-02 01:57:20 UTC (rev 125150) @@ -0,0 +1,18 @@ +diff -u -r freetype-2.5.4/src/truetype/ttobjs.c freetype-2.5.4-env/src/truetype/ttobjs.c +--- freetype-2.5.4/src/truetype/ttobjs.c 2014-12-06 18:52:13.098214719 +0100 ++++ freetype-2.5.4-env/src/truetype/ttobjs.c 2014-12-10 09:13:04.418886699 +0100 +@@ -1264,10 +1264,11 @@ + return FT_THROW( Could_Not_Find_Context ); + + #ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING +- driver->interpreter_version = TT_INTERPRETER_VERSION_38; +-#else +- driver->interpreter_version = TT_INTERPRETER_VERSION_35; ++ if ( getenv( "FT2_SUBPIXEL_HINTING" ) ) ++ driver->interpreter_version = TT_INTERPRETER_VERSION_38; ++ else + #endif ++ driver->interpreter_version = TT_INTERPRETER_VERSION_35; + + #else /* !TT_USE_BYTECODE_INTERPRETER */ + Deleted: freetype-2.2.1-enable-valid.patch =================================================================== --- freetype-2.2.1-enable-valid.patch 2015-01-02 01:56:36 UTC (rev 125149) +++ freetype-2.2.1-enable-valid.patch 2015-01-02 01:57:20 UTC (rev 125150) @@ -1,20 +0,0 @@ ---- freetype-2.2.1/modules.cfg.orig 2006-07-07 21:01:09.000000000 -0400 -+++ freetype-2.2.1/modules.cfg 2006-07-07 21:01:54.000000000 -0400 -@@ -110,7 +110,7 @@ - AUX_MODULES += cache - - # TrueType GX/AAT table validation. Needs ftgxval.c below. --# AUX_MODULES += gxvalid -+AUX_MODULES += gxvalid - - # Support for streams compressed with gzip (files with suffix .gz). - # -@@ -124,7 +124,7 @@ - - # OpenType table validation. Needs ftotval.c below. - # --# AUX_MODULES += otvalid -+AUX_MODULES += otvalid - - # Auxiliary PostScript driver component to share common code. - # Copied: lib32-freetype2/repos/multilib-x86_64/freetype-2.2.1-enable-valid.patch (from rev 125149, lib32-freetype2/trunk/freetype-2.2.1-enable-valid.patch) =================================================================== --- freetype-2.2.1-enable-valid.patch (rev 0) +++ freetype-2.2.1-enable-valid.patch 2015-01-02 01:57:20 UTC (rev 125150) @@ -0,0 +1,20 @@ +--- freetype-2.2.1/modules.cfg.orig 2006-07-07 21:01:09.000000000 -0400 ++++ freetype-2.2.1/modules.cfg 2006-07-07 21:01:54.000000000 -0400 +@@ -110,7 +110,7 @@ + AUX_MODULES += cache + + # TrueType GX/AAT table validation. Needs ftgxval.c below. +-# AUX_MODULES += gxvalid ++AUX_MODULES += gxvalid + + # Support for streams compressed with gzip (files with suffix .gz). + # +@@ -124,7 +124,7 @@ + + # OpenType table validation. Needs ftotval.c below. + # +-# AUX_MODULES += otvalid ++AUX_MODULES += otvalid + + # Auxiliary PostScript driver component to share common code. + # Deleted: freetype-2.5.1-enable-sph.patch =================================================================== --- freetype-2.5.1-enable-sph.patch 2015-01-02 01:56:36 UTC (rev 125149) +++ freetype-2.5.1-enable-sph.patch 2015-01-02 01:57:20 UTC (rev 125150) @@ -1,13 +0,0 @@ -diff --git i/include/config/ftoption.h w/include/config/ftoption.h -index fe2ba15..1ab4226 100644 ---- i/include/config/ftoption.h -+++ w/include/config/ftoption.h -@@ -591,7 +591,7 @@ FT_BEGIN_HEADER - /* This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be */ - /* defined. */ - /* */ --/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */ -+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING - - - /*************************************************************************/ Copied: lib32-freetype2/repos/multilib-x86_64/freetype-2.5.1-enable-sph.patch (from rev 125149, lib32-freetype2/trunk/freetype-2.5.1-enable-sph.patch) =================================================================== --- freetype-2.5.1-enable-sph.patch (rev 0) +++ freetype-2.5.1-enable-sph.patch 2015-01-02 01:57:20 UTC (rev 125150) @@ -0,0 +1,13 @@ +diff --git i/include/config/ftoption.h w/include/config/ftoption.h +index fe2ba15..1ab4226 100644 +--- i/include/config/ftoption.h ++++ w/include/config/ftoption.h +@@ -591,7 +591,7 @@ FT_BEGIN_HEADER + /* This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be */ + /* defined. */ + /* */ +-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */ ++#define TT_CONFIG_OPTION_SUBPIXEL_HINTING + + + /*************************************************************************/ Deleted: freetype-2.5.1-enable-spr.patch =================================================================== --- freetype-2.5.1-enable-spr.patch 2015-01-02 01:56:36 UTC (rev 125149) +++ freetype-2.5.1-enable-spr.patch 2015-01-02 01:57:20 UTC (rev 125150) @@ -1,13 +0,0 @@ -diff --git i/include/config/ftoption.h w/include/config/ftoption.h -index fe2ba15..22ce1a3 100644 ---- i/include/config/ftoption.h -+++ w/include/config/ftoption.h -@@ -92,7 +92,7 @@ FT_BEGIN_HEADER - /* This is done to allow FreeType clients to run unmodified, forcing */ - /* them to display normal gray-level anti-aliased glyphs. */ - /* */ --/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ -+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING - - - /*************************************************************************/ Copied: lib32-freetype2/repos/multilib-x86_64/freetype-2.5.1-enable-spr.patch (from rev 125149, lib32-freetype2/trunk/freetype-2.5.1-enable-spr.patch) =================================================================== --- freetype-2.5.1-enable-spr.patch (rev 0) +++ freetype-2.5.1-enable-spr.patch 2015-01-02 01:57:20 UTC (rev 125150) @@ -0,0 +1,13 @@ +diff --git i/include/config/ftoption.h w/include/config/ftoption.h +index fe2ba15..22ce1a3 100644 +--- i/include/config/ftoption.h ++++ w/include/config/ftoption.h +@@ -92,7 +92,7 @@ FT_BEGIN_HEADER + /* This is done to allow FreeType clients to run unmodified, forcing */ + /* them to display normal gray-level anti-aliased glyphs. */ + /* */ +-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ ++#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING + + + /*************************************************************************/