ports/139205: [patch] archivers/xz: define x86_64 on amd64
Anonymous
swell.k at gmail.com
Mon Sep 28 09:10:02 UTC 2009
>Number: 139205
>Category: ports
>Synopsis: [patch] archivers/xz: define x86_64 on amd64
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Sep 28 09:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD 9.0-CURRENT #2 r197528M: Sat Sep 26 20:24:09 UTC 2009 root at luffy:/usr/obj/usr/src/sys/PHOENIX amd64
>Description:
amd64 is actually X86_64, so define it there. Affects assembler
optimization in liblzma/common/bsr.h.
>How-To-Repeat:
1. $ make configure
2. check contents of ${WRKSRC}/config.h
On i386 it would have HAVE_ASM_X86 and HAVE_FAST_UNALIGNED_ACCESS defined.
>Fix:
--- xz.diff begins here ---
Index: archivers/xz/files/patch-configure
===================================================================
RCS file: archivers/xz/files/patch-configure
diff -N archivers/xz/files/patch-configure
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ archivers/xz/files/patch-configure 28 Sep 2009 08:53:00 -0000
@@ -0,0 +1,20 @@
+--- configure.orig 2009-09-28 12:51:19.476208211 +0400
++++ configure 2009-09-28 12:51:29.547312607 +0400
+@@ -3882,7 +3882,7 @@ fi
+ if test "x$enable_assembler" = xyes; then
+ case $host_cpu in
+ i?86) enable_assembler=x86 ;;
+- x86_64) enable_assembler=x86_64 ;;
++ x86_64|amd64) enable_assembler=x86_64 ;;
+ *) enable_assembler=no ;;
+ esac
+ fi
+@@ -3940,7 +3940,7 @@ fi
+
+ if test "x$enable_unaligned_access" = xauto ; then
+ case $host_cpu in
+- i?86|x86_64|powerpc|powerpc64)
++ i?86|x86_64|amd64|powerpc|powerpc64)
+ enable_unaligned_access=yes
+ ;;
+ *)
--- xz.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list