Index | Thread | Search

From:
Marc Espie <marc.espie.openbsd@gmail.com>
Subject:
fixes for xanim and clang22
To:
ports@openbsd.org
Date:
Sun, 7 Jun 2026 19:20:34 +0200

Download raw body.

Thread
  • Marc Espie:

    fixes for xanim and clang22

With this patch it builds.

I've been able to show at least one old style anim file

(see the zip file at
https://www.randelshofer.ch/animations/anims/eric_w_schwartz/Aerotoons.anim.html
)


though it seems it has issues with quite a few of them (can't read cmap from
IFF file... might be some alignment issue)


Index: Makefile
===================================================================
RCS file: /build/data/openbsd/cvs/ports/graphics/xanim/Makefile,v
diff -u -p -r1.42 Makefile
--- Makefile	26 Sep 2023 11:39:11 -0000	1.42
+++ Makefile	7 Jun 2026 17:18:13 -0000
@@ -1,7 +1,7 @@
 COMMENT =	X11 player for the old ANIM format
 
 DISTNAME =	xanim-2.80.1
-REVISION =	9
+REVISION =	10
 WRKDIST =	${WRKDIR}/xanim2801
 CATEGORIES =	graphics x11
 
Index: patches/patch-xa_x11_c
===================================================================
RCS file: /build/data/openbsd/cvs/ports/graphics/xanim/patches/patch-xa_x11_c,v
diff -u -p -r1.2 patch-xa_x11_c
--- patches/patch-xa_x11_c	11 Mar 2022 19:23:31 -0000	1.2
+++ patches/patch-xa_x11_c	7 Jun 2026 17:15:26 -0000
@@ -6,7 +6,7 @@ Index: xa_x11.c
  		    PropModeReplace, (unsigned char *)command, 1);
      if (xa_window_prepare_flag == xaFALSE)
 -      xanim_expose(theWG, event, NULL, 0);
-+      xanim_expose(theWG, &event, NULL, 0);
++      xanim_expose(theWG, (XExposeEvent *)&event, NULL, 0);
      while (1)
      {
        XtAppNextEvent(theContext, &event);
@@ -16,7 +16,7 @@ Index: xa_x11.c
  	    if (xa_anim_status == XA_UNSTARTED) 
 -	      xanim_expose(theWG, event, NULL, 0);
 -	    else xanim_toggle_action(theWG, event, NULL, 0);
-+	      xanim_expose(theWG, &event, NULL, 0);
++	      xanim_expose(theWG, (XExposeEvent *)&event, NULL, 0);
 +	    else xanim_toggle_action(theWG, &event, NULL, 0);
  	    break;
  	  case ',':
@@ -82,7 +82,7 @@ Index: xa_x11.c
  	    break;
  	  case 'z':
 -	    xanim_realize_remote(theWG, event, NULL, 0);
-+	    xanim_realize_remote(theWG, &event, NULL, 0);
++	    xanim_realize_remote(theWG, (XExposeEvent *)&event, NULL, 0);
  	    break;
  	  case 'e':
  	    x11_expose_flag = xaTRUE;