Solved Make broken

FreeBSD 14.3

All of a sudden today I cannot update ports as it throws this error.

Code:
make: "/usr/ports/shells/bash-completion/Makefile" line 19: Malformed conditional (${ARCH} == riscv64)
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/ports/shells/bash-completion
** Makefile possibly broken: shells/bash-completion:
** Please report this to the maintainer for shells/bash-completion
make: stopped in /usr/ports/shells/bash-completion
/usr/local/sbin/portupgrade:1575:in `get_pkgname': Makefile broken (MakefileBrokenError)

Not quite sure the best way to proceed if anyone can help.

I've rebuilt the ports using devel/git but nothing has changed.
 
The port maintainer forgot to include the port options framework make file while trying to fix an issue:

From https://wiki.freebsd.org/MateuszPiotrowski/Ports

What does the error "make: ... line ...: Malformed conditional ..." mean?

You probably forgot to add the following line to your Makefile:
Code:
.include <bsd.port.options.mk>


ports/shells/bash-completion/Makefile
Rich (BB code):
   + 19 .include <bsd.port.options.mk>
     20
     21 .if ${ARCH} == riscv64
     22 EXTRACT_CMD=    ${SETENV} LC_ALL=en_US.UTF-8 /usr/bin/bsdtar
     23 .endif

If you have an https://bugs.freebsd.org/bugzilla/ account, please open a PR. I don't have my bugzilla account password at hand right now.
 
Adding
Code:
.include <bsd.port.options.mk>
to makefile has now allowed the installation of the updated ports.

Thanks for that.
 
I've seen a few Python-related ports where Make complains about malformed Makefiles. Well, I use sh by default. Switching to csh gets those complaints to go away, and port compiles fine... go figga.
 
Back
Top