[nycbug-talk] OpenBSD sdiff port to FreeBSD

Francisco Reyes lists at stringsutils.com
Sun May 20 15:00:41 EDT 2007


Steven Kreuzer writes:

> ugh, got my wires crossed. If you don't want to sit through an 
> entire buildworld, just cd into /usr/src/usr.bin/sdiff and as 
> root do `make && make install`

I tried it, but I see something which is confusing me.
My history of commands.

106  14:48  cd /root
107  14:49  cp /usr/bin/sdiff bin/Sdiff
108  14:49  cd /usr/src
109  14:49  tar -xvf sdiff.tar.gz
110  14:50  patch -p0 < sdiff/sdiff-cvs-merge.patch ; sh sdiff/sdiff.shar
112  14:51  cd /usr/src/usr.bin/sdiff
113  14:51  make
114  14:51  make install(1)
115  14:51  md5 /usr/bin/sdiff sdiff /root/bin/Sdiff(2)

(1) make
Warning: Object directory not changed from original /usr/src/usr.bin/sdiff
cc -O -pipe  -Wall -W  -c common.c
cc -O -pipe  -Wall -W  -c edit.c
cc -O -pipe  -Wall -W  -c sdiff.c
cc -O -pipe  -Wall -W   -o sdiff common.o edit.o sdiff.o -lutil
gzip -cn sdiff.1 > sdiff.1.gz
zoraida:/usr/src/usr.bin/sdiff#make install
install -s -o root -g wheel -m 555   sdiff /usr/bin
install -o root -g wheel -m 444 sdiff.1.gz  /usr/share/man/man1

(2) md5 /usr/bin/sdiff sdiff /home/fran/bin/Sdiff
MD5 (/usr/bin/sdiff) = 128fb6707ac31369f0ff6b9e09b1579f
MD5 (sdiff) = e4cc3644e62b1c504ce0ab99b7d911b8
MD5 (/root/bin/Sdiff) = f778dc758378ac93a2143b96d1361516


Other than that it seems to work.

Also the original sdiff had a --help line.
That would be nice. :-)
But I guess if they didn't do it in the original OS you ported this from 
(OpenBSD), then it probably doesn't make much sense to have it in FreeBSD 
then.



More information about the talk mailing list