Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.netbsd.tech.toolchain > #3620

10.1 make oddity

From Mouse <mouse@Rodents-Montreal.ORG>
Newsgroups muc.lists.netbsd.tech.toolchain
Subject 10.1 make oddity
Date 2026-06-08 19:13 -0400
Organization Newsgate at muc.de e.V.
Message-ID <202606082313.TAA29219@Stone.Rodents-Montreal.ORG> (permalink)

Show all headers | View raw


I recently tried to help someone set up some of my infrastructure on a
10.1 machine.  I got reports of some bizarre messages from make.  So I
tried it on a 9.1 machine.  I got the same messages:

make: Unclosed substitution for  (; missing)
make: Unclosed substitution for  (; missing)
make: "/home/mouse/z.local/lib/make/local-prog" line 115: Need an operator

Here's a cut-down test case:

V = a.1
D = /tmp

.MAIN: dummy

.PHONY: dummy
dummy:

.for x in $V
$(x:C;^(.*)\.([0-9].*)$;$D/cat\2/\1.0;):		\
		$(x:C;^.*\.([0-9].*)$;$D/cat\1;)	\
		$(x:C;\.([0-9].*)$;.cat\1;)
	cp $(x:C;\.([0-9].*)$;.cat\1;) $(.TARGET)
.endfor

which, to be completely unambiguous, I repeat base64-encoded:

ViA9IGEuMQpEID0gL3RtcAoKLk1BSU46IGR1bW15CgouUEhPTlk6IGR1bW15CmR1
bW15OgoKLmZvciB4IGluICRWCiQoeDpDO14oLiopXC4oWzAtOV0uKikkOyREL2Nh
dFwyL1wxLjA7KToJCVwKCQkkKHg6QzteLipcLihbMC05XS4qKSQ7JEQvY2F0XDE7
KQlcCgkJJCh4OkM7XC4oWzAtOV0uKikkOy5jYXRcMTspCgljcCAkKHg6QztcLihb
MC05XS4qKSQ7LmNhdFwxOykgJCguVEFSR0VUKQouZW5kZm9yCg==

On a hunch, I tried replacing - in the original, and it works in the
above test case too - the ;s with ^Bs (as in, tr \; \\2 for the test
case) - and the symptom went away.

make(1) on 9.1 says that :C is just like :S except that it uses
regexes.  I *think* I originated this code, long ago, and my version of
it does indeed work with semicolons as delimiters.

The description of :S says that

                                                Any character may be used as a
          delimiter for the parts of the modifier string.

but it appears this is not actually true.  What are the actual
restrictions?  Or is this a bug that needs fixing?  Or am I completely
confused here somehow?

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse@rodents-montreal.org
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

Back to muc.lists.netbsd.tech.toolchain | Previous | NextNext in thread | Find similar | Unroll thread


Thread

10.1 make oddity Mouse <mouse@Rodents-Montreal.ORG> - 2026-06-08 19:13 -0400
  Re: 10.1 make oddity Roland Illig <roland.illig@gmx.de> - 2026-06-09 03:06 +0200
    Re: 10.1 make oddity Mouse <mouse@Rodents-Montreal.ORG> - 2026-06-08 22:04 -0400
      Re: 10.1 make oddity Roland Illig <roland.illig@gmx.de> - 2026-06-09 10:31 +0200
    Re: 10.1 make oddity Edgar Fuß <ef@math.uni-bonn.de> - 2026-06-09 11:44 +0200
      Re: 10.1 make oddity Roland Illig <roland.illig@gmx.de> - 2026-06-09 12:41 +0200
        Re: 10.1 make oddity David Holland <dholland-tech@netbsd.org> - 2026-06-10 21:03 +0000

csiph-web