summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
authorryoon <ryoon>2013-07-26 11:37:22 +0000
committerryoon <ryoon>2013-07-26 11:37:22 +0000
commit11f82dfa932e646d3f4b5322558b338601ff0143 (patch)
tree5a8e3ca4a41c4ee99e3969217a724b1e56b22174 /fonts
parent634215ab92680f350ca57964754e58982f772712 (diff)
downloadpkgsrc-11f82dfa932e646d3f4b5322558b338601ff0143.tar.gz
Fix build under GNU/kFreeBSD.
Diffstat (limited to 'fonts')
-rw-r--r--fonts/fontconfig/distinfo4
-rw-r--r--fonts/fontconfig/patches/patch-ab14
2 files changed, 15 insertions, 3 deletions
diff --git a/fonts/fontconfig/distinfo b/fonts/fontconfig/distinfo
index e854e9ee85d..be4ed2c83f3 100644
--- a/fonts/fontconfig/distinfo
+++ b/fonts/fontconfig/distinfo
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.41 2013/05/20 19:56:39 adam Exp $
+$NetBSD: distinfo,v 1.42 2013/07/26 11:37:22 ryoon Exp $
SHA1 (fontconfig-2.10.93.tar.bz2) = 78a87be2a59b0c803bfd69cdafc85cbc31381d3a
RMD160 (fontconfig-2.10.93.tar.bz2) = 0427185e941f534c3e40dd3ae4abdd2ab72fac20
Size (fontconfig-2.10.93.tar.bz2) = 1526089 bytes
SHA1 (patch-aa) = a0a752e7050ae438198b7286d01dbc5ab4a7e53e
-SHA1 (patch-ab) = 04d21073e6e585c5317e5c29d2d1918d240ce233
+SHA1 (patch-ab) = 5aabb4bd60319c83cbb22f784efe11bdc7308f92
SHA1 (patch-ac) = 7de7a672650286d2f72b95b9c96e19b5df2a9155
SHA1 (patch-af) = d351265c894738284215f0bb38d47cc1c8f28ec7
SHA1 (patch-ba) = e4f116b777a8046615569ae6e89545ad3c7abf77
diff --git a/fonts/fontconfig/patches/patch-ab b/fonts/fontconfig/patches/patch-ab
index 18c3ee22159..a15efc731b4 100644
--- a/fonts/fontconfig/patches/patch-ab
+++ b/fonts/fontconfig/patches/patch-ab
@@ -1,4 +1,7 @@
-$NetBSD: patch-ab,v 1.12 2013/04/10 11:41:37 wiz Exp $
+$NetBSD: patch-ab,v 1.13 2013/07/26 11:37:22 ryoon Exp $
+
+On Debian GNU/kFreeBSD 7.0, there is posix_fadvise(2), but no
+POSIX_FADV_WILLNEED.
--- src/fccache.c.orig 2013-03-21 09:50:26.000000000 +0000
+++ src/fccache.c
@@ -10,3 +13,12 @@ $NetBSD: patch-ab,v 1.12 2013/04/10 11:41:37 wiz Exp $
#include <assert.h>
#if defined(HAVE_MMAP) || defined(__CYGWIN__)
# include <unistd.h>
+@@ -575,7 +576,7 @@ FcDirCacheMapFd (int fd, struct stat *fd
+ {
+ #if defined(HAVE_MMAP) || defined(__CYGWIN__)
+ cache = mmap (0, fd_stat->st_size, PROT_READ, MAP_SHARED, fd, 0);
+-#ifdef HAVE_POSIX_FADVISE
++#if defined(HAVE_POSIX_FADVISE) && defined(POSIX_FADV_WILLNEED)
+ posix_fadvise (fd, 0, fd_stat->st_size, POSIX_FADV_WILLNEED);
+ #endif
+ if (cache == MAP_FAILED)