git: 5475338d0faf - 2026Q3 - devel/gprbuild: Improve option DEBUG
Thierry Thomas <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.ports |
|---|---|
| Message-ID | <[email protected]> |
The branch 2026Q3 has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=5475338d0faf71e71594ec21117f4192f62e6939 commit 5475338d0faf71e71594ec21117f4192f62e6939 Author: Alastair Hogge <[email protected]> AuthorDate: 2026-07-14 03:51:44 +0000 Commit: Thierry Thomas <[email protected]> CommitDate: 2026-08-08 16:48:35 +0000 devel/gprbuild: Improve option DEBUG devel/gprbuild: * Currently options DEBUG is ${BROKEN} because of some warnings from libgpr and between the Port and the GNAT tool-chain. Replace the ${BROKEN} statement with a new variable that is passed to the libgrp do-build phase that attenuates the tool-chain warnings PR: 296655 (cherry picked from commit b665e89e9a64a1bbf2250dbfc779e69627ecf1f3) --- devel/gprbuild/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/devel/gprbuild/Makefile b/devel/gprbuild/Makefile index 96b42c33618a..b888ed373315 100644 --- a/devel/gprbuild/Makefile +++ b/devel/gprbuild/Makefile @@ -98,7 +98,12 @@ _XMLADA_GPR_PROJECT_ARGS= -XXMLADA_BUILD_MODE=${WITH_DEBUG:UProduction:DDebug} .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MDEBUG} -BROKEN= option DEBUG breaks with style violations in the GNAT tool-chain +# Attenuate compiler warnings generated from conflicting styles between libgpr +# and the compiler, and conflicting type sizes in an Unchecked_Conversion in +# the compiler +_LIBGPR_GPRBUILD_CARGS= -cargs:Ada -gnatwZ -gnaty-g +.else +_LIBGPR_GPRBUILD_CARGS= .endif post-patch: @@ -188,7 +193,7 @@ do-build: (cd ${WRKSRC}/gpr && \ ${SETENV} ${MAKE_ENV:C|PATH=|PATH=${_BOOTSTRAP_PATH}:|} \ ${MAKE_CMD} ${_FINAL_STAGE_LIBGPR_BUILD_ARGS} -XLIBRARY_TYPE=${_library_type} \ - -P gpr) + -P gpr ${_LIBGPR_GPRBUILD_CARGS}) . endfor @${ECHO_MSG} "*** do-build target:" @${ECHO_MSG} "*** Final build stage complete."