Config.status on OS X

Gordon Worley redbird@rbisland.cx
Tue Jun 12 00:52:01 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Okay, I'm having some trouble with getting gpg to work on OS X. 
1.0.4 and 1.0.5 worked fine with a patch, which I've posted below. 
It seems that there is a problem with sed.  To start with, here is 
what I get running config.status:

localhost% ./config.status
creating Makefile
sed: 46: conftest.s1: unescaped newline inside substitute pattern
creating intl/Makefile
sed: 46: conftest.s1: unescaped newline inside substitute pattern
creating po/Makefile.in
sed: 46: conftest.s1: unescaped newline inside substitute pattern
creating util/Makefile
sed: 46: conftest.s1: unescaped newline inside substitute pattern
creating mpi/Makefile
sed: 46: conftest.s1: unescaped newline inside substitute pattern
creating cipher/Makefile
sed: 46: conftest.s1: unescaped newline inside substitute pattern
creating g10/Makefile
sed: 46: conftest.s1: unescaped newline inside substitute pattern
creating doc/Makefile
sed: 46: conftest.s1: unescaped newline inside substitute pattern
creating tools/Makefile
sed: 46: conftest.s1: unescaped newline inside substitute pattern
creating zlib/Makefile
sed: 46: conftest.s1: unescaped newline inside substitute pattern
creating checks/Makefile
sed: 46: conftest.s1: unescaped newline inside substitute pattern
creating config.h
config.h is unchanged
linking ./mpi/powerpc32/mpih-add1.S to mpi/mpih-add1.S
linking ./mpi/powerpc32/mpih-mul1.S to mpi/mpih-mul1.S
linking ./mpi/powerpc32/mpih-mul2.S to mpi/mpih-mul2.S
linking ./mpi/powerpc32/mpih-mul3.S to mpi/mpih-mul3.S
linking ./mpi/powerpc32/mpih-lshift.S to mpi/mpih-lshift.S
linking ./mpi/powerpc32/mpih-rshift.S to mpi/mpih-rshift.S
linking ./mpi/powerpc32/mpih-sub1.S to mpi/mpih-sub1.S
linking ./mpi/generic/mpi-asm-defs.h to mpi/mpi-asm-defs.h
creating po/POTFILES
creating po/Makefile
g10defs.h is unchanged

Here are the offending lines in config.status (46 is the second line 
of the snip):

# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
/^[     ]*VPATH[    ]*=[^:]*$/d

Finally, here is the part of the patch file that we used to use that 
fixed the problem (there's more of it, but I'm pretty sure none of it 
is needed):

diff -r -u -u gnupg-1.0.5/config.status gnupg-1.0.5-modified/config.status
- --- gnupg-1.0.5/config.status	Thu	May	3	20:45 2001
+++ gnupg-1.0.5-modified/config.status	Thu May  3 21:00 2001
@@ -48,7 +48,7 @@
  /^[ 	]*VPATH[ 	]*=[^:]*$/d

Also, so you know, here is how I run configure (but this doesn't 
matter, since I get the same errors regarless of options used, as 
would be expected):

./configure --enable-static-rnd=egd 
- --with-egd-socket=~/.gnupg/entropy --with-included-gettext

So, if you know a thing or two about sed, maybe you can help me 
figure this thing out.  :-)
- -- 
Gordon Worley
http://www.rbisland.cx/
mailto:redbird@rbisland.cx
PGP Fingerprint:  C462 FA84 B811 3501 9010  20D2 6EF3 77F7 BBD3 B003

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOyVLI27zd/e707ADEQJX5wCfZxTmSE+btRsI4kz3cGvzIPuhYFQAoNJk
0Bk1PbEZ4ONYBnwJyGTpdQvQ
=JMS2
-----END PGP SIGNATURE-----