CVS commit: pkgsrc/devel/asl

"Havard Eidnes" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.cvs
Message-ID <[email protected]>
Module Name:	pkgsrc
Committed By:	he
Date:		Sun Aug 23 20:34:39 UTC 2026

Modified Files:
	pkgsrc/devel/asl: distinfo
Added Files:
	pkgsrc/devel/asl/patches: patch-sysdefs.h

Log Message:
devel/asl: add portability to our powerpc ports.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/asl/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/asl/patches/patch-sysdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(unnamed) (text/x-diff, 2.4 KB)
Modified files:

Index: pkgsrc/devel/asl/distinfo
diff -u pkgsrc/devel/asl/distinfo:1.2 pkgsrc/devel/asl/distinfo:1.3
--- pkgsrc/devel/asl/distinfo:1.2	Mon Sep 22 15:06:26 2025
+++ pkgsrc/devel/asl/distinfo	Sun Aug 23 20:34:39 2026
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2025/09/22 15:06:26 hauke Exp $
+$NetBSD: distinfo,v 1.3 2026/08/23 20:34:39 he Exp $
 
 BLAKE2s (asl-current-142-bld294.tar.gz) = c0daeb2d7b4af907f4743f7669e457a9304dc132d9fe7e90f16b5a35e2543963
 SHA512 (asl-current-142-bld294.tar.gz) = fc5698dad38bd3df60f1b9da92422b17221d17347c14164a232757ad11ec71f99f5b0df05faaed486cec5d5f7d8703f0354f8832faf8e3ab7769132378e7d7fb
 Size (asl-current-142-bld294.tar.gz) = 3439693 bytes
 SHA1 (patch-Makefile) = 659a42c6045521f24de776c9f60f6223a075ddf5
 SHA1 (patch-install.sh) = f3d3e5d095646d789237c8b9f8c7212733510404
+SHA1 (patch-sysdefs.h) = dc76c0074f3d76472597f0d28b9bc9b8053fdc86

Added files:

Index: pkgsrc/devel/asl/patches/patch-sysdefs.h
diff -u /dev/null pkgsrc/devel/asl/patches/patch-sysdefs.h:1.1
--- /dev/null	Sun Aug 23 20:34:39 2026
+++ pkgsrc/devel/asl/patches/patch-sysdefs.h	Sun Aug 23 20:34:39 2026
@@ -0,0 +1,46 @@
+$NetBSD: patch-sysdefs.h,v 1.1 2026/08/23 20:34:39 he Exp $
+
+Provide portability to the NetBSD PowerPC ports.
+
+--- sysdefs.h.orig	2026-08-23 20:15:04.141222279 +0000
++++ sysdefs.h
+@@ -138,7 +138,7 @@ typedef unsigned int as_uint32_t;
+ /*---------------------------------------------------------------------------*/
+ /* ditto for PPC platforms */
+ 
+-#ifdef __PPC
++#if defined(__PPC) || defined(_ARCH_PPC)
+ # ifndef _POWER
+ #  define _POWER
+ # endif
+@@ -674,6 +674,30 @@ typedef unsigned int as_uint32_t;
+ #endif
+ 
+ /*---------------------------------------------------------------------------*/
++/* POWER with NetBSD */
++
++#ifdef __NetBSD__
++#define ARCHSYSNAME "NetBSD-ppc"
++#define DEFSMADE
++#define OPENRDMODE "r" 
++#define OPENWRMODE "w"
++#define OPENUPMODE "r+"
++#define IEEEFLOAT_8_DOUBLE
++typedef signed char as_int8_t;
++typedef unsigned char as_uint8_t;
++typedef signed short as_int16_t;
++typedef unsigned short as_uint16_t;
++#define HAS16
++typedef signed int as_int32_t;
++#define PRIas_int32_t "d"
++typedef unsigned int as_uint32_t;
++#undef AS_HAS_LONGLONG
++#define AS_HAS_LONGLONG 1
++#define AS_64_IS_LONGLONG 1
++#define LOCALE_NLS
++#endif
++
++/*---------------------------------------------------------------------------*/
+ /* POWER with Linux (Macintosh) */
+ 
+ #ifdef __linux__
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.