$NetBSD: patch-Makefile.in,v 1.5 2025/06/02 08:07:34 wiz Exp $ Actually escape the "#". If "\x23d" is used it can get substituted with "=" and that will mess up src/version.h. Needed due to bin/59453: sed 's/^/\x23def/' output '=ef' instead of '#def' --- Makefile.in.orig 2025-06-01 05:58:46.000000000 +0000 +++ Makefile.in @@ -754,7 +754,7 @@ AM_CPPFLAGS = -I$(srcdir)/src -I$(srcdir @ENABLE_ERROR_INJECTION_TRUE@libinject_errors_la_SOURCES = src/inject_errors.c @ENABLE_ERROR_INJECTION_TRUE@libinject_errors_la_LIBADD = -ldl @ENABLE_ERROR_INJECTION_TRUE@libinject_errors_la_LDFLAGS = -module -generate_ver = ver="`{ $(srcdir)/scripts/version || echo '$(VERSION)' ; } | sed 's/.*/\x23define JQ_VERSION \"&\"/'`" +generate_ver = ver="`{ $(srcdir)/scripts/version || echo '$(VERSION)' ; } | sed 's/.*/\#define JQ_VERSION \"&\"/'`" CLEANFILES = src/version.h .remake-version-h src/builtin.inc \ src/config_opts.inc jq.1 jq_SOURCES = src/main.c