pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xtar xtar: Patch some more obvious 1995-era code p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cc693e7c0e90
branches:  trunk
changeset: 371220:cc693e7c0e90
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Jan 07 13:02:31 2022 +0000

description:
xtar: Patch some more obvious 1995-era code problems.

diffstat:

 x11/xtar/distinfo                         |  15 +++++++++------
 x11/xtar/patches/patch-Xbr_XbrCB.c        |   5 +++--
 x11/xtar/patches/patch-Xbr_XbrList.c      |  27 +++++++++++++++++++++++++++
 x11/xtar/patches/patch-Xbr_XbrMenu.c      |   5 +++--
 x11/xtar/patches/patch-common_env.c       |  14 ++++++++++++++
 x11/xtar/patches/patch-common_file.c      |   8 ++++++--
 x11/xtar/patches/patch-common_mkdirhier.c |  16 ++++++++++++++++
 x11/xtar/patches/patch-common_pipe.c      |   5 +++--
 x11/xtar/patches/patch-common_tmpfile.c   |   5 +++--
 9 files changed, 84 insertions(+), 16 deletions(-)

diffs (208 lines):

diff -r bb3fd0553b86 -r cc693e7c0e90 x11/xtar/distinfo
--- a/x11/xtar/distinfo Fri Jan 07 12:50:20 2022 +0000
+++ b/x11/xtar/distinfo Fri Jan 07 13:02:31 2022 +0000
@@ -1,20 +1,23 @@
-$NetBSD: distinfo,v 1.1 2022/01/07 12:43:14 nia Exp $
+$NetBSD: distinfo,v 1.2 2022/01/07 13:02:31 nia Exp $
 
 BLAKE2s (xtar-1.4.tar.gz) = 3a2d17f4c1fd2d6d46c5f91b919d54367c1268b027984016aa6c992e0e0b070f
 SHA512 (xtar-1.4.tar.gz) = aac20f1eefcdc2401dc0fa39ba4291a56cb505ee4a6a5202ac6401e8bbc27dcf40368495e5b22669c21a30d90cf116d2dbdc67ce86273f4fd8df21f070d2f121
 Size (xtar-1.4.tar.gz) = 87506 bytes
 SHA1 (patch-Imakefile) = 6bbc68103dd399c0a744f837dbe3016d5a367424
-SHA1 (patch-Xbr_XbrCB.c) = db5544ed0ede603a53f091a47335505c2207b7d5
+SHA1 (patch-Xbr_XbrCB.c) = a9d3a9eaa18e69b1192225bab8df73e21786f472
 SHA1 (patch-Xbr_XbrGfx.c) = 2ff219fe99837c2b0109667866b7b822312ec0c0
+SHA1 (patch-Xbr_XbrList.c) = 49264cdf8734efef039fc50c3778d91124346735
 SHA1 (patch-Xbr_XbrList.h) = b038bfa8b9bc1300de868994ad6e6ff2fa7e20ee
-SHA1 (patch-Xbr_XbrMenu.c) = 193673bed0d88510331bb466c1cef24840aded36
+SHA1 (patch-Xbr_XbrMenu.c) = b6af1fe9a94999ff1a28133a6c3378d6efff3746
 SHA1 (patch-common_ascii.c) = 45c8d20e0e7557ff16e7984c1b18fd909c573858
-SHA1 (patch-common_file.c) = 959078bb12666c2f9970644e5f23f054abb3ae81
+SHA1 (patch-common_env.c) = 1fe7f8fd523faba3e45193d9dacea2d59874c252
+SHA1 (patch-common_file.c) = 8af8bf6cd79482cc5ac1d0c9df862e593ac7b054
 SHA1 (patch-common_magic.c) = 50b27640f9e913a32db499121c2dd1f990c60902
 SHA1 (patch-common_magic.h) = 23dacfc0d3dbbca9bdadeb1f6678cefec4c640fc
+SHA1 (patch-common_mkdirhier.c) = 91f116849c14dc5fd7eaef686bd6e58adef8340f
 SHA1 (patch-common_nums.c) = b71fbbb3f1a956155ad06fb394f18a53c6460093
-SHA1 (patch-common_pipe.c) = 827efb75e5c49808ffbcad6fa9bbea60c8666ec0
+SHA1 (patch-common_pipe.c) = 696e007302f0f8cfbc9d1395bd79f6575cceb250
 SHA1 (patch-common_regexpr.c) = 14ef6d96bb0f81fae929595204b4d3ac134e6d1c
 SHA1 (patch-common_str.c) = 9290827ba81b9255957a17c5df975036c1024365
