Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!newsfeed.internetmci.com!news.kddnet.ad.jp!newssvt02.tk!newssvt.tk!seafolk!newssvt.os!newssv2-pcvan!news
From: MSM76750@pcvan.or.jp
Newsgroups: fj.os.minix,comp.os.minix
Subject: {FAKE] diff for GNU tar-1.11.8, under Minix-2.0.0
Date: 18 Oct 1996 02:04:07 GMT
Organization: PC-VAN, japan
Lines: 103
Message-ID: <961018111600.11945@pcvan.or.jp>
NNTP-Posting-Host: newssv1.pcvan.or.jp
X-Newsreader: PC-VAN INETNEWS Ver 1.13

Of cource, UnOffitial. (Tab expanded).

cd /bin; mv sh sh.old; ln /usr/bin/ash /bin/sh

In the directory tar-1.11.8, apply this patch.
patch -p1 --ignore-whitespace < ThisFile

CC=cc; export CC; ash configure --with-regex --disable-nls i386-minix

vi config.h
        #define HAVE_MKNOD 1
vi Makefile
        add '-O -i -m -w' to CFLAGS, instead of '-g'
        add '-s' to INSTALL_PROGRAM
        add '-i' to LDFLAGS
vi src/Makefile; vi lib/Makefile
        add ...

Then, g?make ...

        by S.Kimura MSM76750@pcvan.or.jp


diff -uNr tar-1.11.8/Makefile.in tar-1.11.8m/Makefile.in
--- tar-1.11.8/Makefile.in      Sat Jun 17 15:29:49 1995
+++ tar-1.11.8m/Makefile.in     Thu Oct 17 18:49:38 1996
@@ -51,7 +51,8 @@
 bindir='$(bindir)' libexecdir='$(libexecdir)' \
 infodir='$(infodir)' infodir='$(infodir)' libexecdir='$(libexecdir)'
 
-SUBDIRS = doc lib intl src scripts po
+#SUBDIRS = doc lib intl src scripts po
+SUBDIRS = doc lib src scripts po
 
 DISTFILES = \
 README AUTHORS BACKLOG COPYING INSTALL NEWS NLS THANKS TODO ChangeLog \
diff -uNr tar-1.11.8/lib/Makefile.in tar-1.11.8m/lib/Makefile.in
--- tar-1.11.8/lib/Makefile.in  Sun Jun 18 00:38:33 1995
+++ tar-1.11.8m/lib/Makefile.in Thu Oct 17 18:50:26 1996
@@ -65,7 +65,7 @@
 
 libtar.a: $(OBJECTS)
        rm -f libtar.a
-       $(AR) cru libtar.a $(OBJECTS)
+       $(AR) cr libtar.a $(OBJECTS)
        $(RANLIB) libtar.a
 
 $(OBJECTS): ../config.h
diff -uNr tar-1.11.8/lib/error.c tar-1.11.8m/lib/error.c
--- tar-1.11.8/lib/error.c      Thu Oct 13 04:41:00 1994
+++ tar-1.11.8m/lib/error.c     Thu Oct 17 18:46:55 1996
@@ -23,6 +23,11 @@
 
 #include <stdio.h>
 
+#ifdef __minix
+#define sys_errlist _sys_errlist
+#define sys_nerr _sys_nerr
+#endif /* __minix */
+
 #if HAVE_VPRINTF || HAVE_DOPRNT
 # if __STDC__
 #  include <stdarg.h>
diff -uNr tar-1.11.8/src/open3.h tar-1.11.8m/src/open3.h
--- tar-1.11.8/src/open3.h      Thu Sep 15 21:34:06 1994
+++ tar-1.11.8m/src/open3.h     Thu Oct 17 19:40:02 1996
@@ -50,6 +50,12 @@
 #define O_NDELAY        4      /* don't block on opening devices that would
                                   block on open -- ignored by emulator */
 #endif
+#ifdef __minix
+#undef O_CREAT
+#undef O_EXCL
+#undef O_TRUNC
+#undef O_APPEND
+#endif /* __minix */
 #define O_CREAT                 8      /* create file if needed */
 #define O_EXCL         16      /* file cannot already exist */
 #define O_TRUNC                32      /* truncate file on open */
diff -uNr tar-1.11.8/src/rtapelib.c tar-1.11.8m/src/rtapelib.c
--- tar-1.11.8/src/rtapelib.c   Wed Mar 15 05:29:24 1995
+++ tar-1.11.8m/src/rtapelib.c  Thu Oct 17 18:44:21 1996
@@ -514,6 +514,13 @@
 | Return the results of the ioctl, or -1 on error.                        |
 `-------------------------------------------------------------------------*/
 
+#ifdef __minix
+int
+__rmt_ioctl (int file_descriptor, int op, char *arg)
+{
+       /* DO Nothing */
+}
+#else
 int
 __rmt_ioctl (int file_descriptor, int op, char *arg)
 {
@@ -590,3 +597,4 @@
 
     }
 }
+#endif /* __minix */
[EOP]
(B
