maintainer-feedback requested: [Bug 289860] sysutils/u-boot-tools: portmaster failure: : invalid option -- D

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 27 Sep 2025 07:49:42 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-uboot (Nobody)
<uboot@FreeBSD.org> for maintainer-feedback:
Bug 289860: sysutils/u-boot-tools: portmaster failure: : invalid option -- D
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289860



--- Description ---
On recent CURRENT (FreeBSD 16.0-CURRENT #22 master-n280656-523fece9d11e: Sat
Sep 27 07:45:04 CEST 2025 amd64) and most recent pull of the ports tree,
building port sysutils/u-boot-tools fails with the error shown below.

According /usr/ports/CHANGES, tag 20240229:AUTHOR: tijl@FreeBSD.org, this issue
can be fixed, see provided patch.



[...]
===>  Patching for u-boot-tools-2020.07
===>   u-boot-tools-2020.07 depends on executable: bison - found
===>   u-boot-tools-2020.07 depends on package: gmake>=4.4.1 - found
===>   u-boot-tools-2020.07 depends on file: /usr/local/bin/python3.11 - found
===>  Configuring for u-boot-tools-2020.07
(cd /usr/ports/sysutils/u-boot-tools/work/u-boot-2020.07/ && /usr/bin/env
OPENSSLBASE=/usr OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include
OPENSSLLIB=/usr/lib XDG_DATA_HOME=/usr/ports/sysutils/u-boot-tools/work 
XDG_CONFIG_HOME=/usr/ports/sysutils/u-boot-tools/work 
XDG_CACHE_HOME=/usr/ports/sysutils/u-boot-tools/work/.cache 
HOME=/usr/ports/sysutils/u-boot-tools/work TMPDIR="/tmp"
PATH=/usr/ports/sysutils/u-boot-tools/work/.bin:/bin:/usr/bin:/sbin:/usr/sbin:/
usr/local/bin:/usr/local/sbin
PKG_CONFIG_LIBDIR=/usr/ports/sysutils/u-boot-tools/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
PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe 
-fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="" 
LDFLAGS="  " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong
-fno-strict-aliasing   " 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"
/usr/local/bin/gmake ARCH=sandbox  CC="cc"  HOSTCC="cc"  KBUILD_VERBOSE=1 
NOSTDINC_FLAGS=""  HOSTCFLAGS="-O2 -pipe  -fstack-protector-strong
-fno-strict-aliasing  -I/usr/include"  HOSTLDFLAGS="   -L/usr/lib"
DESTDIR=/usr/ports/sysutils/u-boot-tools/work/stage tools-only_defconfig)
: invalid option -- D
Usage: gmake [options] [target] ...