pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/audio/alsa-lib



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Mar 14 14:08:42 UTC 2022

Modified Files:
        pkgsrc/audio/alsa-lib: Makefile distinfo
        pkgsrc/audio/alsa-lib/patches: patch-include_sound_type__compat.h

Log Message:
alsa-lib: fix build on Solaris

>From Claes Nästén in PR 56749


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/audio/alsa-lib/Makefile
cvs rdiff -u -r1.35 -r1.36 pkgsrc/audio/alsa-lib/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/audio/alsa-lib/patches/patch-include_sound_type__compat.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/audio/alsa-lib/Makefile
diff -u pkgsrc/audio/alsa-lib/Makefile:1.27 pkgsrc/audio/alsa-lib/Makefile:1.28
--- pkgsrc/audio/alsa-lib/Makefile:1.27 Mon Jan 24 10:05:37 2022
+++ pkgsrc/audio/alsa-lib/Makefile      Mon Mar 14 14:08:42 2022
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.27 2022/01/24 10:05:37 wiz Exp $
+# $NetBSD: Makefile,v 1.28 2022/03/14 14:08:42 wiz Exp $
 
 DISTNAME=      alsa-lib-1.2.6.1
+PKGREVISION=   1
 CATEGORIES=    audio
 MASTER_SITES=  ftp://ftp.alsa-project.org/pub/lib/
 EXTRACT_SUFX=  .tar.bz2

Index: pkgsrc/audio/alsa-lib/distinfo
diff -u pkgsrc/audio/alsa-lib/distinfo:1.35 pkgsrc/audio/alsa-lib/distinfo:1.36
--- pkgsrc/audio/alsa-lib/distinfo:1.35 Mon Jan 24 10:05:37 2022
+++ pkgsrc/audio/alsa-lib/distinfo      Mon Mar 14 14:08:42 2022
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.35 2022/01/24 10:05:37 wiz Exp $
+$NetBSD: distinfo,v 1.36 2022/03/14 14:08:42 wiz Exp $
 
 BLAKE2s (alsa-lib-1.2.6.1.tar.bz2) = efef5241c5060a795b451199dd0724b233fed3cdbdee84192c0f65ca1b8b26d2
 SHA512 (alsa-lib-1.2.6.1.tar.bz2) = 70e539cf092b5d43e00e4134d8a3e184f0dc34312823e4b58a574320cbf06cb7369bc3251ecb1858033756a7a8c35d36faa8da48d49f6efe0cec905784adbd45
@@ -15,7 +15,7 @@ SHA1 (patch-bk) = 55754e4d0ac947c2e7e59b
 SHA1 (patch-configure.ac) = cc034d07eab13caa5ff8748e8eea37ae9dd367f5
 SHA1 (patch-include_error.h) = 9e92d4a51badda1d46305d1e5e36b8197788aa89
 SHA1 (patch-include_output.h) = 0a073b53c40293aa7cfa250586c087084002eefe
-SHA1 (patch-include_sound_type__compat.h) = a5dea86a0fd998d35147820269786d2cf8eff5e0
+SHA1 (patch-include_sound_type__compat.h) = 0148823ade8dadc8772a85621a83e4fa41da796a
 SHA1 (patch-include_sound_uapi_asoc.h) = 5f1da418a2ad4ae066b34c75c9106108711b5d3d
 SHA1 (patch-include_sound_uapi_asound.h) = 051616bbbab3339d20818ddb40cde8502295a026
 SHA1 (patch-include_type__compat.h) = 3cb245d8ea171f987859e1b5a89b0908c2037492

Index: pkgsrc/audio/alsa-lib/patches/patch-include_sound_type__compat.h
diff -u pkgsrc/audio/alsa-lib/patches/patch-include_sound_type__compat.h:1.1 pkgsrc/audio/alsa-lib/patches/patch-include_sound_type__compat.h:1.2
--- pkgsrc/audio/alsa-lib/patches/patch-include_sound_type__compat.h:1.1        Wed May 12 14:12:13 2021
+++ pkgsrc/audio/alsa-lib/patches/patch-include_sound_type__compat.h    Mon Mar 14 14:08:42 2022
@@ -1,4 +1,6 @@
-$NetBSD: patch-include_sound_type__compat.h,v 1.1 2021/05/12 14:12:13 ryoon Exp $
+$NetBSD: patch-include_sound_type__compat.h,v 1.2 2022/03/14 14:08:42 wiz Exp $
+
+NetBSD and Solaris support.
 
 --- include/sound/type_compat.h.orig   2020-06-29 10:51:08.000000000 +0000
 +++ include/sound/type_compat.h
@@ -10,10 +12,13 @@ $NetBSD: patch-include_sound_type__compa
  
  #ifndef DOC_HIDDEN
  #include <stdint.h>
-@@ -16,6 +16,20 @@ typedef int32_t __s32;
+@@ -15,7 +15,30 @@ typedef int16_t __s16;
+ typedef int32_t __s32;
  typedef int64_t __s64;
  
++#ifndef __sun
  #include <endian.h>
++#endif
 +#if defined(__NetBSD__)
 +#include <machine/bswap.h>
 +#if BYTE_ORDER == LITTLE_ENDIAN
@@ -28,18 +33,26 @@ $NetBSD: patch-include_sound_type__compa
 +#define __cpu_to_be16(x) (x)
 +#endif
 +#else
++#ifdef __sun
++#include <sys/byteorder.h>
++#define __cpu_to_le32(x) LE_32(x)
++#define __cpu_to_be32(x) BE_32(x)
++#define __cpu_to_le16(x) LE_16(x)
++#define __cpu_to_be16(x) BE_16(x)
++#else
  #include <byteswap.h>
  #if __BYTE_ORDER == __LITTLE_ENDIAN
  #define __cpu_to_le32(x) (x)
-@@ -28,6 +42,7 @@ typedef int64_t __s64;
+@@ -28,6 +51,8 @@ typedef int64_t __s64;
  #define __cpu_to_le16(x) bswap_16(x)
  #define __cpu_to_be16(x) (x)
  #endif
 +#endif
++#endif
  
  #define __le32_to_cpu __cpu_to_le32
  #define __be32_to_cpu __cpu_to_be32
-@@ -54,4 +69,4 @@ typedef int64_t __s64;
+@@ -54,4 +79,4 @@ typedef int64_t __s64;
  
  #endif /* DOC_HIDDEN */
  



Home | Main Index | Thread Index | Old Index