NetBSD Problem Report #50204
From www@NetBSD.org Fri Sep 4 06:30:43 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id B5F3CA654F
for <gnats-bugs@gnats.NetBSD.org>; Fri, 4 Sep 2015 06:30:43 +0000 (UTC)
Message-Id: <20150904063042.2643EA6562@mollari.NetBSD.org>
Date: Fri, 4 Sep 2015 06:30:42 +0000 (UTC)
From: davshao@gmail.com
Reply-To: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Subject: x11/libxshmfence patches for DragonFly and FreeBSD
X-Send-Pr-Version: www-1.0
>Number: 50204
>Category: pkg
>Synopsis: x11/libxshmfence patches for DragonFly and FreeBSD
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 04 06:35:00 +0000 2015
>Closed-Date: Tue Oct 13 04:32:47 +0000 2020
>Last-Modified: Tue Oct 13 04:32:47 +0000 2020
>Originator: David Shao
>Release: pkgsrc current
>Organization:
>Environment:
DragonFly 4.3-DEVELOPMENT DragonFly v4.3.1.401.g3f4ec-DEVELOPMENT #2: Thu Sep 3 07:03:26 PDT 2015 xxxxxx@:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64
>Description:
The following patches get x11/libxshmfence to build on DragonFly 4.3-DEVELOPMENT and FreeBSD 10.2 release, 10.2 stable, and 11 current.
diff -Nurb libxshmfence.orig/Makefile libxshmfence/Makefile
--- libxshmfence.orig/Makefile 2015-04-29 07:31:42.000000000 -0700
+++ libxshmfence/Makefile 2015-08-05 21:47:37.431978000 -0700
@@ -20,7 +20,7 @@
# implementation on NetBSD. See PR lib/49529.
# (On FreeBSD, umtx is used.)
-ONLY_FOR_PLATFORM+= Linux-*-* FreeBSD-*-*
+ONLY_FOR_PLATFORM+= Linux-*-* FreeBSD-*-* DragonFly-*-*
.include "../../x11/xproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -Nurb libxshmfence.orig/distinfo libxshmfence/distinfo
--- libxshmfence.orig/distinfo 2015-04-29 07:31:42.000000000 -0700
+++ libxshmfence/distinfo 2015-08-05 22:16:48.758096000 -0700
@@ -3,3 +3,4 @@
SHA1 (libxshmfence-1.2.tar.bz2) = a2ebe90e5595afca4db93a4359732af43b2b8c69
RMD160 (libxshmfence-1.2.tar.bz2) = fe4b42d4ee01a993cd653d8f10334069bcc4791c
Size (libxshmfence-1.2.tar.bz2) = 267170 bytes
+SHA1 (patch-src_xshmfence__futex.h) = a1ae75e502f0de4dda0fb61eda3bfc3af2cc5171
diff -Nurb libxshmfence.orig/patches/patch-src_xshmfence__futex.h libxshmfence/patches/patch-src_xshmfence__futex.h
--- libxshmfence.orig/patches/patch-src_xshmfence__futex.h 1969-12-31 16:00:00.000000000 -0800
+++ libxshmfence/patches/patch-src_xshmfence__futex.h 2015-08-05 22:16:41.098091000 -0700
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- src/xshmfence_futex.h.orig 2014-06-17 20:46:42.000000000 +0000
++++ src/xshmfence_futex.h
+@@ -28,6 +28,9 @@
+
+ #ifdef HAVE_UMTX
+
++#if defined(__FreeBSD__)
++#include <sys/limits.h>
++#endif
+ #include <sys/types.h>
+ #include <sys/umtx.h>
+
I hope it is obvious that without the first patch, libxshmfence will not build properly on DragonFly.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 13 Oct 2020 04:32:47 +0000
State-Changed-Why:
Stale bug report. No more ONLY_FOR_PLATFORM in this package and the file includes limits.h. Assuming any problems are no longer relevant sicne it has been a while. Sorry your patch was not applied at the time and thanks for the report.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.