On 2026/10/22 12:25, Marc Espie wrote:
> ++mode_t _permit_setuigid = S_ISGID;

typo here, I've fixed it and added a comment that we've got in
other ports, committed this:

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/nethack/5.0/Makefile,v
diff -u -p -r1.2 -r1.3
--- Makefile    12 Jul 2026 22:42:45 -0000      1.2
+++ Makefile    22 Oct 2026 10:41:18 -0000      1.3
@@ -7,6 +7,7 @@ PKGNAME =       ${DISTNAME}
 CATEGORIES =   games
 SITES =                https://www.nethack.org/download/$V/
 DISTFILES =    nethack-${V:S/.//g}-src.tgz
+REVISION =     0
 
 HOMEPAGE =     http://nethack.org/
 
Index: patches/patch-src_files_c
===================================================================
RCS file: /cvs/ports/games/nethack/5.0/patches/patch-src_files_c,v
diff -u -p -r1.1.1.1 -r1.2
--- patches/patch-src_files_c   30 Jun 2026 14:59:13 -0000      1.1.1.1
+++ patches/patch-src_files_c   22 Oct 2026 10:41:18 -0000      1.2
@@ -1,7 +1,20 @@
 Index: src/files.c
 --- src/files.c.orig
 +++ src/files.c
-@@ -1691,8 +1691,10 @@ docompress_file(const char *filename, boolean uncomp)
+@@ -194,6 +194,12 @@ staticfn FILE *fopen_sym_file(void);
+ staticfn NHFILE *viable_nhfile(NHFILE *);
+ #endif /* !SFCTOOL */
+ 
++#ifdef __OpenBSD__
++#include <sys/stat.h>
++/* OpenBSD: set[ug]id binary MUST say so in this var */
++mode_t _permit_setugid = S_ISGID;
++#endif
++
+ /* return a file's name without its path and optionally trailing 'type' */
+ const char *
+ nh_basename(const char *fname, boolean keep_suffix)
+@@ -1691,8 +1697,10 @@ docompress_file(const char *filename, boolean uncomp)
              redirect(filename, RDBMODE, stdin, uncomp);
              redirect(cfn, WRBMODE, stdout, uncomp);
          }
Index: patches/patch-util_recover_c
===================================================================
RCS file: patches/patch-util_recover_c
diff -N patches/patch-util_recover_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-util_recover_c        22 Oct 2026 10:41:18 -0000      1.1
@@ -0,0 +1,16 @@
+Index: util/recover.c
+--- util/recover.c.orig
++++ util/recover.c
+@@ -62,6 +62,12 @@ char *exepath(char *);
+ extern unsigned _stklen = STKSIZ;
+ #endif
+ 
++#ifdef __OpenBSD__
++#include <sys/stat.h>
++/* OpenBSD: set[ug]id binary MUST say so in this var */
++mode_t _permit_setugid = S_ISGID;
++#endif
++
+ /* SAVESIZE is defined in "fnamesiz.h" */
+ char savename[SAVESIZE]; /* holds relative path of save file from playground 
*/
+ 

Reply via email to