Tue May 23 07:08:16 2023 UTC ()
libgit2: manually drop -Werror with BUILDLINK_TRANSFORM

There is an ENABLE_WERROR cmake arg which is default OFF so I guess
the package logic for this is broken.


(tnn)
diff -r1.66 -r1.67 pkgsrc/devel/libgit2/Makefile

cvs diff -r1.66 -r1.67 pkgsrc/devel/libgit2/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/libgit2/Makefile 2023/04/26 10:42:27 1.66
+++ pkgsrc/devel/libgit2/Makefile 2023/05/23 07:08:15 1.67
@@ -1,33 +1,35 @@ @@ -1,33 +1,35 @@
1# $NetBSD: Makefile,v 1.66 2023/04/26 10:42:27 wiz Exp $ 1# $NetBSD: Makefile,v 1.67 2023/05/23 07:08:15 tnn Exp $
2 2
3DISTNAME= libgit2-1.6.4 3DISTNAME= libgit2-1.6.4
4CATEGORIES= devel 4CATEGORIES= devel
5MASTER_SITES= ${MASTER_SITE_GITHUB:=libgit2/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=libgit2/}
6GITHUB_TAG= v${PKGVERSION_NOREV} 6GITHUB_TAG= v${PKGVERSION_NOREV}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://libgit2.org/ 9HOMEPAGE= https://libgit2.org/
10COMMENT= Portable, pure C implementation of the Git core methods 10COMMENT= Portable, pure C implementation of the Git core methods
11LICENSE= gnu-gpl-v2 # linking exception (linking allowed in more ways) 11LICENSE= gnu-gpl-v2 # linking exception (linking allowed in more ways)
12 12
13USE_LANGUAGES= c99 13USE_LANGUAGES= c99
14USE_TOOLS+= pkg-config 14USE_TOOLS+= pkg-config
15 15
16CMAKE_ARGS+= -DREGEX_BACKEND="pcre2" 16CMAKE_ARGS+= -DREGEX_BACKEND="pcre2"
17 17
18PKGCONFIG_OVERRIDE+= ${CMAKE_BUILD_DIR}/libgit2.pc 18PKGCONFIG_OVERRIDE+= ${CMAKE_BUILD_DIR}/libgit2.pc
19PKGCONFIG_OVERRIDE_STAGE= pre-install 19PKGCONFIG_OVERRIDE_STAGE= pre-install
20 20
 21BUILDLINK_TRANSFORM+= rm:-Werror
 22
21do-test: 23do-test:
22 cd ${WRKSRC}/${CMAKE_BUILD_DIR} && ctest 24 cd ${WRKSRC}/${CMAKE_BUILD_DIR} && ctest
23 25
24.include "../../devel/cmake/build.mk" 26.include "../../devel/cmake/build.mk"
25.include "../../devel/zlib/buildlink3.mk" 27.include "../../devel/zlib/buildlink3.mk"
26.include "../../devel/pcre2/buildlink3.mk" 28.include "../../devel/pcre2/buildlink3.mk"
27.include "../../security/libssh2/buildlink3.mk" 29.include "../../security/libssh2/buildlink3.mk"
28.include "../../security/openssl/buildlink3.mk" 30.include "../../security/openssl/buildlink3.mk"
29# for tests 31# for tests
30.include "../../lang/python/pyversion.mk" 32.include "../../lang/python/pyversion.mk"
31.include "../../www/curl/buildlink3.mk" 33.include "../../www/curl/buildlink3.mk"
32.include "../../www/http-parser/buildlink3.mk" 34.include "../../www/http-parser/buildlink3.mk"
33.include "../../mk/bsd.pkg.mk" 35.include "../../mk/bsd.pkg.mk"