tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Yacc Shaving, or, Latest macOS CLT Laccs Something



More macOS Command Line Tools 15.3.0.0.1.1708646388 fallout!

With the previous workarounds committed, I ran another pkg_rolling-replace. It went pretty normally (yay), modulo a handful of packages failing at invocations of flex(1).

The problem, revealed by TOOLS_ALWAYS_WRAP=yes: /usr/bin/flex was attempting to invoke /usr/bin/gm4, which is noted in tools.Darwin.mk as something to avoid.

Manually adding "gm4" to USE_TOOLS for each of my failing packages (gobject-introspection, MesaLib, netpbm, gstreamer1, lilypond) fixed their builds by letting pkgsrc control which gm4 gets found.

I'm now testing the following diff on my afflicted macOS and elsewhere:

Index: mk/tools/replace.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/tools/replace.mk,v
retrieving revision 1.301
diff -u -p -r1.301 replace.mk
--- mk/tools/replace.mk	22 Mar 2024 18:59:04 -0000	1.301
+++ mk/tools/replace.mk	25 Mar 2024 15:57:27 -0000
@@ -78,6 +78,11 @@
 USE_TOOLS+=	bison-yacc
 .endif

+# flex needs gm4
+.if !empty(USE_TOOLS:Mflex) || !empty(USE_TOOLS:Mflex\:*)
+USE_TOOLS+=	gm4
+.endif
+
 ######################################################################

 # Create _USE_TOOLS, a sanitized version of USE_TOOLS that removes the


Home | Main Index | Thread Index | Old Index