* bug#31998: Guile 2.2.3 fails to install with BSD sed
@ 2018-06-28 20:14 Ryan Schmidt
0 siblings, 0 replies; only message in thread
From: Ryan Schmidt @ 2018-06-28 20:14 UTC (permalink / raw)
To: 31998
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=81d2e352663bc5f80734312fec90f250b1fbe2e4
The problem is happening in libguile/Makefile.am which says:
INSTANTIATE = \
$(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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-28 20:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-28 20:14 bug#31998: Guile 2.2.3 fails to install with BSD sed Ryan Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).