Sunday, January 01, 2023

Re: xfce4: pass --enable-debug only when DEBUG is set

Le Sat, Dec 31, 2022 at 12:22:47PM +0000, Klemens Nanni a écrit :
> xfc4-wavelan spams ~/.xsession with state changes which stems from the
> xfce DBG macro which gets defined when the DEBUG macro is set, which
> comes from --enable-debug that is currently passed for every port using
> XFCE_COMMIT.
>
> landry pointed out the XFCE_COMMIT/--enable-debug connection and
> suggested a DEBUG test -- I failed to look at xfce4.port.mk in the first
> place.
>
> Only four ports use a commit, so bumping them is easy to pick up
> potential object changes.
>
> Feeback? Objection? OK?

I've had a second look at what --enable-maintainer-mode does and it's
still a bit fuzzy to me, but orage port builds fine without it. So i'd
completely move the CONFIGURE_ARGS line adding --enable-maintainer-mode
--enable-debug to the .if defined(DEBUG) block outside of the .if
defined(XFCE_COMMIT) block, this way all ports can be built with debug
macros enable via make DEBUG=-g.

Dunno if it's a good idea though to link that behaviour it to the ports
framework DEBUG variable, but we cant add --enable-debug to
DEBUG_CONFIGURE_ARGS since it'd enable debug macros globally &
inconditionally.

i had another look at --enable-debug in aclocal.m4 which is used in all
xfce projects, from
https://gitlab.xfce.org/xfce/xfce4-dev-tools/-/blob/master/m4macros/xdt-features.m4#L61:
- it also enables some -W flags too, some might lead to build failures
- the DBG macros are enabled for yes/full in the enable-debug values (eg no|minimum|yes|full, minimum being the
default)

Landry

No comments:

Post a Comment