Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2018-11-20
04:16 • Closed ticket [9cc1db9fb6]: Straying from BSD make(1) compatibility plus 5 o... artifact: ce8b40bc07 user: bch
2018-11-19
23:51 • Ticket [9cc1db9fb6]: 4 changes artifact: 8ccf2b0696 user: hypnotoad
23:49
Fix for ticket [9cc1db9fb675bf64dfc775372fab1f697e46bb44] check-in: 5d40e4016b user: hypnotoad tags: core-8-branch
22:31 • Ticket [9cc1db9fb6] Straying from BSD make(1) compatibility status still Ope... artifact: 1bb6819cb5 user: bch
21:50 • Ticket [9cc1db9fb6]: 3 changes artifact: f91d344a4b user: hypnotoad
18:39 • Ticket [9cc1db9fb6]: 3 changes artifact: 8d75547ad4 user: dgp
06:48 • New ticket [9cc1db9fb6]. artifact: 5f9c3b8a4d user: bch

Straying from BSD make(1) compatibility

Closed / Fixed9cc1db9fb675bf64dfc775372fab1f697e46bb44Created 8 years agoUpdated 8 years ago
Descriptionplain2018-11-19 06:48:27
kamloops$ make
make: "/home/bch/work/tcl/unix/Makefile" line 692: Missing dependency operator
make: "/home/bch/work/tcl/unix/Makefile" line 695: Need an operator
make: Fatal errors encountered -- cannot continue

./unix/Makefile, as generated by ./configure
============================================

   692  ifeq (${ZIPFS_BUILD},1)
...
   695  endif


on NetBSD (for example), replacing those with:

.if ${ZIPFS_BUILD} == 1
...
.endif


seems to pacify make(1) (build still fails, but for other reasons), but now gmake complains.

Mutually compatible solution tbd.
Referenced by1
dgp Ticket [9cc1db9fb6]: 3 changes [History diff]2018-11-19 18:39:22
hypnotoadplain2018-11-19 21:50:11
That doesn't work outside of BSD. Or even in BSD, Make on my Macosx box pukes on that.
bchplain2018-11-19 22:31:13
Re: Work outside of BSD -- right. I mentioned that in the opening comment. Re: "Even in BSD (MacOS X)" -- I bet if you:

$ make --version

...you'll see you're using GNU Make.

Hopefully we can find either a commonality or logically equivalent operation, though.
hypnotoadwiki2018-11-19 23:51:41

make --version > GNU Make 3.81

Worked out a fix that should makes both happy:

	@if test "${ZIPFS_BUILD}" = "1" ; then \
		cat ${TCL_ZIP_FILE} >> ${LIB_FILE}; \
	  ${NATIVE_ZIP} -A ${LIB_FILE}; \
	fi

Checked into core-8-branch ([5d40e4016b89fa2ecde93aed7966f01e2f9d34293fdb7fe8209aa0d50363cce8])

bchwiki2018-11-20 04:16:16

Build proceeds on original problem env. Fixed per [5d40e4016b89fa2ecde93aed7966f].

Log in (anonymous is fine) to add a comment.