pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/fonts/harfbuzz harfbuzz: fix build errors on NetBSD 7....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9dd4411c3d13
branches:  trunk
changeset: 442011:9dd4411c3d13
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Mon Nov 16 16:17:00 2020 +0000

description:
harfbuzz: fix build errors on NetBSD 7.2 with gcc 4.9.

> In file included from ../test/api/test-aat-layout.c:25:0:
> ../test/api/hb-test.h: In function 'hb_test_assert_blobs_equal':
> ../test/api/hb-test.h:178:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
>      for (unsigned int i = 0; i < expected_length; i++)
>      ^
> ../test/api/hb-test.h:178:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code

diffstat:

 fonts/harfbuzz/Makefile.common |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5c096ccf3100 -r 9dd4411c3d13 fonts/harfbuzz/Makefile.common
--- a/fonts/harfbuzz/Makefile.common    Mon Nov 16 15:48:43 2020 +0000
+++ b/fonts/harfbuzz/Makefile.common    Mon Nov 16 16:17:00 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.1 2020/11/06 15:06:49 nia Exp $
+# $NetBSD: Makefile.common,v 1.2 2020/11/16 16:17:00 tsutsui Exp $
 # used by fonts/harfbuzz-icu/Makefile
 
 DISTNAME=      harfbuzz-2.7.2
@@ -21,7 +21,7 @@
 .include "../../mk/bsd.prefs.mk"
 .include "../../graphics/librsvg/available.mk"
 
-USE_LANGUAGES= c c++
+USE_LANGUAGES= c99 c++
 USE_TOOLS+=    pkg-config
 
 # cairo/fontconfig are only needed for command line utilities



Home | Main Index | Thread Index | Old Index