Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!fed1.prime.com!HECKER From: HECKER@fed1.prime.com Newsgroups: gnu.utils.bug Subject: Problems porting GNU diff/diff3 to Prime EXL and System V Message-ID: <8812162254.AA22597@prep.ai.mit.edu> Date: 16 Dec 88 22:53:44 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 292 I have just finished porting version 1.4 of GNU diff and diff3 to the Prime EXL under System V. At last, I have context diffs! Thanks again to the Free Software Foundation for its work. However, I had a slight problem in building diff3, even after changing Makefile for System V. Since diff3.c does not include diff.h, it does not replace calls to bcmp and bzero with calls to the equivalent System V routines (as is done for diff.c). I created a new file diff3.h (derived from diff.h) including the necessary stuff. As I mentioned in the README-EXL file, I did not know if it was anyone's intention to include diff.h in diff3.h, so I just took the quick and dirty way out by creating a new file. Below I have included a shar file containing my diff3.h, as well as the README-EXL file containing the diffs necessary to existing files: #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh 'README-EXL' <<'END_OF_FILE' X GNU DIFF and DIFF3 Utilities, Version 1.4 X Prime EXL Installation and Release Notes X X Frank Hecker X Federal Operations X Prime Computer, Inc. X X December 16, 1988 X X XIntroduction X XThis directory contains version 1.4 of the GNU diff and diff3 Xutilities, (mostly) compatible replacements for the System V and BSD Xdiff utilities, ported to the Prime EXL Series of 80386-based UNIX Xsupermicro systems running AT&T System V/386. X XThe major advantage of GNU diff and diff3 for System V users is that Xthey implement the so-called "context diff" feature (diff -c), in Xwhich changed lines are printed in the context of their surrounding Xlines. X XThese utilities are part of the GNU family of free software from the XFree Software Foundation. X X XInstallation X XTo install the GNU diff and diff3 utilities on the Prime EXL please do Xthe following steps. X XFirst, load the tape: X X # cd /usr/local/src (or some other suitable directory) X # cpio -icvdumB X #include X X+ #include "diff3.h" X+ X /* X * Internal data structures and macros for the diff3 program; includes X * data structures for both diff3 diffs and normal diffs. X XI would have included diff.h itself in diff3.c, but I was not sure if Xthere would be conflicts in variable names, etc., and thus I took the Xeasy way out. X X XDocumentation X XAs of now there is no man page or on-line documentation for the GNU Xdiff and diff3 utilities. Please see the README file, as well as the Xoriginal documentation for diff and diff3 under System V and BSD. X X XRemaining Problems and Issues X XNone at this time. X X XProblem Reporting X XPlease direct any problems or questions regarding the Prime EXL port Xof GNU diff and diff3 to the following address(es): X X U.S. mail: Frank Hecker X Prime Computer, Inc. X 1375 Piccard Dr. X Rockville MD 20850 X X Phone: 1-301-948-7010 x308 X X E-mail: hecker@fed1.prime.com X XHowever, please note that this program is not an official Prime Xproduct and is not supported or warrantied in any way whatsoever by Xmyself, Prime Computer, Inc., or the Free Software Foundation. It is Xmade available to third parties under the terms of the GNU diff Xgeneral public license; see the file COPYING for more details. END_OF_FILE if test 5641 -ne `wc -c <'README-EXL'`; then echo shar: \"'README-EXL'\" unpacked with wrong size! fi # end of 'README-EXL' fi if test -f 'diff3.h' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'diff3.h'\" else echo shar: Extracting \"'diff3.h'\" \(1323 characters\) sed "s/^X//" >'diff3.h' <<'END_OF_FILE' X/* Definitions for GNU DIFF (diff3) X Copyright (C) 1988 Free Software Foundation, Inc. X XThis file is not officially part of GNU DIFF, but was created from Xdiff.h by Frank Hecker of Prime Computer, Inc., on December 16, 1988, Xas part of the Prime EXL port of GNU diff3. It is subject to the same Xlicense terms and conditions as the original GNU DIFF files. X XGNU DIFF is distributed in the hope that it will be useful, Xbut WITHOUT ANY WARRANTY. No author or distributor Xaccepts responsibility to anyone for the consequences of using it Xor for whether it serves any particular purpose or works at all, Xunless he says so in writing. Refer to the GNU DIFF General Public XLicense for full details. X XEveryone is granted permission to copy, modify and redistribute XGNU DIFF, but only under the conditions described in the XGNU DIFF General Public License. A copy of this license is Xsupposed to have been given to you along with GNU DIFF so you Xcan know your rights and responsibilities. It should be in a Xfile named COPYING. Among other things, the copyright notice Xand this notice must be preserved on all copies. */ X X X#ifdef USG X/* Define needed BSD functions in terms of sysV library. */ X X#define bcopy(s,d,n) memcpy((d),(s),(n)) X#define bcmp(s1,s2,n) memcmp((s1),(s2),(n)) X#define bzero(s,n) memset((s),0,(n)) X#endif END_OF_FILE if test 1323 -ne `wc -c <'diff3.h'`; then echo shar: \"'diff3.h'\" unpacked with wrong size! fi # end of 'diff3.h' fi echo shar: End of shell archive. exit 0