From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Dec 2 00:50:04 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C0DE316A415 for ; Sat, 2 Dec 2006 00:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9A1643CAB for ; Sat, 2 Dec 2006 00:49:46 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kB20o31B049304 for ; Sat, 2 Dec 2006 00:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kB20o3bG049303; Sat, 2 Dec 2006 00:50:03 GMT (envelope-from gnats) Resent-Date: Sat, 2 Dec 2006 00:50:03 GMT Resent-Message-Id: <200612020050.kB20o3bG049303@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Juergen Lock Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 914C316A412 for ; Sat, 2 Dec 2006 00:47:56 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4830343C9D for ; Sat, 2 Dec 2006 00:47:37 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id kB20lrpc006885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 2 Dec 2006 01:47:53 +0100 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id kB20lrB3006883 for FreeBSD-gnats-submit@freebsd.org; Sat, 2 Dec 2006 01:47:53 +0100 Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.6/8.13.6) with ESMTP id kB20gNrJ042812 for ; Sat, 2 Dec 2006 01:42:23 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.6/8.13.6/Submit) id kB20gN7S042811; Sat, 2 Dec 2006 01:42:23 +0100 (CET) (envelope-from nox) Message-Id: <200612020042.kB20gN7S042811@saturn.kn-bremen.de> Date: Sat, 2 Dec 2006 01:42:23 +0100 (CET) From: Juergen Lock To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/106168: fix audio/gramofile on sparc64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Juergen Lock List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2006 00:50:04 -0000 >Number: 106168 >Category: ports >Synopsis: fix audio/gramofile on sparc64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Dec 02 00:50:02 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Juergen Lock >Release: FreeBSD 6.1-RELEASE-p5 i386 >Organization: me? organized?? >Environment: System: FreeBSD saturn 6.1-RELEASE-p5 FreeBSD 6.1-RELEASE-p5 #0: Mon Sep 4 15:37:14 CEST 2006 nox@saturn:/ad4/usr/home/nox/src61/src/sys/i386/compile/GENERICua i386 >Description: this seems to be the fix for the sparc64 build problem, only I cant test it. So please test (and commit if it works), thanx! >How-To-Repeat: http://pointyhat.freebsd.org/errorlogs/sparc64-errorlogs/e.6.2006113004/gramofile-1.6P_7.log >Fix: Index: files/post-patch-bplay.c =================================================================== RCS file: /home/ncvs/ports/audio/gramofile/files/post-patch-bplay.c,v retrieving revision 1.1 diff -u -r1.1 post-patch-bplay.c --- files/post-patch-bplay.c 2 Nov 2005 05:25:44 -0000 1.1 +++ files/post-patch-bplay.c 1 Dec 2006 23:16:20 -0000 @@ -1,5 +1,5 @@ Index: bplaysrc/bplay.c -@@ -33,14 +33,16 @@ +@@ -33,23 +33,30 @@ /* Needed for BYTE_ORDER and BIG/LITTLE_ENDIAN macros. */ #ifndef _BSD_SOURCE # define _BSD_SOURCE @@ -17,3 +17,16 @@ /* Adapted from the byteorder macros in the Linux kernel. */ #if BYTE_ORDER == LITTLE_ENDIAN + #define cpu_to_le32(x) (x) + #define cpu_to_le16(x) (x) + #else ++#ifdef __FreeBSD__ ++#define cpu_to_le32(x) bswap32((x)) ++#define cpu_to_le16(x) bswap16((x)) ++#else + #define cpu_to_le32(x) bswap_32((x)) + #define cpu_to_le16(x) bswap_16((x)) ++#endif + #endif + + #define le32_to_cpu(x) cpu_to_le32((x)) >Release-Note: >Audit-Trail: >Unformatted: