Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2022 08:12:35 GMT
From:      Daniel Engberg <diizzy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 15fd15478b93 - main - sysutils/bareos-server: Disable -Werror flag in client
Message-ID:  <202210200812.29K8CZBq079590@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=15fd15478b93d0264ea9bd8af4acff12c2dbde95

commit 15fd15478b93d0264ea9bd8af4acff12c2dbde95
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-10-20 08:07:50 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-10-20 08:08:05 +0000

    sysutils/bareos-server: Disable -Werror flag in client
    
    When -DNDEBUG is defined -Werror needs to be disabled otherwise port
    won't build
    
    PR:             266850
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 sysutils/bareos-server/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sysutils/bareos-server/Makefile b/sysutils/bareos-server/Makefile
index e7da0c8fdaf2..3169247de1dd 100644
--- a/sysutils/bareos-server/Makefile
+++ b/sysutils/bareos-server/Makefile
@@ -208,6 +208,9 @@ post-patch:
 	@${REINPLACE_CMD}  '45d' ${WRKSRC}/core/src/CMakeLists.txt
 	@${REINPLACE_CMD}  '51d' ${WRKSRC}/core/src/plugins/CMakeLists.txt
 .endif
+.if ${PKGNAMESUFFIX} == "-client"
+	@${REINPLACE_CMD} -e 's|-Werror -Wall|-Wall|g' ${PATCH_WRKSRC}/core/CMakeLists.txt
+.endif
 
 post-extract:
 .if defined(WITH_CLIENT_ONLY)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210200812.29K8CZBq079590>