NetBSD Problem Report #52654

From ef@math.uni-bonn.de  Wed Oct 25 17:48:11 2017
Return-Path: <ef@math.uni-bonn.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 11C047A0F3
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 25 Oct 2017 17:48:11 +0000 (UTC)
Message-Id: <20171025174808.7FEF51BE6E@trave.math.uni-bonn.de>
Date: Wed, 25 Oct 2017 19:48:08 +0200 (CEST)
From: ef@math.uni-bonn.de
Reply-To: ef@math.uni-bonn.de
To: gnats-bugs@gnats.NetBSD.org
Subject: sysutils/acpica-utils fix for NetBSD<7
X-Send-Pr-Version: 3.95

>Number:         52654
>Category:       pkg
>Synopsis:       sysutils/acpica-utils fix for NetBSD<7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 25 17:50:00 +0000 2017
>Closed-Date:    Mon Sep 17 13:12:18 +0000 2018
>Last-Modified:  Mon Sep 17 13:15:00 +0000 2018
>Originator:     Edgar Fuß
>Release:        pkgsrc-2017Q3
>Organization:
	Mathematisches Institut der Universität Bonn
>Environment:


>Description:
	NetBSD versions prior to 7 lack sem_timedwait() in librt
>How-To-Repeat:
	cd sysutils/acpica-utils && make build
>Fix:
	Set ACPI_USE_ALTERNATE_TIMEOUT for __NetBSD_Version__ < 700000000:

	Index: distinfo
	===================================================================
	RCS file: /cvsroot/pkgsrc/sysutils/acpica-utils/distinfo,v
	retrieving revision 1.12
	diff -u -r1.12 distinfo
	--- distinfo	2 Nov 2016 12:21:19 -0000	1.12
	+++ distinfo	25 Oct 2017 17:43:10 -0000
	@@ -9,4 +9,5 @@
	 SHA512 (acpitests-unix-20160930.tar.gz) = f982826e01de7a79da543c2ca99dfc9459829a03332841dfe00f45bfc1620bdfa986a5ce4c8bbee2933325c1c526434c04e3601d727fb111f049e71e080a4c71
	 Size (acpitests-unix-20160930.tar.gz) = 1829886 bytes
	 SHA1 (patch-generate_unix_Makefile.config) = b760ec07afa96902641ff4b979b7764baa39aceb
	+SHA1 (patch-source_include_platform_acnetbsd.h) = d272a3c84d337c2da44d83b37efb81f83a213a39
	 SHA1 (patch-source_include_platform_acsolaris.h) = ecc090345a6d259f96923376e65d28c57dceebab
	Index: patches/patch-source_include_platform_acnetbsd.h
	===================================================================
	RCS file: patches/patch-source_include_platform_acnetbsd.h
	diff -N patches/patch-source_include_platform_acnetbsd.h
	--- /dev/null	1 Jan 1970 00:00:00 -0000
	+++ patches/patch-source_include_platform_acnetbsd.h	25 Oct 2017 17:43:10 -0000
	@@ -0,0 +1,13 @@
	+--- source/include/platform/acnetbsd.h.orig	2015-04-10 17:27:17.000000000 +0200
	++++ source/include/platform/acnetbsd.h	2015-12-10 14:15:22.000000000 +0100
	+@@ -112,4 +112,10 @@
	+ #define ACPI_USE_SYSTEM_CLIBRARY
	+ #define ACPI_USE_NATIVE_DIVIDE
	+ 
	++/* NetBSD versions prior to 7 lack sem_timedwait() in librt */
	++#include <sys/param.h>
	++#if (__NetBSD_Version__ < 700000000)       /* NetBSD 7 */
	++#define ACPI_USE_ALTERNATE_TIMEOUT
	++#endif
	++
	+ #endif /* __ACNETBSD_H__ */

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 17 Sep 2018 13:12:18 +0000
State-Changed-Why:
Applied, thanks!


From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52654 CVS commit: pkgsrc/sysutils/acpica-utils
Date: Mon, 17 Sep 2018 13:11:59 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Mon Sep 17 13:11:59 UTC 2018

 Modified Files:
 	pkgsrc/sysutils/acpica-utils: distinfo
 Added Files:
 	pkgsrc/sysutils/acpica-utils/patches:
 	    patch-source_include_platform_acnetbsd.h

 Log Message:
 acpica-utils: build fix for netbsd<7

 from Edgar Fuß in PR pkg/52654


 To generate a diff of this commit:
 cvs rdiff -u -r1.12 -r1.13 pkgsrc/sysutils/acpica-utils/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/sysutils/acpica-utils/patches/patch-source_include_platform_acnetbsd.h

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

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.