ports/57941: [patch] comms/libticables: fix build on non-intel archs
Tijl Coosemans
tijl at ulyssis.org
Mon Oct 13 09:20:17 UTC 2003
>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: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 13 02:20:15 PDT 2003
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list