From owner-freebsd-alpha Wed May 22 9: 6:35 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from qescan3.qgraph.com (QESCAN3.qgraph.com [206.158.124.15]) by hub.freebsd.org (Postfix) with SMTP id BBFF237B404; Wed, 22 May 2002 09:06:29 -0700 (PDT) Received: from 192.168.200.30 by qescan3.qgraph.com (InterScan E-Mail VirusWall NT); Wed, 22 May 2002 11:05:48 -0500 (Central Daylight Time) Received: by SXSMTP3 with Internet Mail Service (5.5.2653.19) id ; Wed, 22 May 2002 11:05:48 -0500 Message-ID: <1F095B0753FCD411857700010333058A04EEC8CA@waexch1.qgraph.com> From: "Schroeder, Aaron" To: 'Andrew Gallatin' , Will Andrews Cc: portmgr@FreeBSD.ORG, re@FreeBSD.ORG, alpha@FreeBSD.ORG Subject: RE: Alpha package building status Date: Wed, 22 May 2002 11:05:45 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org So I will have to upgrade to 5.0 CURRENT for this to work? Oh boy.. -----Original Message----- From: Andrew Gallatin [mailto:gallatin@cs.duke.edu] Sent: Wednesday, May 22, 2002 11:04 AM To: Will Andrews Cc: portmgr@FreeBSD.ORG; re@FreeBSD.ORG; alpha@FreeBSD.ORG Subject: Re: Alpha package building status Will Andrews writes: > On Wed, May 22, 2002 at 09:35:42AM -0400, Andrew Gallatin wrote: > > Speaking of ports.. I've got a patch which I think will get > > kdemultimedia3 building... > > Where? I want to review/approve. :) OK. Here it is. On 4.x only, there are only inline byte swap routines for x86. On alpha, they're called htons and htonl. On 5.x, this is standardized across all platforms, so this fix is only for < 5.0 Cheers, Drew Index: files/patch-kmidi-config.h =================================================================== RCS file: /home/ncvs/ports/audio/kdemultimedia3/files/patch-kmidi-config.h,v retrieving revision 1.1 diff -u -r1.1 patch-kmidi-config.h --- files/patch-kmidi-config.h 29 Apr 2002 07:53:39 -0000 1.1 +++ files/patch-kmidi-config.h 22 May 2002 14:37:44 -0000 @@ -1,8 +1,16 @@ ---- ./kmidi/config.h.old Sun Apr 28 23:33:03 2002 -+++ ./kmidi/config.h Sun Apr 28 23:33:55 2002 -@@ -264,8 +264,8 @@ +--- kmidi/config.h.orig Sun Oct 21 20:07:36 2001 ++++ kmidi/config.h Wed May 22 10:37:04 2002 +@@ -261,11 +261,16 @@ + /* And a better idea would be to attempt the various asm + optimizations ourselves IMO, but hey, this is free */ + #if __FreeBSD_version <= 500000 ++#if defined (__i386__) #define XCHG_SHORT(x) __byte_swap_word(x) #define XCHG_LONG(x) __byte_swap_long(x) ++#else ++ #define XCHG_SHORT(x) htons(x) ++ #define XCHG_LONG(x) htonl(x) ++#endif #else - #define XCHG_SHORT(x) __uint8_swap_uint16(x) - #define XCHG_LONG(x) __uint8_swap_uint32(x) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message