pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/bsdinstall



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Fri Jan  6 14:21:17 UTC 2023

Modified Files:
        pkgsrc/sysutils/bsdinstall/files: bsdinstall.c
Removed Files:
        pkgsrc/sysutils/bsdinstall: distinfo
        pkgsrc/sysutils/bsdinstall/patches: patch-bsdinstall.c

Log Message:
bsdinstall: Apply patch directly to sources.

Packages that have unpacked sources that are in the bootstrap path must never
have patches as it causes bootstrap issues with requiring digest and nbpatch.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 pkgsrc/sysutils/bsdinstall/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/sysutils/bsdinstall/files/bsdinstall.c
cvs rdiff -u -r1.1 -r0 pkgsrc/sysutils/bsdinstall/patches/patch-bsdinstall.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/bsdinstall/files/bsdinstall.c
diff -u pkgsrc/sysutils/bsdinstall/files/bsdinstall.c:1.3 pkgsrc/sysutils/bsdinstall/files/bsdinstall.c:1.4
--- pkgsrc/sysutils/bsdinstall/files/bsdinstall.c:1.3   Wed Nov 18 12:12:49 2015
+++ pkgsrc/sysutils/bsdinstall/files/bsdinstall.c       Fri Jan  6 14:21:16 2023
@@ -1,4 +1,4 @@
-/*     $NetBSD: bsdinstall.c,v 1.3 2015/11/18 12:12:49 jperkin Exp $   */
+/*     $NetBSD: bsdinstall.c,v 1.4 2023/01/06 14:21:16 jperkin Exp $   */
 /*     NetBSD: xinstall.c,v 1.114 2009/11/12 10:10:49 tron Exp */
 
 /*
@@ -73,9 +73,9 @@ __RCSID("NetBSD: xinstall.c,v 1.114 2009
 #include <fcntl.h>
 #include <libgen.h>
 #include <stdio.h>
-#include <string.h>
-#include <unistd.h>
 #if defined(HAVE_NBCOMPAT_H)
+#include <nbcompat/string.h>
+#include <nbcompat/unistd.h>
 #include <nbcompat/grp.h>
 #include <nbcompat/paths.h>
 #include <nbcompat/pwd.h>
@@ -83,6 +83,8 @@ __RCSID("NetBSD: xinstall.c,v 1.114 2009
 #include <nbcompat/util.h>
 #include <nbcompat/vis.h>
 #else
+#include <string.h>
+#include <unistd.h>
 #include <grp.h>
 #include <paths.h>
 #include <pwd.h>
@@ -110,6 +112,10 @@ __RCSID("NetBSD: xinstall.c,v 1.114 2009
 #define STRIP_ARGS_MAX 32
 #define BACKUP_SUFFIX ".old"
 
+#ifndef MAXBSIZE
+#define MAXBSIZE (64 * 1024)
+#endif
+
 extern void *setmode(const char *p);
 
 static int     dobackup, dodir, dostrip, dolink, dopreserve, dorename, dounpriv;



Home | Main Index | Thread Index | Old Index