ports/66572: [patch] comms/libticables: fix sparc64 build
Tijl Coosemans
tijl at ulyssis.org
Wed May 12 16:30:22 UTC 2004
>Number: 66572
>Category: ports
>Synopsis: [patch] comms/libticables: fix sparc64 build
>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: Wed May 12 09:30:20 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Tijl Coosemans
>Release: FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD kalimero.kotnet.org 4.9-STABLE FreeBSD 4.9-STABLE #0: Wed Apr 7 16:28:33 CEST 2004 root at kalimero.kotnet.org:/usr/obj/usr/src/sys/TIJL i386
>Description:
This port includes machine/sysarch.h to use i386_set_ioperm(2)
on i386 platforms. The sparc64 version of this header however,
misses some typedefs, which causes a build failure.
http://bento.freebsd.org/errorlogs/sparc64-5-latest/libticables-3.7.7_2.log
>How-To-Repeat:
>Fix:
Include machine/sysarch.h only on i386 platforms.
--- patch begins here ---
diff -urN libticables.orig/files/patch-src-ioports.c libticables/files/patch-src-ioports.c
--- libticables.orig/files/patch-src-ioports.c Wed Apr 28 14:00:20 2004
+++ libticables/files/patch-src-ioports.c Wed May 12 17:56:37 2004
@@ -1,5 +1,14 @@
---- src/ioports.c.orig Mon Nov 17 19:15:57 2003
-+++ src/ioports.c Mon Nov 17 19:39:35 2003
+--- src/ioports.c.orig Wed Aug 27 11:34:39 2003
++++ src/ioports.c Wed May 12 17:56:00 2004
+@@ -41,7 +41,7 @@
+ #if defined(__I386__) && defined(HAVE_ASM_IO_H) && defined(HAVE_SYS_PERM_H)
+ # include <sys/perm.h>
+ # include <asm/io.h>
+-#elif defined(__BSD__)
++#elif defined(__BSD__) && defined(__I386__)
+ # include <machine/sysarch.h>
+ # include <machine/cpufunc.h>
+ #elif defined(__WIN32__)
@@ -107,7 +107,7 @@
}
#endif /* 0 */ /* __MACOSX__ */
--- patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list