-SHA1 (patch-common_tmpfile.c) = a8a5c1870fd200c437d97869fdb17e6fb65f058e
+SHA1 (patch-common_tmpfile.c) = a7dcac23b0adef061f65879978bdd9903c8f5d43
 SHA1 (patch-xtar.c) = 5b3eb5d2ee883efbd329f871f5f29189e9969072
diff -r bb3fd0553b86 -r cc693e7c0e90 x11/xtar/patches/patch-Xbr_XbrCB.c
--- a/x11/xtar/patches/patch-Xbr_XbrCB.c        Fri Jan 07 12:50:20 2022 +0000
+++ b/x11/xtar/patches/patch-Xbr_XbrCB.c        Fri Jan 07 13:02:31 2022 +0000
@@ -1,14 +1,15 @@
-$NetBSD: patch-Xbr_XbrCB.c,v 1.1 2022/01/07 12:43:14 nia Exp $
+$NetBSD: patch-Xbr_XbrCB.c,v 1.2 2022/01/07 13:02:31 nia Exp $
 
 - Fix implicit declaration warnings.
 
 --- Xbr/XbrCB.c.orig   1995-05-09 08:06:46.000000000 +0000
 +++ Xbr/XbrCB.c
-@@ -19,6 +19,7 @@
+@@ -19,6 +19,8 @@
   */
  
  #include <Xm/Xm.h>
 +#include <stdlib.h>
++#include <stdio.h>
  
  void XbrCBExitApplication(Widget, XtPointer, XtPointer);
  void XbrCBDestroyWidget(Widget, XtPointer, XtPointer);
diff -r bb3fd0553b86 -r cc693e7c0e90 x11/xtar/patches/patch-Xbr_XbrList.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xtar/patches/patch-Xbr_XbrList.c      Fri Jan 07 13:02:31 2022 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-Xbr_XbrList.c,v 1.1 2022/01/07 13:02:31 nia Exp $
+
+- Fix implicit declaration warnings.
+- Add missing argument to XmScrollBarSetValues.
+
+--- Xbr/XbrList.c.orig 1995-05-09 08:06:46.000000000 +0000
++++ Xbr/XbrList.c
+@@ -24,8 +24,10 @@
+  *
+  */
+ 
++#include <stdlib.h>
+ #include <Xm/Xm.h>
+ #include <Xm/List.h>
++#include <Xm/ScrollBar.h>
+ 
+ #include "XbrList.h"
+ 
+@@ -191,7 +193,7 @@ void XbrListTop(Widget w)
+     XmScrollBarGetValues(scrollbar, &value_return, &slider_size_return,
+       &increment_return, &page_increment_return);    
+     XmScrollBarSetValues(scrollbar, minimum, slider_size_return,
+-      increment_return, page_increment_return);    
++      increment_return, page_increment_return, 0);    
+ }
+ 
+ /*----------------------------------------------------------------------------
diff -r bb3fd0553b86 -r cc693e7c0e90 x11/xtar/patches/patch-Xbr_XbrMenu.c
--- a/x11/xtar/patches/patch-Xbr_XbrMenu.c      Fri Jan 07 12:50:20 2022 +0000
+++ b/x11/xtar/patches/patch-Xbr_XbrMenu.c      Fri Jan 07 13:02:31 2022 +0000
@@ -1,13 +1,14 @@
-$NetBSD: patch-Xbr_XbrMenu.c,v 1.1 2022/01/07 12:43:14 nia Exp $
+$NetBSD: patch-Xbr_XbrMenu.c,v 1.2 2022/01/07 13:02:31 nia Exp $
 
 - Fix implicit declaration warnings.
 
 --- Xbr/XbrMenu.c.orig 1995-05-09 08:06:47.000000000 +0000
 +++ Xbr/XbrMenu.c
-@@ -18,6 +18,7 @@
+@@ -18,6 +18,8 @@
   *
   */
  
++#include <stdio.h>
 +#include <stdlib.h>
  #include <Xm/Xm.h>
  #include <Xm/CascadeB.h>
