From owner-freebsd-current@freebsd.org Sat Dec 19 15:17:13 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87C4CA4C59E for ; Sat, 19 Dec 2015 15:17:13 +0000 (UTC) (envelope-from tom@invisible-island.net) Received: from smtp-nf-201.his.com (smtp-nf-201.his.com [216.194.196.24]) by mx1.freebsd.org (Postfix) with ESMTP id 557821A94 for ; Sat, 19 Dec 2015 15:17:12 +0000 (UTC) (envelope-from tom@invisible-island.net) Received: from cuda201.his.com (cuda201.his.com [216.194.196.22]) by smtp-nf-201.his.com (Postfix) with ESMTPS id 085DE62900 for ; Sat, 19 Dec 2015 10:10:11 -0500 (EST) X-ASG-Debug-ID: 1450537810-061c4165fad32b0001-XDYc8F Received: from smtp-nf-202.his.com (smtp-nf-202.his.com [216.194.196.20]) by cuda201.his.com with ESMTP id gNQSvihKrLjcjFjW; Sat, 19 Dec 2015 10:10:10 -0500 (EST) X-Barracuda-Envelope-From: tom@invisible-island.net X-Barracuda-RBL-Trusted-Forwarder: 216.194.196.20 Received: from mail-sterling.his.com (mail-sterling.his.com [216.194.248.141]) by smtp-nf-202.his.com (Postfix) with ESMTP id 15FBC60243; Sat, 19 Dec 2015 10:10:10 -0500 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail-sterling.his.com (Postfix) with ESMTP id 3E7F0417000E; Sat, 19 Dec 2015 10:10:10 -0500 (EST) X-Barracuda-RBL-Trusted-Forwarder: 216.194.248.141 X-Virus-Scanned: amavisd-new at mail-sterling.his.com Received: from mail-sterling.his.com ([127.0.0.1]) by localhost (mail-sterling.his.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rCiSKnHkAH-s; Sat, 19 Dec 2015 10:10:07 -0500 (EST) Received: from vmw-debian7-64.jexium-island.net (static-71-246-219-82.washdc.fios.verizon.net [71.246.219.82]) by mail-sterling.his.com (Postfix) with ESMTPSA id 63C273F80062; Sat, 19 Dec 2015 10:10:07 -0500 (EST) Received: from tom by vmw-debian7-64.jexium-island.net with local (Exim 4.80) (envelope-from ) id 1aAJ94-0001tk-Px; Sat, 19 Dec 2015 10:10:06 -0500 X-Barracuda-Effective-Source-IP: static-71-246-219-82.washdc.fios.verizon.net[71.246.219.82] X-Barracuda-Apparent-Source-IP: 71.246.219.82 X-Barracuda-RBL-IP: 71.246.219.82 Date: Sat, 19 Dec 2015 10:10:06 -0500 From: Thomas Dickey To: Carsten Kunze Cc: freebsd-current@freebsd.org Subject: Re: make .SUFFIXES bug? Message-ID: <20151219151006.GA7132@vmw-debian7-64.jexium-island.net> X-ASG-Orig-Subj: Re: make .SUFFIXES bug? Reply-To: dickey@his.com References: <958008149.499994.1450191701294.JavaMail.ngmail@webmail08.arcor-online.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline In-Reply-To: <958008149.499994.1450191701294.JavaMail.ngmail@webmail08.arcor-online.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Barracuda-Connect: smtp-nf-202.his.com[216.194.196.20] X-Barracuda-Start-Time: 1450537810 X-Barracuda-URL: https://spam.his.com:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 1878 X-Virus-Scanned: by bsmtpd at his.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=7.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.25405 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Dec 2015 15:17:13 -0000 --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 15, 2015 at 04:01:41PM +0100, Carsten Kunze wrote: > Hello, >=20 > current groff doesn't build on FreeBSD. I had noticed the same issue som= e months ago on NetBSD and cross checked on FreeBSD and it had worked on Fr= eeBSD. There must have somethig changed since then. How to reproduce: >=20 > When there is a file "test.1.man" and a makefile: >=20 > .SUFFIXES: > .SUFFIXES: .roff .in .ps .mom .pdf .me .ms .ps .html .txt .texi .dvi .pdf= .xhtml .man .c .cpp .log .o .obj .sed .sin .test .test$(EXEEXT) .trs .ypp According to POSIX http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html =2ESUFFIXES Prerequisites of .SUFFIXES shall be appended to the list of known suffi= xes and are used in conjunction with the inference rules (see Inference Rul= es).=20 If .SUFFIXES does not have any prerequisites, the list of known suffixes shall be cleared. and goes on to list the expected suffixes: =2ESUFFIXES: .o .c .y .l .a .sh .f .c=CB=9C .y=CB=9C .l=CB=9C .sh=CB=9C .f= =CB=9C > .man: > @echo Making $@ from $< > rm -f $@ > @LC_ALL=3DC \ > sed -e "s|foo|bar|g" \ > $< >$@ >=20 > "make test.1" results in "make: don't know how to make test.1. Stop". >=20 > When ".man" is put to the start of the list it works. It also works when= the first .SUFFIXES line is removed. >=20 > The answer from NetBSD is that this is very likely a bug in make. May th= is > also be the case for FreeBSD? That's ironic, considering that a while back they were adamant that if the suffix wasn't in the list cited in POSIX, then it was a bug in the makefile. Your example does not list a suffix for ".1". It would be harmless to update groff's makefile to provide that, and a corresponding suffix-rule. --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlZ1c04ACgkQcCNT4PfkjttkKACbBqWX6D7RvtHQOXAAV/yoFOec +5EAoKaQUON2okU2NHs8Keb0MlRoCUWw =4vzj -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE--