Subject: pkg/29512: libffi does not compile on NetBSD/amd64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <daniel@netbsd.org>
List: pkgsrc-bugs
Date: 02/23/2005 12:32:00
>Number:         29512
>Category:       pkg
>Synopsis:       libffi does not compile on NetBSD/amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 23 12:32:00 +0000 2005
>Originator:     Daniel de Kok
>Release:        NetBSD 2.0
>Organization:
	
>Environment:
	
	
System: NetBSD mindbender.taickim.net 2.0 NetBSD 2.0 (GENERIC) #0: Tue Nov 30 21:54:11 UTC 2004  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/amd64/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/amd64/compile/GENERIC amd64 
Architecture: amd64 
Machine: amd64 
>Description:
Compilation of libffi fails on NetBSD/amd64 with:

configure: error: libffi has not been ported to x86_64--netbsd

>How-To-Repeat:
cd /usr/pkgsrc/devel/libffi
make
>Fix:

diff -ruN libffi.old/distinfo libffi/distinfo
--- libffi.old/distinfo	2005-02-23 13:16:40.000000000 +0100
+++ libffi/distinfo	2005-02-23 13:13:09.000000000 +0100
@@ -2,3 +2,4 @@
 
 SHA1 (gcc-3.3.tar.bz2) = 18e23822c6dc9cb462e0ff88bc1b8a20c53da60a
 Size (gcc-3.3.tar.bz2) = 23447616 bytes
+SHA1 (patch-aa) = 1a9c2dbd70633eca2fc5f65b29cbff731d95e1f4
diff -ruN libffi.old/patches/patch-aa libffi/patches/patch-aa
--- libffi.old/patches/patch-aa	1970-01-01 01:00:00.000000000 +0100
+++ libffi/patches/patch-aa	2005-02-23 13:08:34.000000000 +0100
@@ -0,0 +1,10 @@
+--- configure.old	2005-02-23 12:57:22.000000000 +0100
++++ configure	2005-02-23 12:59:38.000000000 +0100
+@@ -2478,6 +2478,7 @@
+ s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
+ s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
+ x86_64-*-linux*) TARGET=X86_64; TARGETDIR=x86;;
++x86_64-*-netbsd*) TARGET=X86_64; TARGETDIR=x86;;
+ sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
+ esac
+ 

>Unformatted: