pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/samba
Module Name: pkgsrc
Committed By: rjs
Date: Tue Jul 21 21:17:40 UTC 2026
Modified Files:
pkgsrc/net/samba: distinfo
pkgsrc/net/samba/patches: patch-af
Added Files:
pkgsrc/net/samba/patches: patch-include_proto.h
patch-lib_replace_test_strptime.c patch-lib_util__sec.c
patch-smbd_password.c patch-tests_ftruncate.c
patch-tests_getgroups.c patch-tests_readlink.c
patch-tests_shared__mmap.c patch-tests_summary.c
patch-tests_trivial.c
Log Message:
net/samba: Make it build on NetBSD-current.
Fixes PR pkg/60070.
To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 pkgsrc/net/samba/distinfo
cvs rdiff -u -r1.13 -r1.14 pkgsrc/net/samba/patches/patch-af
cvs rdiff -u -r0 -r1.1 pkgsrc/net/samba/patches/patch-include_proto.h \
pkgsrc/net/samba/patches/patch-lib_replace_test_strptime.c \
pkgsrc/net/samba/patches/patch-lib_util__sec.c \
pkgsrc/net/samba/patches/patch-smbd_password.c \
pkgsrc/net/samba/patches/patch-tests_ftruncate.c \
pkgsrc/net/samba/patches/patch-tests_getgroups.c \
pkgsrc/net/samba/patches/patch-tests_readlink.c \
pkgsrc/net/samba/patches/patch-tests_shared__mmap.c \
pkgsrc/net/samba/patches/patch-tests_summary.c \
pkgsrc/net/samba/patches/patch-tests_trivial.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/samba/distinfo
diff -u pkgsrc/net/samba/distinfo:1.108 pkgsrc/net/samba/distinfo:1.109
--- pkgsrc/net/samba/distinfo:1.108 Tue Oct 26 11:06:54 2021
+++ pkgsrc/net/samba/distinfo Tue Jul 21 21:17:39 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.108 2021/10/26 11:06:54 nia Exp $
+$NetBSD: distinfo,v 1.109 2026/07/21 21:17:39 rjs Exp $
BLAKE2s (samba-3.6.25.tar.gz) = efd22cae10ddacdebdcf088dd5f58d298f15b0ec31ad13674bcfb9d5e568b003
SHA512 (samba-3.6.25.tar.gz) = 25a5c56dae4517e82e196b59fa301b661ec75db57effbb0ede35fb23b018f78cdea6513e8760966caf58abc43335fcebda77fe5bf5bb9d4b27fd3ca6e5a3b626
@@ -8,7 +8,7 @@ SHA1 (patch-ab) = eb680f72ab0118e57d1b32
SHA1 (patch-ac) = 25edbd616199b7dcb41f87aa1374d0bdf19cafec
SHA1 (patch-ad) = 750b0c08d9975a257bec09088cb38414a1299070
SHA1 (patch-ae) = de70580b293f4b964bc39b95c6a27511faaf088a
-SHA1 (patch-af) = 380980f6c7d3f9ca6b472cfd2142d6d8bdb0f390
+SHA1 (patch-af) = c538460a2911ed8ef0445c8ec23f1b06aa6ccf5d
SHA1 (patch-ag) = d84aeab73f22e372f0d275276f4a1160b240199c
SHA1 (patch-ah) = d4dc5c01fae6b72fb8902b32c0c5b668a918ce49
SHA1 (patch-ai) = 2161f55d4f1ffe13fa24387349bb9ac71dae5521
@@ -30,6 +30,16 @@ SHA1 (patch-bd) = b78324305bbf67fa4a7dd6
SHA1 (patch-be) = 2b298e596f2f57a595b83619ba68f6ad95febaaa
SHA1 (patch-bf) = 19932332d11ce447293b061cd47506fef3d01853
SHA1 (patch-eg) = af5ebab1c8e183020bb9a5914d0a218ad91d1a0b
+SHA1 (patch-include_proto.h) = 3652c89b6fe6d278d5221d54956ca07cb9179478
SHA1 (patch-lib_crypto_sha256.h) = f4bd82ba7e63d078543e388621bf30f6f31e0d18
+SHA1 (patch-lib_replace_test_strptime.c) = 7bf743bbb43ef4f0d85dc397d393f27c990f1f09
+SHA1 (patch-lib_util__sec.c) = 784bbb55fd95f452742a66d7759dc98b43e7feac
SHA1 (patch-smbd_notify__inotify.c) = b950f16f4284e1bc4096c10c24a490e5b2b66915
+SHA1 (patch-smbd_password.c) = a5f23b32629e3b6aa75eba4fba745ba091eb5b7e
SHA1 (patch-source3_rpc__server_srv__pipe.c) = dcf7dbce59de071d1d6f574cdba0f9e0231be2c3
+SHA1 (patch-tests_ftruncate.c) = c4539f7fc48557dd03ec39e675a6291c34def804
+SHA1 (patch-tests_getgroups.c) = 658c21f1e4c081518f00a83a5715b5eb7dccbd40
+SHA1 (patch-tests_readlink.c) = eda5f90b324dd0f7e9a85c88bd3a42fb9b4f3453
+SHA1 (patch-tests_shared__mmap.c) = 25fb03962e4a29a08db04b0608910207e2ced7c0
+SHA1 (patch-tests_summary.c) = 2d192e27bb0f8e1d573d6cfd85f5399893605abd
+SHA1 (patch-tests_trivial.c) = 2c2b08e7889303862bdbb0e3ed93433a3692965e
Index: pkgsrc/net/samba/patches/patch-af
diff -u pkgsrc/net/samba/patches/patch-af:1.13 pkgsrc/net/samba/patches/patch-af:1.14
--- pkgsrc/net/samba/patches/patch-af:1.13 Mon Feb 29 17:13:06 2016
+++ pkgsrc/net/samba/patches/patch-af Tue Jul 21 21:17:39 2026
@@ -1,10 +1,84 @@
-$NetBSD: patch-af,v 1.13 2016/02/29 17:13:06 jperkin Exp $
+$NetBSD: patch-af,v 1.14 2026/07/21 21:17:39 rjs Exp $
Fix HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS test, from upstream.
--- configure.orig 2015-02-22 14:16:23.000000000 +0000
+++ configure
-@@ -15277,20 +15277,24 @@ else
+@@ -9545,6 +9545,7 @@ else
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
++int
+ main() {
+ struct stat st;
+ char tpl[20]="/tmp/test.XXXXXX";
+@@ -9657,6 +9658,7 @@ else
+ #include <stdio.h>
+ #include <stdarg.h>
+ #include <stdlib.h>
++#include <string.h>
+ void foo(const char *format, ...) {
+ va_list ap;
+ int len;
+@@ -9683,6 +9685,7 @@ void foo(const char *format, ...) {
+
+ exit(0);
+ }
++int
+ main() { foo("hello"); }
+
+ _ACEOF
+@@ -10366,7 +10369,8 @@ else
+
+ #include <sys/time.h>
+ #include <unistd.h>
+-main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
++#include <stdlib.h>
++int main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+ libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes
+@@ -11283,6 +11287,7 @@ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
++ #include <sys/stat.h>
+ #include <stdio.h>
+ #ifdef HAVE_DIRECT_H
+ #include <direct.h>
+@@ -11430,7 +11435,7 @@ else
+
+ #include <dirent.h>
+
+- long telldir(const DIR *dir)
++ long telldir(DIR *dir)
+ {
+
+ return 0;
+@@ -13156,12 +13161,14 @@ else
+ /* end confdefs.h. */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <netinet/in.h>
+ #ifdef HAVE_ARPA_INET_H
+ #include <arpa/inet.h>
+ #endif
++int
+ main() { struct in_addr ip; ip.s_addr = 0x12345678;
+ if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
+ strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
+@@ -13715,6 +13722,7 @@ else
+ #include <stdlib.h> /* for NULL */
+ #include <sys/socket.h>
+ #include <sys/types.h>
++#include <net/if.h>
+ #include <netdb.h>
+ #include <netinet/in.h>
+
+@@ -15277,20 +15285,24 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -12,13 +86,6 @@ Fix HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
-int
-main ()
-{
--
-- if (0) {
-- this_function_does_not_exist();
-- } else {
-- return 1;
-- }
--
+#include <sys/types.h>
+size_t __unsafe_string_function_usage_here_size_t__(void);
+#define CHECK_STRING_SIZE(d, len) (sizeof(d) != (len) && sizeof(d) != sizeof(char *))
@@ -26,13 +93,19 @@ Fix HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
+ return 0;
+}
-- ;
-- return 0;
+- if (0) {
+- this_function_does_not_exist();
+- } else {
+- return 1;
+- }
+#define push_string_check(dest, src, dest_len) \
+ (CHECK_STRING_SIZE(dest, dest_len) \
+ ? __unsafe_string_function_usage_here_size_t__() \
+ : push_string_check_fn(dest, src, dest_len))
-+
+
+-
+- ;
+- return 0;
+int main(int argc, char **argv) {
+ char outbuf[1024];
+ char *p = outbuf;
@@ -42,7 +115,35 @@ Fix HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
-@@ -19513,6 +19517,7 @@ $as_echo "#define DARWINOS 1" >>confdefs
+@@ -15487,7 +15499,9 @@ else
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
++#include <stdlib.h>
+ #include <errno.h>
++int
+ main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -15522,7 +15536,9 @@ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include <unistd.h>
++#include <stdlib.h>
+ #include <errno.h>
++int
+ main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -19133,6 +19149,7 @@ int foo;
+
+ cat > conftest.c <<EOF
+ int foo;
++int
+ main () { return 0;}
+ EOF
+ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Wl,-z,relro -o conftest conftest.c 1>&5'
+@@ -19513,6 +19530,7 @@ $as_echo "#define DARWINOS 1" >>confdefs.h
BLDSHARED="true"
LDSHFLAGS="-dynamiclib -flat_namespace -undefined suppress"
@@ -50,7 +151,7 @@ Fix HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
CFLAGS="$CFLAGS -fno-common"
SHLD="\${CC}"
SHLIBEXT="dylib"
-@@ -19562,7 +19567,7 @@ fi
+@@ -19562,7 +19580,7 @@ if test "x$enable_as_needed" != xno; then
if test "x$enable_as_needed" != xno; then
saved_before_as_needed_ldflags="$LDFLAGS"
@@ -59,7 +160,219 @@ Fix HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
saved_ldflags="$LDFLAGS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $flags works" >&5
$as_echo_n "checking if $flags works... " >&6; }
-@@ -26638,9 +26643,9 @@ LIBS="-lcrypto $KRB5_LIBS $LIBS"
+@@ -21446,6 +21464,8 @@ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include <stdio.h>
++#include <stdlib.h>
++int
+ main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -21537,7 +21557,9 @@ else
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
++#include <stdlib.h>
+ #include <time.h>
++int
+ main() { exit((sizeof(time_t) == 8) ? 0 : 1); }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -21569,7 +21591,9 @@ else
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
++#include <stdlib.h>
+ #include <time.h>
++int
+ main() {
+ struct tm *tm;
+ if (sizeof(time_t) == 8) {
+@@ -21619,7 +21643,9 @@ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/stat.h>
++int
+ main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -21656,7 +21682,9 @@ else
+ #include <unistd.h>
+ #endif
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/stat.h>
++int
+ main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -21693,7 +21721,9 @@ else
+ #include <unistd.h>
+ #endif
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/stat.h>
++int
+ main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -21730,7 +21760,9 @@ else
+ #include <unistd.h>
+ #endif
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/stat.h>
++int
+ main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -21767,7 +21799,9 @@ else
+ #include <unistd.h>
+ #endif
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/stat.h>
++int
+ main() { exit((sizeof(dev_t) == 8) ? 0 : 1); }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -21804,7 +21838,9 @@ else
+ #include <unistd.h>
+ #endif
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/stat.h>
++int
+ main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -21915,6 +21951,7 @@ else
+ #include <unistd.h>
+ #endif
+ #include <sys/types.h>
++int
+ main() { dev_t dev; int i = major(dev); return 0; }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -21951,6 +21988,7 @@ else
+ #include <unistd.h>
+ #endif
+ #include <sys/types.h>
++int
+ main() { dev_t dev; int i = minor(dev); return 0; }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -21987,6 +22025,7 @@ else
+ #include <unistd.h>
+ #endif
+ #include <sys/types.h>
++int
+ main() { dev_t dev = makedev(1,2); return 0; }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -22019,6 +22058,8 @@ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include <stdio.h>
++#include <stdlib.h>
++int
+ main() { char c; c=250; exit((c > 0)?0:1); }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -22121,7 +22162,9 @@ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include <sys/types.h>
++#include <stdlib.h>
+ #include <dirent.h>
++int
+ main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
+ if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
+ di->d_name[0] == 0) exit(0); exit(1);}
+@@ -22153,6 +22196,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include <sys/types.h>
++#include <stdlib.h>
+ #include <utime.h>
+ int
+ main ()
+@@ -22977,6 +23021,7 @@ else
+ /* end confdefs.h. */
+
+ #include <$jm_cv_include>
++int
+ main(){
+ iconv_t cd = iconv_open("$j", "UCS-2LE");
+ if (cd == 0 || cd == (iconv_t)-1) {
+@@ -23211,6 +23256,7 @@ else
+ #ifndef F_GETLEASE
+ #define F_GETLEASE 1025
+ #endif
++int
+ main() {
+ int fd = open("/dev/null", O_RDONLY);
+ return fcntl(fd, F_GETLEASE, 0) == -1;
+@@ -23248,11 +23294,13 @@ else
+ /* end confdefs.h. */
+
+ #include <sys/types.h>
++#include <stdlib.h>
+ #include <fcntl.h>
+ #include <signal.h>
+ #ifndef F_NOTIFY
+ #define F_NOTIFY 1026
+ #endif
++int
+ main() {
+ exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
+ }
+@@ -23880,6 +23928,7 @@ else
+ /* end confdefs.h. */
+
+ #include <sys/types.h>
++#include <stdlib.h>
+ #include <fcntl.h>
+ #include <signal.h>
+ #include <sys/file.h>
+@@ -23887,6 +23936,7 @@ else
+ #define LOCK_MAND 32
+ #define LOCK_READ 64
+ #endif
++int
+ main() {
+ exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
+ }
+@@ -24805,6 +24855,7 @@ else
+ #ifdef HAVE_SYS_FCNTL_H
+ #include <sys/fcntl.h>
+ #endif
++int
+ main() { struct flock64 fl64;
+ #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
+ exit(0);
+@@ -25049,7 +25100,9 @@ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
++#include <sys/param.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <limits.h>
+ #include <signal.h>
+
+@@ -25057,6 +25110,7 @@ void exit_on_core(int ignored) {
+ exit(1);
+ }
+
++int
+ main() {
+ char *newpath;
+ signal(SIGSEGV, exit_on_core);
+@@ -26638,9 +26692,9 @@ LIBS="-lcrypto $KRB5_LIBS $LIBS"
@@ -72,7 +385,7 @@ Fix HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-@@ -26652,31 +26657,31 @@ else
+@@ -26652,31 +26706,31 @@ extern "C"
#ifdef __cplusplus
extern "C"
#endif
@@ -112,7 +425,26 @@ Fix HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
_ACEOF
fi
-@@ -36049,31 +36054,39 @@ case "$host_os" in
+@@ -31438,6 +31492,7 @@ else
+ /* end confdefs.h. */
+
+ #include<krb5.h>
++ int
+ main()
+ {
+ krb5_context context;
+@@ -33596,8 +33651,10 @@ else
+ #if defined(HAVE_UNISTD_H)
+ #include <unistd.h>
+ #endif
++#include <stdlib.h>
+ #include <sys/types.h>
+ #include <sys/statvfs.h>
++ int
+ main ()
+ {
+ struct statvfs64 fsd;
+@@ -36049,32 +36106,40 @@ case "$host_os" in
NSSSONAMEVERSIONSUFFIX=".2"
WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_linux.o"
;;
@@ -150,7 +482,7 @@ Fix HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
- fi
+ ;;
+ esac
-+ ;;
+ ;;
+
+ *netbsd*)
+ case "$UNAME_R" in
@@ -171,6 +503,43 @@ Fix HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
+ fi
+ ;;
+ esac
- ;;
++ ;;
*irix*)
# IRIX has differently named shared libraries
+ WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_irix.o"
+@@ -37144,7 +37209,7 @@ main ()
+ int
+ main ()
+ {
+-char *dom, *user,*host; getnetgrent(&dom,&user,&host)
++const char *dom, *user,*host; getnetgrent(&dom,&user,&host)
+ ;
+ return 0;
+ }
+@@ -41513,6 +41578,26 @@ do
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
++ : Avoid regenerating within pkgsrc
++ exit 0
++ : Avoid regenerating within pkgsrc
++ exit 0
++ : Avoid regenerating within pkgsrc
++ exit 0
++ : Avoid regenerating within pkgsrc
++ exit 0
++ : Avoid regenerating within pkgsrc
++ exit 0
++ : Avoid regenerating within pkgsrc
++ exit 0
++ : Avoid regenerating within pkgsrc
++ exit 0
++ : Avoid regenerating within pkgsrc
++ exit 0
++ : Avoid regenerating within pkgsrc
++ exit 0
++ : Avoid regenerating within pkgsrc
++ exit 0
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ $as_echo "$ac_cs_version"; exit ;;
Added files:
Index: pkgsrc/net/samba/patches/patch-include_proto.h
diff -u /dev/null pkgsrc/net/samba/patches/patch-include_proto.h:1.1
--- /dev/null Tue Jul 21 21:17:40 2026
+++ pkgsrc/net/samba/patches/patch-include_proto.h Tue Jul 21 21:17:39 2026
@@ -0,0 +1,14 @@
+$NetBSD: patch-include_proto.h,v 1.1 2026/07/21 21:17:39 rjs Exp $
+
+Add prototype for lp_passwd_expand_gecos().
+
+--- include/proto.h.orig 2026-07-21 17:23:51.351631122 +0000
++++ include/proto.h
+@@ -1366,6 +1366,7 @@ char *lp_auto_services(void);
+ char *lp_get_quota_command(void);
+ char *lp_set_quota_command(void);
+ char *lp_auto_services(void);
++bool lp_passwd_expand_gecos(void);
+ char *lp_passwd_program(void);
+ char *lp_passwd_chat(void);
+ char *lp_passwordserver(void);
Index: pkgsrc/net/samba/patches/patch-lib_replace_test_strptime.c
diff -u /dev/null pkgsrc/net/samba/patches/patch-lib_replace_test_strptime.c:1.1
--- /dev/null Tue Jul 21 21:17:40 2026
+++ pkgsrc/net/samba/patches/patch-lib_replace_test_strptime.c Tue Jul 21 21:17:40 2026
@@ -0,0 +1,14 @@
+$NetBSD: patch-lib_replace_test_strptime.c,v 1.1 2026/07/21 21:17:40 rjs Exp $
+
+Add string.h.
+
+--- ../lib/replace/test/strptime.c.orig 2026-07-21 20:16:09.294482497 +0000
++++ ../lib/replace/test/strptime.c
+@@ -3,6 +3,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <time.h>
+
+ #define true 1
Index: pkgsrc/net/samba/patches/patch-lib_util__sec.c
diff -u /dev/null pkgsrc/net/samba/patches/patch-lib_util__sec.c:1.1
--- /dev/null Tue Jul 21 21:17:40 2026
+++ pkgsrc/net/samba/patches/patch-lib_util__sec.c Tue Jul 21 21:17:40 2026
@@ -0,0 +1,14 @@
+$NetBSD: patch-lib_util__sec.c,v 1.1 2026/07/21 21:17:40 rjs Exp $
+
+Add int return type for main().
+
+--- lib/util_sec.c.orig 2026-07-21 20:44:41.688810676 +0000
++++ lib/util_sec.c
+@@ -437,6 +437,7 @@ static int have_syscall(void)
+ return 0;
+ }
+
++int
+ main()
+ {
+ if (getuid() != 0) {
Index: pkgsrc/net/samba/patches/patch-smbd_password.c
diff -u /dev/null pkgsrc/net/samba/patches/patch-smbd_password.c:1.1
--- /dev/null Tue Jul 21 21:17:40 2026
+++ pkgsrc/net/samba/patches/patch-smbd_password.c Tue Jul 21 21:17:40 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-smbd_password.c,v 1.1 2026/07/21 21:17:40 rjs Exp $
+
+Arguments to getnetgrent(3) need to be const.
+
+--- smbd/password.c.orig 2026-07-21 17:35:29.458495371 +0000
++++ smbd/password.c
+@@ -487,7 +487,7 @@ static char *validate_group(struct smbd_server_connect
+ {
+ #ifdef HAVE_NETGROUP
+ {
+- char *host, *user, *domain;
++ const char *host, *user, *domain;
+ struct auth_context *actx = sconn->smb1.negprot.auth_context;
+ bool enc = sconn->smb1.negprot.encrypted_passwords;
+ setnetgrent(group);
Index: pkgsrc/net/samba/patches/patch-tests_ftruncate.c
diff -u /dev/null pkgsrc/net/samba/patches/patch-tests_ftruncate.c:1.1
--- /dev/null Tue Jul 21 21:17:40 2026
+++ pkgsrc/net/samba/patches/patch-tests_ftruncate.c Tue Jul 21 21:17:40 2026
@@ -0,0 +1,19 @@
+$NetBSD: patch-tests_ftruncate.c,v 1.1 2026/07/21 21:17:40 rjs Exp $
+
+Add int return type for main().
+
+--- ../tests/ftruncate.c.orig 2026-07-21 20:42:31.964579367 +0000
++++ ../tests/ftruncate.c
+@@ -7,10 +7,12 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
++#include <stdlib.h>
+
+ #define DATA "conftest.trunc"
+ #define LEN 7663
+
++int
+ main()
+ {
+ int *buf;
Index: pkgsrc/net/samba/patches/patch-tests_getgroups.c
diff -u /dev/null pkgsrc/net/samba/patches/patch-tests_getgroups.c:1.1
--- /dev/null Tue Jul 21 21:17:40 2026
+++ pkgsrc/net/samba/patches/patch-tests_getgroups.c Tue Jul 21 21:17:40 2026
@@ -0,0 +1,19 @@
+$NetBSD: patch-tests_getgroups.c,v 1.1 2026/07/21 21:17:40 rjs Exp $
+
+Add include of stdlib.h
+
+Add int return type for main().
+
+--- ../tests/getgroups.c.orig 2026-07-21 20:43:23.427431885 +0000
++++ ../tests/getgroups.c
+@@ -14,8 +14,10 @@
+ #include <sys/types.h>
+ #include <stdio.h>
+ #include <unistd.h>
++#include <stdlib.h>
+ #include <grp.h>
+
++int
+ main()
+ {
+ int i;
Index: pkgsrc/net/samba/patches/patch-tests_readlink.c
diff -u /dev/null pkgsrc/net/samba/patches/patch-tests_readlink.c:1.1
--- /dev/null Tue Jul 21 21:17:40 2026
+++ pkgsrc/net/samba/patches/patch-tests_readlink.c Tue Jul 21 21:17:40 2026
@@ -0,0 +1,21 @@
+$NetBSD: patch-tests_readlink.c,v 1.1 2026/07/21 21:17:40 rjs Exp $
+
+Add stdlib.h.
+
+Add int return type for main().
+
+--- ../tests/readlink.c.orig 2026-07-21 20:53:52.444069676 +0000
++++ ../tests/readlink.c
+@@ -7,10 +7,12 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
++#include <stdlib.h>
+
+ #define DATA "readlink.test"
+ #define FNAME "rdlnk.file"
+
++int
+ main()
+ {
+ char buf[7];
Index: pkgsrc/net/samba/patches/patch-tests_shared__mmap.c
diff -u /dev/null pkgsrc/net/samba/patches/patch-tests_shared__mmap.c:1.1
--- /dev/null Tue Jul 21 21:17:40 2026
+++ pkgsrc/net/samba/patches/patch-tests_shared__mmap.c Tue Jul 21 21:17:40 2026
@@ -0,0 +1,14 @@
+$NetBSD: patch-tests_shared__mmap.c,v 1.1 2026/07/21 21:17:40 rjs Exp $
+
+Add int return type for main().
+
+--- ../tests/shared_mmap.c.orig 2026-07-21 19:55:39.226204434 +0000
++++ ../tests/shared_mmap.c
+@@ -15,6 +15,7 @@
+ #define MAP_FILE 0
+ #endif
+
++int
+ main()
+ {
+ int *buf;
Index: pkgsrc/net/samba/patches/patch-tests_summary.c
diff -u /dev/null pkgsrc/net/samba/patches/patch-tests_summary.c:1.1
--- /dev/null Tue Jul 21 21:17:40 2026
+++ pkgsrc/net/samba/patches/patch-tests_summary.c Tue Jul 21 21:17:40 2026
@@ -0,0 +1,14 @@
+$NetBSD: patch-tests_summary.c,v 1.1 2026/07/21 21:17:40 rjs Exp $
+
+Add int return type for main().
+
+--- ../tests/summary.c.orig 2015-02-22 14:11:32.000000000 +0000
++++ ../tests/summary.c
+@@ -2,6 +2,7 @@ void exit(int);
+
+ void exit(int);
+
++int
+ main()
+ {
+ exit (0);
Index: pkgsrc/net/samba/patches/patch-tests_trivial.c
diff -u /dev/null pkgsrc/net/samba/patches/patch-tests_trivial.c:1.1
--- /dev/null Tue Jul 21 21:17:40 2026
+++ pkgsrc/net/samba/patches/patch-tests_trivial.c Tue Jul 21 21:17:40 2026
@@ -0,0 +1,14 @@
+$NetBSD: patch-tests_trivial.c,v 1.1 2026/07/21 21:17:40 rjs Exp $
+
+Add int return type for main().
+
+--- ../tests/trivial.c.orig 2015-02-22 14:11:32.000000000 +0000
++++ ../tests/trivial.c
+@@ -1,6 +1,7 @@ void exit(int);
+
+ void exit(int);
+
++int
+ main()
+ {
+ exit(0);
Home |
Main Index |
Thread Index |
Old Index