From tijl@ulyssis.org  Mon Oct 13 02:17:36 2003
Return-Path: <tijl@ulyssis.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C947016A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Oct 2003 02:17:36 -0700 (PDT)
Received: from nibbel.kulnet.kuleuven.ac.be (nibbel.kulnet.kuleuven.ac.be [134.58.240.41])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E93E343FAF
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Oct 2003 02:17:32 -0700 (PDT)
	(envelope-from tijl@ulyssis.org)
Received: from localhost (localhost [127.0.0.1])
	by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id C1D894B538
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Oct 2003 11:17:31 +0200 (CEST)
Received: from antonius.kulnet.kuleuven.ac.be (antonius.kulnet.kuleuven.ac.be [134.58.240.73])
	by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 5666F4B508
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Oct 2003 11:17:31 +0200 (CEST)
Received: from localhost (10-4-5-217.kotnet.org [10.4.5.217])
	by antonius.kulnet.kuleuven.ac.be (Postfix) with SMTP id ED4654C0D1
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Oct 2003 11:17:30 +0200 (CEST)
Message-Id: <20031013111730.4ad11c0c.tijl@ulyssis.org>
Date: Mon, 13 Oct 2003 11:17:30 +0200
From: Tijl Coosemans <tijl@ulyssis.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] comms/libticables: fix build on non-intel archs

>Number:         57941
>Category:       ports
>Synopsis:       [patch] comms/libticables: fix build on non-intel archs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 13 02:20:15 PDT 2003
>Closed-Date:    Sun Nov 02 12:59:48 PST 2003
>Last-Modified:  Sun Nov 02 12:59:48 PST 2003
>Originator:     Tijl Coosemans
>Release:        FreeBSD 4.9-RC i386
>Organization:
>Environment:
System: FreeBSD 10-4-5-217.kotnet.org 4.9-RC FreeBSD 4.9-RC #16: Sun Oct 12 14:07:10 CEST 2003 root@10-4-5-217.kotnet.org:/usr/obj/usr/src/sys/TIJL i386


	
>Description:
To make a BSD version __BSD__ has to be defined during build. That didn't happen for alpha, sparc, etc.
>How-To-Repeat:
	
>Fix:

The following patch makes changes to the existing files/patch-configure to address the problem.

--- patch begins here ---
diff -Nru libticables.orig/files/patch-configure libticables/files/patch-configure
--- libticables.orig/files/patch-configure	Mon Oct 13 10:15:57 2003
+++ libticables/files/patch-configure	Mon Oct 13 10:21:51 2003
@@ -1,6 +1,23 @@
---- configure.orig	Wed Aug 27 21:54:38 2003
-+++ configure	Wed Aug 27 21:55:32 2003
-@@ -24767,6 +24767,7 @@
+--- configure.orig	Wed Aug 27 12:17:39 2003
++++ configure	Mon Oct 13 10:21:17 2003
+@@ -6257,7 +6257,7 @@
+ 
+ # detect system type
+ case "$host" in
+-#	alpha-*-*bsd*)         ARCH="-D__FBSD__" ;;
++	*-*-*bsd*)           ARCH="-D__BSD__" ;;
+ 	alpha*-*-linux-*)      ARCH="-D__ALPHA__ -D__LINUX__" ;;
+ 	alpha*-*-*-*)          ARCH="-D__ALPHA__ -D__LINUX__" ;;
+ 	arm*-*-linux-*)        ARCH="-D__ARM__ -D__LINUX__" ;;
+@@ -6266,7 +6266,6 @@
+ 	i[3456]86-*-hurd-*)  ARCH="-D__LINUX__" ;;
+ 	i[3456]86-*-mingw*)  ARCH="-D__WIN32__ -D__MINGW32__ -Os -s" ;;
+ 	i[3456]86-*-cygwin)  ARCH="-D__WIN32__ -D__CYGWIN__ -mno-cygwin" ;;
+-	i[3456]86-*-*bsd*)   ARCH="-D__BSD__" ;;
+ 	ia64-*-linux-*)        ARCH="-D__LINUX__" ;;
+ 	m68k-*-linux-*)        ARCH="-D__M68K__ -D__LINUX__" ;;
+ 	mips-*-linux-*)        ARCH="-D__MIPS__ -D__LINUX__" ;;
+@@ -24767,6 +24766,7 @@
  
  
  
--- patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: osa 
State-Changed-When: Sun Nov 2 12:59:36 PST 2003 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57941 
>Unformatted:
