From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ryan Schmidt Newsgroups: gmane.lisp.guile.bugs Subject: bug#31998: Guile 2.2.3 fails to install with BSD sed Date: Thu, 28 Jun 2018 15:14:56 -0500 Message-ID: <14AA3BED-E772-4EAB-B2F8-8531CCF18485@macports.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1530219724 6973 195.159.176.226 (28 Jun 2018 21:02:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 28 Jun 2018 21:02:04 +0000 (UTC) To: 31998@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Jun 28 23:02:00 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYe3C-0001eY-JH for guile-bugs@m.gmane.org; Thu, 28 Jun 2018 23:01:58 +0200 Original-Received: from localhost ([::1]:38632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYe5J-0006OC-VM for guile-bugs@m.gmane.org; Thu, 28 Jun 2018 17:04:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYdVS-0000WF-2Z for bug-guile@gnu.org; Thu, 28 Jun 2018 16:27:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYdVO-00048o-Us for bug-guile@gnu.org; Thu, 28 Jun 2018 16:27:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYdVO-00048c-Sb for bug-guile@gnu.org; Thu, 28 Jun 2018 16:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fYdVO-0003nH-NJ for bug-guile@gnu.org; Thu, 28 Jun 2018 16:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ryan Schmidt Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 28 Jun 2018 20:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31998 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153021759514521 (code B ref -1); Thu, 28 Jun 2018 20:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jun 2018 20:26:35 +0000 Original-Received: from localhost ([127.0.0.1]:38912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYdUw-0003m9-My for submit@debbugs.gnu.org; Thu, 28 Jun 2018 16:26:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYdJw-0003Up-1d for submit@debbugs.gnu.org; Thu, 28 Jun 2018 16:15:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYdJp-0006gU-VF for submit@debbugs.gnu.org; Thu, 28 Jun 2018 16:15:06 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40060) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fYdJp-0006g8-Qw for submit@debbugs.gnu.org; Thu, 28 Jun 2018 16:15:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYdJo-0007QW-NB for bug-guile@gnu.org; Thu, 28 Jun 2018 16:15:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYdJl-0006Yw-He for bug-guile@gnu.org; Thu, 28 Jun 2018 16:15:04 -0400 Original-Received: from smtprelay04.ispgateway.de ([80.67.18.16]:41096) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fYdJl-0006Um-By for bug-guile@gnu.org; Thu, 28 Jun 2018 16:15:01 -0400 Original-Received: from [67.198.113.253] (helo=untitled-mac.internal.macports.net) by smtprelay04.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fYdJi-0001y2-92 for bug-guile@gnu.org; Thu, 28 Jun 2018 22:14:58 +0200 X-Mailer: Apple Mail (2.3273) X-Df-Sender: MzY4ODE4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 28 Jun 2018 16:26:33 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9080 Archived-At: Guile 2.2.3 fails to install when BSD sed was found by the configure = script. It works fine if GNU sed was found. The error we see is: sed: -i may not be used with stdin This problem was reported to MacPorts here: https://trac.macports.org/ticket/56748 The problem was introduced in this commit: This problem was introduced in = http://git.savannah.gnu.org/cgit/guile.git/commit/libguile/Makefile.am?id=3D= 81d2e352663bc5f80734312fec90f250b1fbe2e4 The problem is happening in libguile/Makefile.am which says: INSTANTIATE =3D = \ $(SED) -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' = \ -e 's,[@]pkglibdir[@],$(pkglibdir),g' = \ -e = 's,[@]GUILE_EFFECTIVE_VERSION[@],$(GUILE_EFFECTIVE_VERSION),g' \ -i This usage of the -i flag (without an argument) is only compatible with = GNU sed. BSD sed requires an argument. Unfortunately I don't know of a way to specify that there should be no = backup file made that is compatible with both GNU and BSD sed. BSD sed = requires a space between the flag and the argument if the argument is = the empty string, like this: "-i ''"; "-i" and "-i''" are considered = errors. Conversely, GNU sed requires "-i" or "-i''"; "-i ''" is an = error. The only solution I know of is to specify a nonempty backup file = suffix, which will cause a backup file to be created, e.g. "-i.bak". If you want to be truly portable, I'm told you have to avoid the -i flag = entirely, because it's not in POSIX.