diff options
Diffstat (limited to 'extra/libxfont')
-rw-r--r-- | extra/libxfont/PKGBUILD | 16 | ||||
-rw-r--r-- | extra/libxfont/fix-for-fontsproto213.patch | 70 |
2 files changed, 82 insertions, 4 deletions
diff --git a/extra/libxfont/PKGBUILD b/extra/libxfont/PKGBUILD index 1e862ba18..a399d48a3 100644 --- a/extra/libxfont/PKGBUILD +++ b/extra/libxfont/PKGBUILD @@ -1,17 +1,25 @@ -# $Id: PKGBUILD 203296 2014-01-07 17:59:08Z lcarlier $ +# $Id: PKGBUILD 211682 2014-04-23 06:32:53Z lcarlier $ # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname=libxfont pkgver=1.4.7 -pkgrel=1 +pkgrel=2 pkgdesc="X11 font rasterisation library" arch=(i686 x86_64) url="http://xorg.freedesktop.org/" license=('custom') depends=('freetype2' 'libfontenc' 'xproto' 'fontsproto') makedepends=('xorg-util-macros' 'xtrans') -source=(${url}/archive/individual/lib/libXfont-${pkgver}.tar.bz2) -sha256sums=('d16ea3541835d296b19cfb05d7e64fc62173d8e7eb93284402ec761b951d1543') +source=(${url}/archive/individual/lib/libXfont-${pkgver}.tar.bz2 + fix-for-fontsproto213.patch) +sha256sums=('d16ea3541835d296b19cfb05d7e64fc62173d8e7eb93284402ec761b951d1543' + '9c8298cc9f4dc3981f19107353b2e4373dfb7882768bbf0b3ae027820a2dcad9') + +prepare() { + cd "${srcdir}/libXfont-${pkgver}" + # FS#40044 - merged for branch 1.5 + patch -Np1 -i ../fix-for-fontsproto213.patch +} build() { cd "${srcdir}/libXfont-${pkgver}" diff --git a/extra/libxfont/fix-for-fontsproto213.patch b/extra/libxfont/fix-for-fontsproto213.patch new file mode 100644 index 000000000..04ee1fb6c --- /dev/null +++ b/extra/libxfont/fix-for-fontsproto213.patch @@ -0,0 +1,70 @@ +diff --git a/src/util/patcache.c b/src/util/patcache.c +index 9c05fa1..2101015 100644 +--- a/src/util/patcache.c ++++ b/src/util/patcache.c +@@ -50,7 +50,7 @@ typedef unsigned char EntryPtr; + typedef struct _FontPatternCacheEntry { + struct _FontPatternCacheEntry *next, **prev; + short patlen; +- char *pattern; ++ const char *pattern; + int hash; + FontPtr pFont; /* associated font */ + } FontPatternCacheEntryRec, *FontPatternCacheEntryPtr; +@@ -74,7 +74,7 @@ EmptyFontPatternCache (FontPatternCachePtr cache) + cache->entries[i].next = &cache->entries[i+1]; + cache->entries[i].prev = 0; + cache->entries[i].pFont = 0; +- free (cache->entries[i].pattern); ++ free ((void *) cache->entries[i].pattern); + cache->entries[i].pattern = 0; + cache->entries[i].patlen = 0; + } +@@ -107,7 +107,7 @@ FreeFontPatternCache (FontPatternCachePtr cache) + int i; + + for (i = 0; i < NENTRIES; i++) +- free (cache->entries[i].pattern); ++ free ((void *) cache->entries[i].pattern); + free (cache); + } + +@@ -128,7 +128,7 @@ Hash (const char *string, int len) + /* add entry */ + void + CacheFontPattern (FontPatternCachePtr cache, +- char *pattern, ++ const char *pattern, + int patlen, + FontPtr pFont) + { +@@ -154,7 +154,7 @@ CacheFontPattern (FontPatternCachePtr cache, + if (e->next) + e->next->prev = e->prev; + *e->prev = e->next; +- free (e->pattern); ++ free ((void *) e->pattern); + } + /* set pattern */ + memcpy (newpat, pattern, patlen); +@@ -174,7 +174,7 @@ CacheFontPattern (FontPatternCachePtr cache, + /* find matching entry */ + FontPtr + FindCachedFontPattern (FontPatternCachePtr cache, +- char *pattern, ++ const char *pattern, + int patlen) + { + int hash; +@@ -211,7 +211,7 @@ RemoveCachedFontPattern (FontPatternCachePtr cache, + *e->prev = e->next; + e->next = cache->free; + cache->free = e; +- free (e->pattern); ++ free ((void *) e->pattern); + e->pattern = 0; + } + } +-- +cgit v0.9.0.2-2-gbebe + |