From nobody@FreeBSD.org  Tue Aug 28 13:46:13 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 84F8516A468
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Aug 2007 13:46:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6431B13C457
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Aug 2007 13:46:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7SDkCoA046573
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Aug 2007 13:46:12 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l7SDkCWt046572;
	Tue, 28 Aug 2007 13:46:12 GMT
	(envelope-from nobody)
Message-Id: <200708281346.l7SDkCWt046572@www.freebsd.org>
Date: Tue, 28 Aug 2007 13:46:12 GMT
From: Artem Naluzhny <tut@nhamon.com.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] Fix devel/acpicatools build on ia64 and amd64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         115897
>Category:       ports
>Synopsis:       [patch] Fix devel/acpicatools build on ia64 and amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 28 13:50:01 GMT 2007
>Closed-Date:    Sun Sep 02 14:11:44 GMT 2007
>Last-Modified:  Sun Sep  2 14:20:01 GMT 2007
>Originator:     Artem Naluzhny
>Release:        
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:
diff -ruN acpicatools.bak/Makefile acpicatools/Makefile
--- acpicatools.bak/Makefile	2007-08-28 15:41:56.000000000 +0300
+++ acpicatools/Makefile	2007-08-28 16:05:15.000000000 +0300
@@ -7,6 +7,7 @@
 
 PORTNAME=	acpicatools
 PORTVERSION=	20030523.0
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://people.FreeBSD.org/~iwasaki/acpi/:g1 \
 		http://ftp.osuosl.org/pub/FreeBSD/distfiles/:g2
@@ -22,10 +23,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "ia64" || ${ARCH} == "amd64"
-BROKEN=		Does not compile on ia64 or amd64
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \
 		${WRKDIR}/Makefile*
diff -ruN acpicatools.bak/files/patch-osunixxf.c acpicatools/files/patch-osunixxf.c
--- acpicatools.bak/files/patch-osunixxf.c	2003-06-12 18:45:04.000000000 +0300
+++ acpicatools/files/patch-osunixxf.c	2007-08-28 16:02:04.000000000 +0300
@@ -1,5 +1,32 @@
---- acpica-unix-20030523/osunixxf.c.orig	Sat May 24 09:11:02 2003
-+++ acpica-unix-20030523/osunixxf.c	Thu Jun 12 17:03:26 2003
+--- acpica-unix-20030523/osunixxf.c.orig	2003-05-24 03:11:02.000000000 +0300
++++ acpica-unix-20030523/osunixxf.c	2007-08-28 15:57:49.000000000 +0300
+@@ -452,7 +452,7 @@
+ ACPI_STATUS
+ AcpiOsMapMemory (
+     ACPI_PHYSICAL_ADDRESS   where,
+-    UINT32                  length,
++    ACPI_SIZE               length,
+     void                    **there)
+ {
+     *there = (void *) (UINT32) where;
+@@ -478,7 +478,7 @@
+ void
+ AcpiOsUnmapMemory (
+     void                    *where,
+-    UINT32                  length)
++    ACPI_SIZE               length)
+ {
+ 
+     return;
+@@ -499,7 +499,7 @@
+ 
+ void *
+ AcpiOsAllocate (
+-    UINT32                  size)
++    ACPI_SIZE               size)
+ {
+     void                    *Mem;
+ 
 @@ -815,7 +815,7 @@
      UINT32                  milliseconds)
  {


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Sun Sep 2 14:11:37 UTC 2007 
State-Changed-Why:  
committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115897 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/115897: commit references a PR
Date: Sun,  2 Sep 2007 14:11:39 +0000 (UTC)

 arved       2007-09-02 14:11:33 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel/acpicatools    Makefile 
     devel/acpicatools/files patch-osunixxf.c 
   Log:
   Fix build on amd64/ia64
   
   PR:             115897
   Submitted by:   Artem Naluzhny <tut@nhamon.com.ua>
   
   Revision  Changes    Path
   1.28      +0 -4      ports/devel/acpicatools/Makefile
   1.3       +29 -2     ports/devel/acpicatools/files/patch-osunixxf.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
