From owner-svn-ports-all@freebsd.org Sat Apr 4 07:34:06 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 177F92A3E8A; Sat, 4 Apr 2020 07:34:06 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48vT7v5Ds5z3JSV; Sat, 4 Apr 2020 07:34:03 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5B7EA1CAC7; Sat, 4 Apr 2020 07:34:01 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0347Y1tX055294; Sat, 4 Apr 2020 07:34:01 GMT (envelope-from tcberner@FreeBSD.org) Received: (from tcberner@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0347Y0Vq055292; Sat, 4 Apr 2020 07:34:00 GMT (envelope-from tcberner@FreeBSD.org) Message-Id: <202004040734.0347Y0Vq055292@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tcberner set sender to tcberner@FreeBSD.org using -f From: "Tobias C. Berner" Date: Sat, 4 Apr 2020 07:34:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r530621 - in head/x11-fonts/fontconfig: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tcberner X-SVN-Commit-Paths: in head/x11-fonts/fontconfig: . files X-SVN-Commit-Revision: 530621 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Apr 2020 07:34:06 -0000 Author: tcberner Date: Sat Apr 4 07:34:00 2020 New Revision: 530621 URL: https://svnweb.freebsd.org/changeset/ports/530621 Log: x11-fonts/fontconfig: Add further upstream patch for v2.13.92 - Add upstream patch to files/patch-2.13.92.diff file: https://cgit.freedesktop.org/fontconfig/commit/?id=6f6b39780215714386606ca1c5457a7106639ff4 - Fix pkg-message filename PR: 245343 Submitted by: lightside Added: head/x11-fonts/fontconfig/pkg-message - copied unchanged from r530620, head/x11-fonts/fontconfig/pkg-messsage Deleted: head/x11-fonts/fontconfig/pkg-messsage Modified: head/x11-fonts/fontconfig/Makefile head/x11-fonts/fontconfig/files/patch-2.13.92.diff Modified: head/x11-fonts/fontconfig/Makefile ============================================================================== --- head/x11-fonts/fontconfig/Makefile Sat Apr 4 07:30:04 2020 (r530620) +++ head/x11-fonts/fontconfig/Makefile Sat Apr 4 07:34:00 2020 (r530621) @@ -3,6 +3,7 @@ PORTNAME= fontconfig PORTVERSION= 2.13.92 +PORTREVISION?= 1 PORTEPOCH?= 1 CATEGORIES= x11-fonts MASTER_SITES= https://www.freedesktop.org/software/fontconfig/release/ Modified: head/x11-fonts/fontconfig/files/patch-2.13.92.diff ============================================================================== --- head/x11-fonts/fontconfig/files/patch-2.13.92.diff Sat Apr 4 07:30:04 2020 (r530620) +++ head/x11-fonts/fontconfig/files/patch-2.13.92.diff Sat Apr 4 07:34:00 2020 (r530621) @@ -32,6 +32,8 @@ # https://cgit.freedesktop.org/fontconfig/commit/?id=fbc05949ef52c8a8d69233eed77f6636dffec280 # Set exact boolean value to color property # https://cgit.freedesktop.org/fontconfig/commit/?id=d3bfbea7dc53aa7fa52aa9616235a23d4507da1b +# Fix assertion in FcCacheFini() again +# https://cgit.freedesktop.org/fontconfig/commit/?id=6f6b39780215714386606ca1c5457a7106639ff4 Excluding changes for the following files: test/Makefile.am, test/run-test.sh, test/test-bz1744377.c, test/test-crbug1004254.c, test/test-issue180.c. @@ -279,11 +281,18 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/ void *closure, FcChar8 **cache_file_ret) { int fd = -1; -@@ -372,6 +389,8 @@ FcDirCacheProcess (FcConfig *config, con +@@ -348,6 +365,7 @@ FcDirCacheProcess (FcConfig *config, con + struct stat file_stat, dir_stat; + FcBool ret = FcFalse; + const FcChar8 *sysroot = FcConfigGetSysRoot (config); ++ struct timeval latest_mtime = (struct timeval){ 0 }; + + if (sysroot) + d = FcStrBuildFilename (sysroot, dir, NULL); +@@ -372,6 +390,7 @@ FcDirCacheProcess (FcConfig *config, con #ifndef _WIN32 FcBool retried = FcFalse; #endif -+ struct timeval latest_mtime = (struct timeval){ 0 }; + if (sysroot) cache_hashed = FcStrBuildFilename (sysroot, cache_dir, cache_base, NULL); @@ -312,7 +321,7 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/ } #ifndef _WIN32 else if (!retried) -@@ -412,9 +436,12 @@ FcDirCacheProcess (FcConfig *config, con +@@ -412,12 +436,17 @@ FcDirCacheProcess (FcConfig *config, con break; goto retry; } @@ -326,9 +335,34 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/ } FcStrListDone (list); -@@ -998,12 +1025,31 @@ FcDirCacheUnload (FcCache *cache) ++ if (closure) ++ return !!(*((FcCache **)closure) != NULL); + return ret; } +@@ -765,7 +794,18 @@ FcCacheFini (void) + int i; + + for (i = 0; i < FC_CACHE_MAX_LEVEL; i++) +- assert (fcCacheChains[i] == NULL); ++ { ++ if (FcDebug() & FC_DBG_CACHE) ++ { ++ if (fcCacheChains[i] != NULL) ++ { ++ FcCacheSkip *s = fcCacheChains[i]; ++ printf("Fontconfig error: not freed %p (dir: %s, refcount %d)\n", s->cache, FcCacheDir(s->cache), s->ref.count); ++ } ++ } ++ else ++ assert (fcCacheChains[i] == NULL); ++ } + assert (fcCacheMaxLevel == 0); + + free_lock (); +@@ -998,12 +1038,31 @@ FcDirCacheUnload (FcCache *cache) + } + static FcBool -FcDirCacheMapHelper (FcConfig *config, int fd, struct stat *fd_stat, struct stat *dir_stat, void *closure) +FcDirCacheMapHelper (FcConfig *config, int fd, struct stat *fd_stat, struct stat *dir_stat, struct timeval *latest_cache_mtime, void *closure) @@ -359,7 +393,7 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/ *((FcCache **) closure) = cache; return FcTrue; } -@@ -1013,10 +1059,15 @@ FcDirCacheLoad (const FcChar8 *dir, FcCo +@@ -1013,10 +1072,15 @@ FcDirCacheLoad (const FcChar8 *dir, FcCo { FcCache *cache = NULL; @@ -376,7 +410,7 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/ return cache; } -@@ -1027,13 +1078,18 @@ FcDirCacheLoadFile (const FcChar8 *cache +@@ -1027,13 +1091,18 @@ FcDirCacheLoadFile (const FcChar8 *cache int fd; FcCache *cache; struct stat my_file_stat; @@ -396,7 +430,7 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/ close (fd); return cache; } -@@ -1093,7 +1149,7 @@ FcDirChecksumNano (struct stat *statb) +@@ -1093,7 +1162,7 @@ FcDirChecksumNano (struct stat *statb) * the magic number and the size field */ static FcBool @@ -405,7 +439,7 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/ { FcBool ret = FcTrue; FcCache c; -@@ -1127,12 +1183,16 @@ FcBool +@@ -1127,12 +1196,16 @@ FcBool FcDirCacheValid (const FcChar8 *dir) { FcConfig *config; @@ -424,7 +458,7 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/ } /* -@@ -1410,9 +1470,13 @@ FcDirCacheClean (const FcChar8 *cache_di +@@ -1410,9 +1483,13 @@ FcDirCacheClean (const FcChar8 *cache_di FcCache *cache; struct stat target_stat; const FcChar8 *sysroot; @@ -439,7 +473,7 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/ if (sysroot) dir = FcStrBuildFilename (sysroot, cache_dir, NULL); else -@@ -1420,7 +1484,8 @@ FcDirCacheClean (const FcChar8 *cache_di +@@ -1420,7 +1497,8 @@ FcDirCacheClean (const FcChar8 *cache_di if (!dir) { fprintf (stderr, "Fontconfig error: %s: out of memory\n", cache_dir); @@ -449,7 +483,7 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/ } if (access ((char *) dir, W_OK) != 0) { -@@ -1497,8 +1562,10 @@ FcDirCacheClean (const FcChar8 *cache_di +@@ -1497,8 +1575,10 @@ FcDirCacheClean (const FcChar8 *cache_di } closedir (d); @@ -461,7 +495,7 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/ return ret; } -@@ -1940,15 +2007,20 @@ FcDirCacheCreateTagFile (const FcChar8 * +@@ -1940,15 +2020,20 @@ FcDirCacheCreateTagFile (const FcChar8 * } void @@ -485,7 +519,7 @@ test/test-bz1744377.c, test/test-crbug1004254.c, test/ while ((cache_dir = FcStrListNext (list))) { -@@ -1964,6 +2036,8 @@ FcCacheCreateTagFile (const FcConfig *co +@@ -1964,6 +2049,8 @@ FcCacheCreateTagFile (const FcConfig *co if (d) FcStrFree (d); FcStrListDone (list); Copied: head/x11-fonts/fontconfig/pkg-message (from r530620, head/x11-fonts/fontconfig/pkg-messsage) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-fonts/fontconfig/pkg-message Sat Apr 4 07:34:00 2020 (r530621, copy of r530620, head/x11-fonts/fontconfig/pkg-messsage) @@ -0,0 +1,15 @@ +[ +{ + type: upgrade, + maximum_version: "2.13.92,1", + message: <