From naddy@mips.inka.de  Thu Aug 25 13:47:57 2011
Return-Path: <naddy@mips.inka.de>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C14491065673;
	Thu, 25 Aug 2011 13:47:57 +0000 (UTC)
	(envelope-from naddy@mips.inka.de)
Received: from mail-in-13.arcor-online.net (mail-in-13.arcor-online.net [151.189.21.53])
	by mx1.freebsd.org (Postfix) with ESMTP id 7AF708FC1F;
	Thu, 25 Aug 2011 13:47:57 +0000 (UTC)
Received: from mail-in-08-z2.arcor-online.net (mail-in-08-z2.arcor-online.net [151.189.8.20])
	by mx.arcor.de (Postfix) with ESMTP id 493DB212644;
	Thu, 25 Aug 2011 15:13:02 +0200 (CEST)
Received: from mail-in-11.arcor-online.net (mail-in-11.arcor-online.net [151.189.21.51])
	by mail-in-08-z2.arcor-online.net (Postfix) with ESMTP id 2D1E477C9C;
	Thu, 25 Aug 2011 15:13:02 +0200 (CEST)
Received: from lorvorc.mips.inka.de (dslb-092-075-104-174.pools.arcor-ip.net [92.75.104.174])
	by mail-in-11.arcor-online.net (Postfix) with ESMTPS id ACDDE35AA7F;
	Thu, 25 Aug 2011 15:13:01 +0200 (CEST)
Received: from lorvorc.mips.inka.de (localhost [127.0.0.1])
	by lorvorc.mips.inka.de (8.14.5/8.14.3) with ESMTP id p7PDD1rS055679;
	Thu, 25 Aug 2011 15:13:01 +0200 (CEST)
	(envelope-from naddy@lorvorc.mips.inka.de)
Received: (from naddy@localhost)
	by lorvorc.mips.inka.de (8.14.5/8.14.5/Submit) id p7PDD1Ci055678;
	Thu, 25 Aug 2011 15:13:01 +0200 (CEST)
	(envelope-from naddy)
Message-Id: <201108251313.p7PDD1Ci055678@lorvorc.mips.inka.de>
Date: Thu, 25 Aug 2011 15:13:01 +0200 (CEST)
From: Christian Weisgerber <naddy@freebsd.org>
Reply-To: Christian Weisgerber <naddy@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: lme@freebsd.org
Subject: net-mgmt/aircrack-ng: potential fix for sparc64
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         160183
>Category:       ports
>Synopsis:       net-mgmt/aircrack-ng: potential fix for sparc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lme
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 25 13:50:10 UTC 2011
>Closed-Date:    Sun Aug 28 16:29:53 UTC 2011
>Last-Modified:  Sun Aug 28 16:30:10 UTC 2011
>Originator:     Christian Weisgerber
>Release:        FreeBSD 7.4-STABLE amd64
>Organization:
>Environment:
System: FreeBSD lorvorc.mips.inka.de 7.4-STABLE FreeBSD 7.4-STABLE #0: Sat Aug 13 15:19:13 CEST 2011 naddy@lorvorc.mips.inka.de:/usr/obj/usr/src/sys/GENERIC amd64

>Description:

aircrack-ng abuses #ifdef __sparc__ to check for Solaris.  Fixing this
check may be enough to make it build on FreeBSD/sparc64.

I don't have access to a sparc64 to verify this.

>How-To-Repeat:

>Fix:

(Note that byteorder.h has trailing carriage returns.)

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net-mgmt/aircrack-ng/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile	1 Oct 2010 15:27:26 -0000	1.22
+++ Makefile	25 Aug 2011 13:07:51 -0000
@@ -37,8 +37,6 @@
 
 .if ${ARCH} == "powerpc"
 BROKEN=		Does not compile on powerpc
-.elif ${ARCH} == "sparc64"
-BROKEN=		Does not compile on sparc64: missing byteorder.h
 .endif
 
 .if defined(WITH_SQLITE)
Index: files/patch-src_osdep_byteorder.h
===================================================================
RCS file: files/patch-src_osdep_byteorder.h
diff -N files/patch-src_osdep_byteorder.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-src_osdep_byteorder.h	25 Aug 2011 13:07:51 -0000
@@ -0,0 +1,11 @@
+--- src/osdep/byteorder.h.orig	2011-08-25 14:59:22.000000000 +0200
++++ src/osdep/byteorder.h	2011-08-25 15:05:24.000000000 +0200
+@@ -167,7 +167,7 @@
+ 	 * Solaris
+ 	 * -------
+ 	 */
+-	#if defined(__sparc__)
++	#if defined(__sun) && defined(__SVR4) && defined(__sparc__)
+ 	#include <sys/byteorder.h>
+ 	#include <sys/types.h>
+ 	#include <unistd.h>
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->lme 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Aug 25 13:50:52 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160183 
State-Changed-From-To: open->closed 
State-Changed-By: lme 
State-Changed-When: Sun Aug 28 16:29:52 UTC 2011 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/160183: commit references a PR
Date: Sun, 28 Aug 2011 16:29:53 +0000 (UTC)

 lme         2011-08-28 16:29:39 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-mgmt/aircrack-ng Makefile 
   Added files:
     net-mgmt/aircrack-ng/files patch-src_osdep_byteorder.h 
   Log:
   Potential fix build on sparc64
   
   PR:             ports/160183
   Submitted by:   naddy
   Approved by:    Maintainer (me)
   
   Revision  Changes    Path
   1.23      +0 -2      ports/net-mgmt/aircrack-ng/Makefile
   1.1       +11 -0     ports/net-mgmt/aircrack-ng/files/patch-src_osdep_byteorder.h (new)
 _______________________________________________
 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:
