pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/MesaLib



Module Name:    pkgsrc
Committed By:   wiz
Date:           Fri Mar  7 06:56:21 UTC 2025

Modified Files:
        pkgsrc/graphics/MesaLib: distinfo
Added Files:
        pkgsrc/graphics/MesaLib/patches: patch-src_util_u__qsort.h

Log Message:
MesaLib: fix build on NetBSD-current (qsort_r)


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 pkgsrc/graphics/MesaLib/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/graphics/MesaLib/patches/patch-src_util_u__qsort.h

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

Modified files:

Index: pkgsrc/graphics/MesaLib/distinfo
diff -u pkgsrc/graphics/MesaLib/distinfo:1.166 pkgsrc/graphics/MesaLib/distinfo:1.167
--- pkgsrc/graphics/MesaLib/distinfo:1.166      Tue Jul 18 19:33:31 2023
+++ pkgsrc/graphics/MesaLib/distinfo    Fri Mar  7 06:56:20 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.166 2023/07/18 19:33:31 ryoon Exp $
+$NetBSD: distinfo,v 1.167 2025/03/07 06:56:20 wiz Exp $
 
 BLAKE2s (mesa-21.3.9.tar.xz) = e948a37881a088c0df4df880e3d1218b874ed5a8cac951a109249b3648519472
 SHA512 (mesa-21.3.9.tar.xz) = 4cec6f4f50f444fcd327f7c40f8899c2f265e348e121455262b540b1f890a1468bbea59965af0876c548fa97aa0a05a1b23fa6ca7d308bd60328cfdeab757684
@@ -41,5 +41,6 @@ SHA1 (patch-src_util_strndup.h) = 73f496
 SHA1 (patch-src_util_u__atomic.h) = 31d4514538ef5ee53012695eb5c66134aaec981e
 SHA1 (patch-src_util_u__printf.h) = 3b19d079d3857612be3cb1b5c1edb5384cd4d6fd
 SHA1 (patch-src_util_u__process.c) = 9b785d660f3d55803315598a66370139fcd9168f
+SHA1 (patch-src_util_u__qsort.h) = 36e7712997faeb6582b517ef145c5762088d72ec
 SHA1 (patch-src_util_u__queue.c) = e8d6b00473a16b6a32dcacd5ae092326fb2adb84
 SHA1 (patch-src_util_u__thread.h) = 996a51b8570cb019b9ed5ce9f3653488ce26b2df

Added files:

Index: pkgsrc/graphics/MesaLib/patches/patch-src_util_u__qsort.h
diff -u /dev/null pkgsrc/graphics/MesaLib/patches/patch-src_util_u__qsort.h:1.1
--- /dev/null   Fri Mar  7 06:56:21 2025
+++ pkgsrc/graphics/MesaLib/patches/patch-src_util_u__qsort.h   Fri Mar  7 06:56:20 2025
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_util_u__qsort.h,v 1.1 2025/03/07 06:56:20 wiz Exp $
+
+Fix for POSIX qsort_r on NetBSD.
+(FreeBSD before 14 had the qsort_r argument order different than Linux.)
+
+--- src/util/u_qsort.h.orig    2025-03-07 06:52:32.373984663 +0000
++++ src/util/u_qsort.h
+@@ -57,7 +57,7 @@ util_qsort_r(void *base, size_t nmemb, s
+              void *arg)
+ {
+ #if HAVE_QSORT_R
+-#  if DETECT_OS_APPLE || DETECT_OS_BSD
++#  if DETECT_OS_APPLE || DETECT_OS_BSD && !defined(__NetBSD__)
+    /* BSD/macOS qsort_r takes "arg" before the comparison function and it
+     * pass the "arg" before the elements.
+     */



Home | Main Index | Thread Index | Old Index