robert@computing-maths.cardiff.ac.uk (Robert Evans) (01/27/89)
There are two features in the uk-sendmail2.3 config suite that are not
portable to Ultrix 2.3.
First, the sed script in Config which transforms the configuration file
doesn't work. It results in a truncated configuration file which may
contain blank lines. The problem is the test-and-branch to label "repeat".
This ought to occur only if the substitution above the test has taken
place but on Ultrix 2.3 it seems to occur as a result of the N command
changing the pattern space. The way around this is to have an extra
test-and-brach after the N command branching to the next line. This
resets sed's idea of when the last test or substition was done. So
: repeat
N
s/\n[ ][ ]*//
t repeat
becomes
: repeat
N
t cont
: cont
s/\n[ ][ ]*//
t repeat
Here's a context diff:
---------------cut here---------------
*** Config.OLD Thu Jan 26 16:26:16 1989
--- Config Thu Jan 26 16:27:10 1989
***************
*** 33,38 ****
--- 33,40 ----
/^$/d
: repeat
N
+ t cont
+ : cont
s/\n[ ][ ]*//
t repeat
P
---------------cut here---------------
The second problem is with Chnbuild. This shell script uses the command
"shift 2" to shift two arguments. This doesn't work on Ultrix 2.3 and
must be replaced by "shift; shift".
Here's a diff for that:
---------------cut here---------------
*** Chnbuild.OLD Thu Jan 26 16:28:25 1989
--- Chnbuild Thu Jan 26 15:04:28 1989
***************
*** 375,381 ****
exit 1
;;
esac
! shift 2
done
#---------------------------------------
--- 375,381 ----
exit 1
;;
esac
! shift ; shift
done
#---------------------------------------
---------------cut here---------------
These modified scripts work on SunOS 4.0 (as did the originals) as well
as Ultrix 2.3.
--
Robert Evans, Dept of Computing Maths, University of Wales College of Cardiff,
PO Box 916, Cardiff, Wales, UK, CF2 4YN. Tel: +44 (0)222 874000 x 5518
E-mail: R.Evans@computing-maths.cardiff.ac.uk UUCP: R.Evans@cf-cm.UUCP