diff -r bb3fd0553b86 -r cc693e7c0e90 x11/xtar/patches/patch-common_env.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xtar/patches/patch-common_env.c       Fri Jan 07 13:02:31 2022 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-common_env.c,v 1.1 2022/01/07 13:02:31 nia Exp $
+
+- Fix implicit declaration warnings.
+
+--- common/env.c.orig  1995-05-09 08:06:46.000000000 +0000
++++ common/env.c
+@@ -27,6 +27,7 @@
+ #include <sys/param.h>
+ #include <sys/utsname.h>
+ 
++#include "file.h"
+ #include "env.h"
+ 
+ int env_osrelease();
diff -r bb3fd0553b86 -r cc693e7c0e90 x11/xtar/patches/patch-common_file.c
--- a/x11/xtar/patches/patch-common_file.c      Fri Jan 07 12:50:20 2022 +0000
+++ b/x11/xtar/patches/patch-common_file.c      Fri Jan 07 13:02:31 2022 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-common_file.c,v 1.1 2022/01/07 12:43:14 nia Exp $
+$NetBSD: patch-common_file.c,v 1.2 2022/01/07 13:02:31 nia Exp $
 
 - Fix implicit declaration warnings.
 
 --- common/file.c.orig 1995-05-09 08:06:46.000000000 +0000
 +++ common/file.c
-@@ -22,7 +22,9 @@
+@@ -22,10 +22,13 @@
  #include <sys/stat.h>
  #include <sys/time.h>
  #include <stdio.h>
@@ -14,3 +14,7 @@
  #include <utime.h>
  #include <time.h>
  
++#include "env.h"
+ #include "stat.h"             /* We use stat_size()           */
+ #include "fname.h"
+ #include "magic.h"
diff -r bb3fd0553b86 -r cc693e7c0e90 x11/xtar/patches/patch-common_mkdirhier.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xtar/patches/patch-common_mkdirhier.c Fri Jan 07 13:02:31 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-common_mkdirhier.c,v 1.1 2022/01/07 13:02:31 nia Exp $
+
+- Fix implicit declaration warnings.
+
+--- common/mkdirhier.c.orig    1995-05-09 08:06:46.000000000 +0000
++++ common/mkdirhier.c
+@@ -24,7 +24,9 @@
+ #include <string.h>
+ #include <sys/stat.h>
+ 
++#include "file.h"
+ #include "fname.h"
++#include "stat.h"
+ 
+ int mkdirhier(char *, mode_t);
+ 
diff -r bb3fd0553b86 -r cc693e7c0e90 x11/xtar/patches/patch-common_pipe.c
--- a/x11/xtar/patches/patch-common_pipe.c      Fri Jan 07 12:50:20 2022 +0000
+++ b/x11/xtar/patches/patch-common_pipe.c      Fri Jan 07 13:02:31 2022 +0000
@@ -1,13 +1,14 @@
-$NetBSD: patch-common_pipe.c,v 1.1 2022/01/07 12:43:14 nia Exp $
+$NetBSD: patch-common_pipe.c,v 1.2 2022/01/07 13:02:31 nia Exp $
 
 - Fix implicit declaration warnings.
 
 --- common/pipe.c.orig 1995-05-09 08:06:46.000000000 +0000
 +++ common/pipe.c
-@@ -23,7 +23,9 @@
+@@ -23,7 +23,10 @@
  
  #include <errno.h>
  #include <stdio.h>
++#include <stdlib.h>
 +#include <string.h>
  #include <fcntl.h>
 +#include <unistd.h>
diff -r bb3fd0553b86 -r cc693e7c0e90 x11/xtar/patches/patch-common_tmpfile.c
--- a/x11/xtar/patches/patch-common_tmpfile.c   Fri Jan 07 12:50:20 2022 +0000
+++ b/x11/xtar/patches/patch-common_tmpfile.c   Fri Jan 07 13:02:31 2022 +0000
@@ -1,14 +1,15 @@
-$NetBSD: patch-common_tmpfile.c,v 1.1 2022/01/07 12:43:14 nia Exp $
+$NetBSD: patch-common_tmpfile.c,v 1.2 2022/01/07 13:02:31 nia Exp $
 
 - Fix implicit declaration warnings.
 
 --- common/tmpfile.c.orig      1995-05-09 08:06:46.000000000 +0000
 +++ common/tmpfile.c
-@@ -21,6 +21,7 @@
+@@ -21,6 +21,8 @@
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
 +#include <unistd.h>
++#include "file.h"
  
  /* Data structure describing a temporary file */
  typedef struct tmp_struct {



Home | Main Index | Thread Index | Old Index