Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id 146E87A2A5 for ; Tue, 13 Jun 2017 19:19:55 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id B78DF84DBF; Tue, 13 Jun 2017 19:19:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 4650984D8E for ; Tue, 13 Jun 2017 19:19:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id LFCEy2wU6714 for ; Tue, 13 Jun 2017 19:19:53 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 9070784CDA for ; Tue, 13 Jun 2017 19:19:53 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 8BA34FAB5; Tue, 13 Jun 2017 19:19:53 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1497381593280100" MIME-Version: 1.0 Date: Tue, 13 Jun 2017 19:19:53 +0000 From: "Benny Siegert" Subject: CVS commit: [pkgsrc-2017Q1] pkgsrc/fonts/fontconfig To: pkgsrc-changes@NetBSD.org Reply-To: bsiegert@netbsd.org X-Mailer: log_accum Message-Id: <20170613191953.8BA34FAB5@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1497381593280100 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: bsiegert Date: Tue Jun 13 19:19:53 UTC 2017 Modified Files: pkgsrc/fonts/fontconfig [pkgsrc-2017Q1]: Makefile distinfo Added Files: pkgsrc/fonts/fontconfig/patches [pkgsrc-2017Q1]: patch-src_fccache.c Log Message: Pullup ticket #5471 - requested by sevan fonts/fontconfig: bugfix Revisions pulled up: - fonts/fontconfig/Makefile 1.98 - fonts/fontconfig/distinfo 1.56 - fonts/fontconfig/patches/patch-src_fccache.c 1.1 --- Module Name: pkgsrc Committed By: jperkin Date: Tue May 30 16:53:14 UTC 2017 Modified Files: pkgsrc/fonts/fontconfig: Makefile distinfo Added Files: pkgsrc/fonts/fontconfig/patches: patch-src_fccache.c Log Message: Apply upstream patch for https://bugs.freedesktop.org/show_bug.cgi?id=97546 which fixes cache generation on OSX. Raised in joyent/pkgsrc#506. Bump PKGREVISION. To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.97.6.1 pkgsrc/fonts/fontconfig/Makefile cvs rdiff -u -r1.55 -r1.55.6.1 pkgsrc/fonts/fontconfig/distinfo cvs rdiff -u -r0 -r1.1.2.2 \ pkgsrc/fonts/fontconfig/patches/patch-src_fccache.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1497381593280100 Content-Disposition: inline Content-Length: 3319 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/fonts/fontconfig/Makefile diff -u pkgsrc/fonts/fontconfig/Makefile:1.97 pkgsrc/fonts/fontconfig/Makefile:1.97.6.1 --- pkgsrc/fonts/fontconfig/Makefile:1.97 Sun Sep 18 13:18:20 2016 +++ pkgsrc/fonts/fontconfig/Makefile Tue Jun 13 19:19:53 2017 @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.97 2016/09/18 13:18:20 wiz Exp $ +# $NetBSD: Makefile,v 1.97.6.1 2017/06/13 19:19:53 bsiegert Exp $ DISTNAME= fontconfig-2.12.1 +PKGREVISION= 1 CATEGORIES= fonts MASTER_SITES= http://www.fontconfig.org/release/ EXTRACT_SUFX= .tar.bz2 Index: pkgsrc/fonts/fontconfig/distinfo diff -u pkgsrc/fonts/fontconfig/distinfo:1.55 pkgsrc/fonts/fontconfig/distinfo:1.55.6.1 --- pkgsrc/fonts/fontconfig/distinfo:1.55 Fri Aug 19 12:52:30 2016 +++ pkgsrc/fonts/fontconfig/distinfo Tue Jun 13 19:19:53 2017 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.55 2016/08/19 12:52:30 wiz Exp $ +$NetBSD: distinfo,v 1.55.6.1 2017/06/13 19:19:53 bsiegert Exp $ SHA1 (fontconfig-2.12.1.tar.bz2) = 30d832b754fb10a3b70ebac750a38a0275438ad8 RMD160 (fontconfig-2.12.1.tar.bz2) = 66907dbb317309bcb5013ea45c53dbf5050e6376 @@ -9,6 +9,7 @@ SHA1 (patch-ac) = 4a0b7b55aa4b5c106fd256 SHA1 (patch-af) = d351265c894738284215f0bb38d47cc1c8f28ec7 SHA1 (patch-configure) = 4256c69b24e57d92e7b3bc9b4640d822d782ec3e SHA1 (patch-scandir.c) = e35f4c005f635dd0d8bb949cd32aa34f5e314200 +SHA1 (patch-src_fccache.c) = 5215a9ae314625f1f088011cb0a5f085d963ee83 SHA1 (patch-src_fccharset.c) = f3855554b3b3cab2530b46bc1ccec6a33303de7a SHA1 (patch-src_fcftint.h) = d629fd7ef9713ccc56800d033ba2e09c5a9e2bff SHA1 (patch-src_fcint.h) = 13602cc605d7dadd2f7c30633236454bb134a50a Added files: Index: pkgsrc/fonts/fontconfig/patches/patch-src_fccache.c diff -u /dev/null pkgsrc/fonts/fontconfig/patches/patch-src_fccache.c:1.1.2.2 --- /dev/null Tue Jun 13 19:19:53 2017 +++ pkgsrc/fonts/fontconfig/patches/patch-src_fccache.c Tue Jun 13 19:19:53 2017 @@ -0,0 +1,37 @@ +$NetBSD: patch-src_fccache.c,v 1.1.2.2 2017/06/13 19:19:53 bsiegert Exp $ + +Apply upstream patch for https://bugs.freedesktop.org/show_bug.cgi?id=97546 + +--- src/fccache.c.orig 2016-08-05 05:35:05.000000000 +0000 ++++ src/fccache.c +@@ -640,6 +640,7 @@ FcCacheOffsetsValid (FcCache *cache) + FcPattern *font = FcFontSetFont (fs, i); + FcPatternElt *e; + FcValueListPtr l; ++ char *last_offset; + + if ((char *) font < base || + (char *) font > end - sizeof (FcFontSet) || +@@ -653,11 +654,17 @@ FcCacheOffsetsValid (FcCache *cache) + if (e->values != 0 && !FcIsEncodedOffset(e->values)) + return FcFalse; + +- for (j = font->num, l = FcPatternEltValues(e); j >= 0 && l; j--, l = FcValueListNext(l)) +- if (l->next != NULL && !FcIsEncodedOffset(l->next)) +- break; +- if (j < 0) +- return FcFalse; ++ for (j = 0; j < font->num; j++) ++ { ++ last_offset = (char *) font + font->elts_offset; ++ for (l = FcPatternEltValues(&e[j]); l; l = FcValueListNext(l)) ++ { ++ if ((char *) l < last_offset || (char *) l > end - sizeof (*l) || ++ (l->next != NULL && !FcIsEncodedOffset(l->next))) ++ return FcFalse; ++ last_offset = (char *) l + 1; ++ } ++ } + } + } + --_----------=_1497381593280100--