Index | Thread | Search

From:
Thomas Frohwein <tfrohwein@fastmail.com>
Subject:
Re: amd64 build failures 2026-05-30
To:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
ports@openbsd.org, Marc Espie <espie@openbsd.org>, marc.espie.openbsd@gmail.com
Date:
Sun, 31 May 2026 16:18:24 -0700

Download raw body.

Thread
  • Thomas Frohwein:

    amd64 build failures 2026-05-30

  • Thomas Frohwein:

    amd64 build failures 2026-05-30

  • On Sun, 31 May 2026 19:15:57 +0200
    Christian Weisgerber <naddy@mips.inka.de> wrote:
    
    > http://build-failures.rhaalovely.net/amd64/2026-05-30/
    
    [...]
    
    > games/falconseye                    espie@
    
    Diff below fixes the build. I'm not sure what's up with runtime - I get
    nethack in the terminal and the separate GUI window stays blank. I
    doubt that's related to the diff below though, so would still advocate
    that we fix the build.
    
    Index: Makefile
    ===================================================================
    RCS file: /cvs/ports/games/falconseye/Makefile,v
    diff -u -p -r1.35 Makefile
    --- Makefile	7 Nov 2023 14:19:29 -0000	1.35
    +++ Makefile	31 May 2026 23:00:38 -0000
    @@ -3,7 +3,7 @@ COMMENT =	NetHack derivative
     VERSION =	1.9.3
     DISTNAME =	nethack_source_331_jtp_${VERSION:S/.//g}
     PKGNAME =	falconseye-${VERSION}
    -REVISION =	10
    +REVISION =	11
     CATEGORIES =	games x11
     EXTRACT_SUFX =	.zip
     
    Index: patches/patch-src_hacklib_c
    ===================================================================
    RCS file: patches/patch-src_hacklib_c
    diff -N patches/patch-src_hacklib_c
    --- /dev/null	1 Jan 1970 00:00:00 -0000
    +++ patches/patch-src_hacklib_c	31 May 2026 23:00:38 -0000
    @@ -0,0 +1,38 @@
    +fix pointer types for build with llvm22
    +
    +Index: src/hacklib.c
    +--- src/hacklib.c.orig
    ++++ src/hacklib.c
    +@@ -448,7 +448,7 @@ setrandom()
    + #   if defined(SUNOS4)
    + 	(void)
    + #   endif
    +-		srandom((int) time((long *)0));
    ++		srandom((int) time((long long *)0));
    + #  else
    + 		srandom((int) time((time_t *)0));
    + #  endif
    +@@ -468,12 +468,12 @@ getlt()
    + 	time_t date;
    + 
    + #ifdef BSD
    +-	(void) time((long *)(&date));
    ++	(void) time((long long *)(&date));
    + #else
    + 	(void) time(&date);
    + #endif
    + #if (defined(ULTRIX) && !(defined(ULTRIX_PROTO) || defined(NHSTDC))) || defined(BSD)
    +-	return(localtime((long *)(&date)));
    ++	return(localtime((long long *)(&date)));
    + #else
    + 	return(localtime(&date));
    + #endif
    +@@ -520,7 +520,7 @@ time_t date;
    + 		lt = getlt();
    + 	else
    + #if (defined(ULTRIX) && !(defined(ULTRIX_PROTO) || defined(NHSTDC))) || defined(BSD)
    +-		lt = localtime((long *)(&date));
    ++		lt = localtime((long long *)(&date));
    + #else
    + 		lt = localtime(&date);
    + #endif
    Index: patches/patch-src_u_init_c
    ===================================================================
    RCS file: patches/patch-src_u_init_c
    diff -N patches/patch-src_u_init_c
    --- /dev/null	1 Jan 1970 00:00:00 -0000
    +++ patches/patch-src_u_init_c	31 May 2026 23:00:38 -0000
    @@ -0,0 +1,14 @@
    +fix pointer types for build with llvm22
    +
    +Index: src/u_init.c
    +--- src/u_init.c.orig
    ++++ src/u_init.c
    +@@ -577,7 +577,7 @@ u_init()
    + 	u.ulycn = NON_PM;
    + 
    + #ifdef BSD
    +-	(void) time((long *)&u.ubirthday);
    ++	(void) time((long long *)&u.ubirthday);
    + #else
    + 	(void) time(&u.ubirthday);
    + #endif
    Index: patches/patch-sys_unix_unixunix_c
    ===================================================================
    RCS file: /cvs/ports/games/falconseye/patches/patch-sys_unix_unixunix_c,v
    diff -u -p -r1.2 patch-sys_unix_unixunix_c
    --- patches/patch-sys_unix_unixunix_c	11 Mar 2022 19:04:20 -0000	1.2
    +++ patches/patch-sys_unix_unixunix_c	31 May 2026 23:00:39 -0000
    @@ -1,5 +1,8 @@
    ---- sys/unix/unixunix.c.orig	Sun Jun 24 18:57:24 2001
    -+++ sys/unix/unixunix.c	Wed Jul  4 11:23:29 2001
    +fix pointer types for build with llvm22
    +
    +Index: sys/unix/unixunix.c
    +--- sys/unix/unixunix.c.orig
    ++++ sys/unix/unixunix.c
     @@ -42,7 +42,9 @@ gethdate(name)
       * does not exist on all systems, and moreover, that it sometimes includes
       * <sys/types.h> again, so that the compiler sees these typedefs twice.
    @@ -10,3 +13,12 @@
      
      	register const char *np, *path;
      	char filename[MAXPATHLEN+1];
    +@@ -120,7 +122,7 @@ int fd;
    + 	if(buf.st_size != sizeof(int)) return(0);	/* not an xlock file */
    + #endif
    + #ifdef BSD
    +-	(void) time((long *)(&date));
    ++	(void) time((long long *)(&date));
    + #else
    + 	(void) time(&date);
    + #endif
    
    
  • Thomas Frohwein:

    amd64 build failures 2026-05-30

  • Thomas Frohwein:

    amd64 build failures 2026-05-30