[Bug 266058] BROKEN_xx values are interpreted as format strings

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 27 Aug 2022 06:31:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266058

Stefan Eßer <se@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
                 CC|                            |se@FreeBSD.org

--- Comment #2 from Stefan Eßer <se@FreeBSD.org> ---
(In reply to Yuri Victorovich from comment #1)

This seems to work correctly on my system:

$ cd /usr/ports/graphics/filment
$ make ARCH=i386
===>  filament-1.25.6 is marked as broken on i386: compilation breaks: register
%r11 is only available in 64-bit mode.
*** Error code 1

The command used by bsd.port.mk to generate that message is:

IGNORECMD=  ${ECHO_MSG} "===>  ${PKGNAME} "${IGNORE:Q}. | ${FMT_80} ; exit 1

The default value of ECHO_CMD is "echo" and the modifier ":Q" takes care of
escaping any characters that would be interpreted by the shell.

The symptoms that you describe could be caused by having "ECHO_CMD=printf",
which should work most of the time - except when there are % characters in the
string to be printed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.