git: 5739a98d1d68 - main - Uses/qmake.mk: fix build WITH_DEBUG

Adriaan de Groot adridg at FreeBSD.org
Tue May 4 23:10:59 UTC 2021


The branch main has been updated by adridg:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5739a98d1d68c09ff0dbb2c4ab29f02a82d16610

commit 5739a98d1d68c09ff0dbb2c4ab29f02a82d16610
Author:     Adriaan de Groot <adridg at FreeBSD.org>
AuthorDate: 2021-05-03 20:47:44 +0000
Commit:     Adriaan de Groot <adridg at FreeBSD.org>
CommitDate: 2021-05-04 23:10:26 +0000

    Uses/qmake.mk: fix build WITH_DEBUG
    
    When setting WITH_DEBUG, separate debuginfo was **not** created,
    although the plists for most Qt5 ports list separate debuginfo.
    Take a suggestion from rakuco@ and run with it. I rebuilt all the
    ports with USES=qmake and none had issues with separate debuginfo.
    
    No general PORTREVISION bump because the packages in most cases
    do not change with default options, and WITH_DEBUG would have
    failed to package anyway.
    
    PR:             240494
    Reported by:    jbeich
---
 Mk/Uses/qmake.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Mk/Uses/qmake.mk b/Mk/Uses/qmake.mk
index 471d4fdbc094..1524aed3d95d 100644
--- a/Mk/Uses/qmake.mk
+++ b/Mk/Uses/qmake.mk
@@ -77,7 +77,7 @@ QMAKE_ARGS+=		-spec ${QMAKESPEC} \
 
 .  if defined(WITH_DEBUG)
 PLIST_SUB+=		DEBUG=""
-QMAKE_ARGS+=		CONFIG+="debug" \
+QMAKE_ARGS+=		CONFIG+="debug separate_debug_info" \
 			CONFIG-="release"
 .  else
 PLIST_SUB+=		DEBUG="@comment "


More information about the dev-commits-ports-all mailing list