Received: by mail.netbsd.org (Postfix, from userid 605) id DB56984E4A; Tue, 29 Oct 2019 09:21:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 633E484D90 for ; Tue, 29 Oct 2019 09:21:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id ADKpELxutKuq for ; Tue, 29 Oct 2019 09:21:54 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id DACD684D78 for ; Tue, 29 Oct 2019 09:21:54 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id D868BFA8E; Tue, 29 Oct 2019 09:21:54 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1572340914268520" MIME-Version: 1.0 Date: Tue, 29 Oct 2019 09:21:54 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/graphics/MesaLib To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20191029092154.D868BFA8E@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1572340914268520 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: nia Date: Tue Oct 29 09:21:54 UTC 2019 Modified Files: pkgsrc/graphics/MesaLib: distinfo pkgsrc/graphics/MesaLib/patches: patch-src_util_u__thread.h Log Message: MesaLib: Fix build with illumos. Oracle Solaris has pthread_setname_np. illumos does not. To generate a diff of this commit: cvs rdiff -u -r1.137 -r1.138 pkgsrc/graphics/MesaLib/distinfo cvs rdiff -u -r1.2 -r1.3 \ pkgsrc/graphics/MesaLib/patches/patch-src_util_u__thread.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1572340914268520 Content-Disposition: inline Content-Length: 2375 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/graphics/MesaLib/distinfo diff -u pkgsrc/graphics/MesaLib/distinfo:1.137 pkgsrc/graphics/MesaLib/distinfo:1.138 --- pkgsrc/graphics/MesaLib/distinfo:1.137 Mon Oct 28 13:20:33 2019 +++ pkgsrc/graphics/MesaLib/distinfo Tue Oct 29 09:21:54 2019 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.137 2019/10/28 13:20:33 nia Exp $ +$NetBSD: distinfo,v 1.138 2019/10/29 09:21:54 nia Exp $ SHA1 (mesa-19.2.2.tar.xz) = 6ddc41e71d894dd406a3ca482f1cfda44566a5f8 RMD160 (mesa-19.2.2.tar.xz) = 10a5761ecb3f9dc1157ad2516abb48cc91e9d4e1 @@ -41,4 +41,4 @@ SHA1 (patch-src_util_ralloc.c) = d311bfd SHA1 (patch-src_util_strndup.h) = 73f49694ca48ad6b9a9d8346c5b84fddec2463bd SHA1 (patch-src_util_u__atomic.h) = 31d4514538ef5ee53012695eb5c66134aaec981e SHA1 (patch-src_util_u__queue.c) = ed1ea3f6fc37e9a64894a3e865c48691b6e01b2c -SHA1 (patch-src_util_u__thread.h) = a49a0839881c30aeede118d096250820d10d8317 +SHA1 (patch-src_util_u__thread.h) = 60c14883925ac60e26efbeee5bef257d081bcc51 Index: pkgsrc/graphics/MesaLib/patches/patch-src_util_u__thread.h diff -u pkgsrc/graphics/MesaLib/patches/patch-src_util_u__thread.h:1.2 pkgsrc/graphics/MesaLib/patches/patch-src_util_u__thread.h:1.3 --- pkgsrc/graphics/MesaLib/patches/patch-src_util_u__thread.h:1.2 Sat Oct 19 10:29:58 2019 +++ pkgsrc/graphics/MesaLib/patches/patch-src_util_u__thread.h Tue Oct 29 09:21:54 2019 @@ -1,11 +1,22 @@ -$NetBSD: patch-src_util_u__thread.h,v 1.2 2019/10/19 10:29:58 nia Exp $ +$NetBSD: patch-src_util_u__thread.h,v 1.3 2019/10/29 09:21:54 nia Exp $ + +Oracle Solaris has pthread_setname_np. illumos does not. Don't hard error when there's no pthread_setname_np. handle NetBSD-style pthread_setaffinity_np(3) ---- src/util/u_thread.h.orig 2019-10-09 16:52:00.000000000 +0000 +--- src/util/u_thread.h.orig 2019-10-24 16:13:04.000000000 +0000 +++ src/util/u_thread.h +@@ -69,7 +69,7 @@ static inline thrd_t u_thread_create(int + static inline void u_thread_setname( const char *name ) + { + #if defined(HAVE_PTHREAD) +-#if DETECT_OS_LINUX || DETECT_OS_CYGWIN || DETECT_OS_SOLARIS ++#if DETECT_OS_LINUX || DETECT_OS_CYGWIN + pthread_setname_np(pthread_self(), name); + #elif DETECT_OS_FREEBSD || DETECT_OS_OPENBSD + pthread_set_name_np(pthread_self(), name); @@ -78,7 +78,6 @@ static inline void u_thread_setname( con #elif DETECT_OS_APPLE pthread_setname_np(name); --_----------=_1572340914268520--