Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/cmake cmake: fix build on NetBSD releases such a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff2e2b0b7bc4
branches:  trunk
changeset: 436298:ff2e2b0b7bc4
user:      maya <maya%pkgsrc.org@localhost>
date:      Fri Jul 31 12:35:27 2020 +0000

description:
cmake: fix build on NetBSD releases such as 9.0.

NetBSD stdio.h has a bug with visibility of functions, so we get errors:
 error: '::vscanf' has not been declared

Define the other macro that can reach these definitions.

Issue already fixed by joerg in NetBSD stdio.h r1.35.

diffstat:

 devel/cmake/Makefile.common |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r c70bd5fd543a -r ff2e2b0b7bc4 devel/cmake/Makefile.common
--- a/devel/cmake/Makefile.common       Fri Jul 31 11:39:33 2020 +0000
+++ b/devel/cmake/Makefile.common       Fri Jul 31 12:35:27 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.2 2020/07/31 09:02:31 wiz Exp $
+# $NetBSD: Makefile.common,v 1.3 2020/07/31 12:35:27 maya Exp $
 # used by devel/cmake-gui/Makefile
 
 .include "version.mk"
@@ -15,3 +15,6 @@
 PATCHDIR=      ${.CURDIR}/../../devel/cmake/patches
 
 USE_LANGUAGES= c c++11
+
+# Workaround issue in NetBSD before stdio.h r1.35 (NetBSD 9_STABLE)
+CXXFLAGS.NetBSD+=      -D_NETBSD_SOURCE



Home | Main Index | Thread Index | Old Index