[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Package builds fail with POSIXLY_CORRECT=1
From: |
Alexandre Duret-Lutz |
Subject: |
Re: Package builds fail with POSIXLY_CORRECT=1 |
Date: |
Fri, 23 Jan 2004 23:42:59 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
>>> "Miloslav" == Miloslav Trmac <address@hidden> writes:
Miloslav> Hello,
Miloslav> When using POSIXLY_CORRECT=1, package builds fail
Miloslav> without the attached patch because config.status does
Miloslav> not create the needed dummy .Po files. Mirek
Thanks for the report. I'm installing the following fix on
HEAD, and its equivalent on branch-1-8.
2004-01-23 Alexandre Duret-Lutz <address@hidden>
* m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Use `s/xx//p'
instead of `/xx/ s///p'; the latter fails when GNU sed is run with
POSIXLY_CORRECT. Also strip superfluous -e.
Report from Miloslav Trmac.
Index: m4/depout.m4
===================================================================
RCS file: /cvs/automake/automake/m4/depout.m4,v
retrieving revision 1.16
diff -u -r1.16 depout.m4
--- m4/depout.m4 1 Jan 2004 21:57:23 -0000 1.16
+++ m4/depout.m4 23 Jan 2004 22:41:43 -0000
@@ -39,18 +39,18 @@
fi
# Extract the definition of DEPDIR, am__include, and am__quote
# from the Makefile without running `make'.
- DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
test -z "$DEPDIR" && continue
- am__include=`sed -n -e '/^am__include = / s///p' < "$mf"`
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
test -z "am__include" && continue
- am__quote=`sed -n -e '/^am__quote = / s///p' < "$mf"`
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
# When using ansi2knr, U may be empty or an underscore; expand it
- U=`sed -n -e '/^U = / s///p' < "$mf"`
+ U=`sed -n 's/^U = //p' < "$mf"`
# Find all dependency output files, they are included files with
# $(DEPDIR) in their names. We invoke sed twice because it is the
# simplest approach to changing $(DEPDIR) to its actual value in the
# expansion.
- for file in `sed -n -e "
+ for file in `sed -n "
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
# Make sure the directory exists.
--
Alexandre Duret-Lutz