maintainer-feedback requested: [Bug 279931] misc/shared-mime-info: portmaster usage: gmake invalid option -- D

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 23 Jun 2024 11:28:38 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-desktop (Team)
<desktop@FreeBSD.org> for maintainer-feedback:
Bug 279931: misc/shared-mime-info: portmaster usage:  gmake invalid option -- D
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279931



--- Description ---
The port fails to build properly when using 

portmaster misc/shared-mime-info , see below.

The problem is well known and due to /usr/ports/CHANGES, tag 20240229:
AUTHOR: tijl@FreeBSD.org

[...]
===>  Configuring for shared-mime-info-2.2_2
cd
/usr/ports/misc/shared-mime-info/work/shared-mime-info-13695c7225c2f525a435e727
39c33ac32bbfbbb9/src/xdgmime/src
&& /usr/bin/env NINJA_STATUS="[%p %s/%t] "
XDG_DATA_HOME=/usr/ports/misc/shared-mime-info/work 
XDG_CONFIG_HOME=/usr/ports/misc/shared-mime-info/work 
XDG_CACHE_HOME=/usr/ports/misc/shared-mime-info/work/.cache 
HOME=/usr/ports/misc/shared-mime-info/work TMPDIR="/tmp"
PATH=/usr/ports/misc/shared-mime-info/work/.bin:/bin:/usr/bin:/sbin:/usr/sbin:/
usr/local/bin:/usr/local/sbin
PKG_CONFIG_LIBDIR=/usr/ports/misc/shared-mime-info/work/.pkgconfig:/usr/local/l
ibdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig
MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES
DESTDIR=/usr/ports/misc/shared-mime-info/work/stage PREFIX=/usr/local 
LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong
-isystem /usr/local/include -fno-strict-aliasing "  CPP="cpp"
CPPFLAGS="-isystem /usr/local/include"	LDFLAGS=" -fstack-protector-strong "
LIBS="-L/usr/local/lib"  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong
-isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include "
BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"
 BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644" 
BSD_INSTALL_MAN="install  -m 444" gmake
: invalid option -- D
Usage: gmake [options] [target] ...