home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / gcc / gcc260diffs.lha / gnu / src-patches / tar-1.11.2.diffs < prev    next >
Encoding:
Text File  |  1994-07-30  |  9.5 KB  |  336 lines

  1. diff -rc tar-1.11.2-fsf/INSTALL tar-1.11.2-amiga/INSTALL
  2. *** tar-1.11.2-fsf/INSTALL    Fri Jan 22 17:16:53 1993
  3. --- tar-1.11.2-amiga/INSTALL    Thu Feb 24 12:21:19 1994
  4. ***************
  5. *** 33,40 ****
  6.   DIR is the directory that contains the source code.
  7.   
  8.   By default, `make install' will install the package's files in
  9. ! /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify
  10. ! an installation prefix other than /usr/local by giving `configure' the
  11.   option `--prefix=PATH'.  Alternately, you can do so by giving a value
  12.   for the `prefix' variable when you run `make', e.g.,
  13.       make prefix=/usr/gnu
  14. --- 33,40 ----
  15.   DIR is the directory that contains the source code.
  16.   
  17.   By default, `make install' will install the package's files in
  18. ! /gnu/bin, /gnu/lib, /gnu/man, etc.  You can specify
  19. ! an installation prefix other than /gnu by giving `configure' the
  20.   option `--prefix=PATH'.  Alternately, you can do so by giving a value
  21.   for the `prefix' variable when you run `make', e.g.,
  22.       make prefix=/usr/gnu
  23. diff -rc tar-1.11.2-fsf/Makefile.in tar-1.11.2-amiga/Makefile.in
  24. *** tar-1.11.2-fsf/Makefile.in    Thu Mar 25 18:59:26 1993
  25. --- tar-1.11.2-amiga/Makefile.in    Thu Feb 24 12:21:05 1994
  26. ***************
  27. *** 74,83 ****
  28.   RTAPELIB = @RTAPELIB@
  29.   LIBS = @LIBS@
  30.   
  31. ! CFLAGS = -g
  32. ! LDFLAGS = -g
  33.   
  34. ! prefix = /usr/local
  35.   exec_prefix = $(prefix)
  36.   
  37.   # Prefix for each installed program, normally empty or `g'.
  38. --- 74,83 ----
  39.   RTAPELIB = @RTAPELIB@
  40.   LIBS = @LIBS@
  41.   
  42. ! CFLAGS = -O2
  43. ! LDFLAGS =
  44.   
  45. ! prefix = /gnu
  46.   exec_prefix = $(prefix)
  47.   
  48.   # Prefix for each installed program, normally empty or `g'.
  49. ***************
  50. *** 87,93 ****
  51.   bindir = $(exec_prefix)/bin
  52.   
  53.   # Where to put the rmt executable.
  54. ! libdir = /etc
  55.   
  56.   # The directory to install the info files in.
  57.   infodir = $(prefix)/info
  58. --- 87,93 ----
  59.   bindir = $(exec_prefix)/bin
  60.   
  61.   # Where to put the rmt executable.
  62. ! libdir = /gnu/etc
  63.   
  64.   # The directory to install the info files in.
  65.   infodir = $(prefix)/info
  66. diff -rc tar-1.11.2-fsf/buffer.c tar-1.11.2-amiga/buffer.c
  67. *** tar-1.11.2-fsf/buffer.c    Fri Mar 19 20:05:11 1993
  68. --- tar-1.11.2-amiga/buffer.c    Thu Feb 24 12:18:09 1994
  69. ***************
  70. *** 61,67 ****
  71.   
  72.   /* Either stdout or stderr:  The thing we write messages (standard msgs, not
  73.      errors) to.  Stdout unless we're writing a pipe, in which case stderr */
  74. ! FILE *msg_file = stdout;
  75.   
  76.   #define    STDIN    0        /* Standard input  file descriptor */
  77.   #define    STDOUT    1        /* Standard output file descriptor */
  78. --- 61,67 ----
  79.   
  80.   /* Either stdout or stderr:  The thing we write messages (standard msgs, not
  81.      errors) to.  Stdout unless we're writing a pipe, in which case stderr */
  82. ! FILE *msg_file;
  83.   
  84.   #define    STDIN    0        /* Standard input  file descriptor */
  85.   #define    STDOUT    1        /* Standard output file descriptor */
  86. diff -rc tar-1.11.2-fsf/configure tar-1.11.2-amiga/configure
  87. *** tar-1.11.2-fsf/configure    Wed Feb  3 20:43:37 1993
  88. --- tar-1.11.2-amiga/configure    Thu Feb 24 14:20:37 1994
  89. ***************
  90. *** 89,95 ****
  91.     srcdirdefaulted=yes
  92.     # Try the directory containing this script, then `..'.
  93.     prog=$0
  94. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  95.     test "X$confdir" = "X$prog" && confdir=.
  96.     srcdir=$confdir
  97.     if test ! -r $srcdir/$unique_file; then
  98. --- 89,95 ----
  99.     srcdirdefaulted=yes
  100.     # Try the directory containing this script, then `..'.
  101.     prog=$0
  102. !   confdir=`echo $prog| sed 's|/$||' | sed 's|//|/|' | sed 's|/[^/]*$||'`
  103.     test "X$confdir" = "X$prog" && confdir=.
  104.     srcdir=$confdir
  105.     if test ! -r $srcdir/$unique_file; then
  106. ***************
  107. *** 277,283 ****
  108.   
  109.   echo checking for POSIXized ISC
  110.   if test -d /etc/conf/kconfig.d &&
  111. !   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  112.   then
  113.     ISC=1 # If later tests want to check for ISC.
  114.     DEFS="$DEFS -D_POSIX_SOURCE=1"
  115. --- 277,283 ----
  116.   
  117.   echo checking for POSIXized ISC
  118.   if test -d /etc/conf/kconfig.d &&
  119. !   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  120.   then
  121.     ISC=1 # If later tests want to check for ISC.
  122.     DEFS="$DEFS -D_POSIX_SOURCE=1"
  123. ***************
  124. *** 459,473 ****
  125.   #include <sys/socket.h>
  126.   EOF
  127.   err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  128. ! if test -z "$err"; then
  129.     PROGS="$PROGS rmt"
  130.   fi
  131.   rm -f conftest*
  132.   fi
  133.   
  134.   echo checking for remote shell
  135. ! if test -f /usr/ucb/rsh || test -f /usr/bin/remsh || test -f /usr/bin/rsh ||
  136. !   test -f /usr/bsd/rsh || test -f /usr/bin/nsh; then
  137.     RTAPELIB=rtapelib.o
  138.   else
  139.     echo checking for netdb.h
  140. --- 459,474 ----
  141.   #include <sys/socket.h>
  142.   EOF
  143.   err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  144. ! # Suppress building rmt, even though the above succeeds on the Amiga, the
  145. ! # link fails due to an unresolved call to setsockopt().  -fnf
  146. ! if false && test -z "$err"; then
  147.     PROGS="$PROGS rmt"
  148.   fi
  149.   rm -f conftest*
  150.   fi
  151.   
  152.   echo checking for remote shell
  153. ! if test -f /gnu/bin/remsh || test -f /gnu/bin/rsh || test -f /gnu/bin/nsh; then
  154.     RTAPELIB=rtapelib.o
  155.   else
  156.     echo checking for netdb.h
  157. ***************
  158. *** 475,487 ****
  159.   #include <netdb.h>
  160.   EOF
  161.   err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  162. ! if test -z "$err"; then
  163.     DEFS="$DEFS -DHAVE_NETDB_H=1" RTAPELIB=rtapelib.o
  164.   else
  165.     DEFS="$DEFS -DNO_REMOTE=1"
  166.   fi
  167.   rm -f conftest*
  168.   fi
  169.   
  170.   echo checking for ANSI C header files
  171. --- 476,489 ----
  172.   #include <netdb.h>
  173.   EOF
  174.   err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  175. ! # Suppres use of rtapelib.o since it references getservbyname() and rexec(),
  176. ! # which are unresolved at link time.
  177. ! if false && test -z "$err"; then
  178.     DEFS="$DEFS -DHAVE_NETDB_H=1" RTAPELIB=rtapelib.o
  179.   else
  180.     DEFS="$DEFS -DNO_REMOTE=1"
  181.   fi
  182.   rm -f conftest*
  183.   fi
  184.   
  185.   echo checking for ANSI C header files
  186. ***************
  187. *** 563,568 ****
  188. --- 565,571 ----
  189.   # This might guess wrong, but it's not very important.
  190.   for dev in rmt8 rmt0 rmt0h rct0 rst0 tape rct/c7d0s2
  191.   do
  192. +   break    # Hack - disable for AmigaDOS to prevent "dev:" requesters.  -fnf
  193.     if test -n "`ls /dev/$dev 2>/dev/null`"; then
  194.       DEF_AR_FILE=/dev/$dev
  195.       break
  196. ***************
  197. *** 571,576 ****
  198. --- 574,581 ----
  199.   if test -z "$DEF_AR_FILE"; then
  200.     DEF_AR_FILE=-
  201.   fi
  202. + # Hack - force default archive to be tape: for AmigaDOS.  -fnf
  203. + DEF_AR_FILE="tape:"
  204.   
  205.   for func in strstr valloc mkdir mknod rename ftruncate ftime getcwd
  206.   do
  207. ***************
  208. *** 671,679 ****
  209.   fi
  210.   
  211.   echo checking for BSD
  212. ! ( test -f /vmunix || test -f /sdmach || test -f /../../mach ) && DEFS="$DEFS -DBSD42=1"
  213.   echo checking for HP-UX
  214. ! test -f /hp-ux && test ! -f /vmunix && MALLOC=malloc.o
  215.   
  216.   echo checking for Xenix
  217.   cat > conftest.c <<EOF
  218. --- 676,684 ----
  219.   fi
  220.   
  221.   echo checking for BSD
  222. ! #( false && test -f /vmunix || test -f /sdmach || test -f /../../mach ) && DEFS="$DEFS -DBSD42=1"
  223.   echo checking for HP-UX
  224. ! #test -f /hp-ux && test ! -f /vmunix && MALLOC=malloc.o
  225.   
  226.   echo checking for Xenix
  227.   cat > conftest.c <<EOF
  228. diff -rc tar-1.11.2-fsf/diffarch.c tar-1.11.2-amiga/diffarch.c
  229. *** tar-1.11.2-fsf/diffarch.c    Mon Mar 15 18:47:17 1993
  230. --- tar-1.11.2-amiga/diffarch.c    Thu Feb 24 12:18:10 1994
  231. ***************
  232. *** 193,199 ****
  233. --- 193,205 ----
  234.         goto quit;
  235.       }
  236.   
  237. + #if amigados && __GNUC__
  238. +       /* The current gcc environment doesn't deal with having O_NDELAY set.
  239. +      An ixemul.library bug?  */
  240. +       diff_fd = open (current_file_name, O_RDONLY | O_BINARY);
  241. + #else
  242.         diff_fd = open (current_file_name, O_NDELAY | O_RDONLY | O_BINARY);
  243. + #endif
  244.   
  245.         if (diff_fd < 0 && !f_absolute_paths)
  246.       {
  247. diff -rc tar-1.11.2-fsf/getdate.c tar-1.11.2-amiga/getdate.c
  248. *** tar-1.11.2-fsf/getdate.c    Mon Mar 15 16:46:07 1993
  249. --- tar-1.11.2-amiga/getdate.c    Thu Feb 24 14:02:39 1994
  250. ***************
  251. *** 152,157 ****
  252. --- 152,163 ----
  253.   } MERIDIAN;
  254.   
  255.   
  256. + /* Forward declare these since the parser generator generates usages before
  257. +    the user supplied definitions are seen. */
  258. + static int yyerror();
  259. + static int yylex();
  260.   /*
  261.   **  Global variables.  We could get rid of most of these by using a good
  262.   **  union as the yacc stack.  (This routine was originally written before
  263. diff -rc tar-1.11.2-fsf/getdate.y tar-1.11.2-amiga/getdate.y
  264. *** tar-1.11.2-fsf/getdate.y    Tue Feb 16 09:08:58 1993
  265. --- tar-1.11.2-amiga/getdate.y    Thu Feb 24 14:02:24 1994
  266. ***************
  267. *** 131,136 ****
  268. --- 131,141 ----
  269.       MERam, MERpm, MER24
  270.   } MERIDIAN;
  271.   
  272. + /* Forward declare these since the parser generator generates usages before
  273. +    the user supplied definitions are seen. */
  274. + static int yyerror();
  275. + static int yylex();
  276.   
  277.   /*
  278.   **  Global variables.  We could get rid of most of these by using a good
  279. diff -rc tar-1.11.2-fsf/tar.c tar-1.11.2-amiga/tar.c
  280. *** tar-1.11.2-fsf/tar.c    Wed Mar 17 15:30:46 1993
  281. --- tar-1.11.2-amiga/tar.c    Thu Feb 24 12:34:16 1994
  282. ***************
  283. *** 187,199 ****
  284.   /*
  285.    * Main routine for tar.
  286.    */
  287. ! void
  288.   main (argc, argv)
  289.        int argc;
  290.        char **argv;
  291.   {
  292.     extern char version_string[];
  293.   
  294.     tar = argv[0];        /* JF: was "tar" Set program name */
  295.     filename_terminator = '\n';
  296.     errors = 0;
  297. --- 187,200 ----
  298.   /*
  299.    * Main routine for tar.
  300.    */
  301. ! int
  302.   main (argc, argv)
  303.        int argc;
  304.        char **argv;
  305.   {
  306.     extern char version_string[];
  307.   
  308. +   msg_file = stdout;
  309.     tar = argv[0];        /* JF: was "tar" Set program name */
  310.     filename_terminator = '\n';
  311.     errors = 0;
  312. diff -rc tar-1.11.2-fsf/testpad.c tar-1.11.2-amiga/testpad.c
  313. *** tar-1.11.2-fsf/testpad.c    Fri Sep 18 18:45:58 1992
  314. --- tar-1.11.2-amiga/testpad.c    Thu Feb 24 12:33:09 1994
  315. ***************
  316. *** 37,43 ****
  317.     struct inc in[5];
  318.   };
  319.   
  320. ! void
  321.   main ()
  322.   {
  323.     struct test1 t1;
  324. --- 37,43 ----
  325.     struct inc in[5];
  326.   };
  327.   
  328. ! int
  329.   main ()
  330.   {
  331.     struct test1 t1;
  332.