Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/libs
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13908

Modified Files:
        ffcall.info 
Log Message:
fix from JFM for building on x86_64
https://sourceforge.net/p/fink/package-submissions/3869/
Thanks JFM for all you did for Fink

Index: ffcall.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/stable/main/finkinfo/libs/ffcall.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ffcall.info 27 Apr 2012 23:21:06 -0000      1.2
+++ ffcall.info 31 May 2013 15:22:06 -0000      1.3
@@ -1,25 +1,39 @@
 Package: ffcall
 Version: 1.10
 Revision: 5
-### x86_64 fails
-### 
https://sourceforge.net/tracker/?func=detail&aid=3521402&group_id=1355&atid=101355
-Architecture: i386, powerpc
 Source: http://www.haible.de/bruno/gnu/%n-%v.tar.gz
 Source-MD5: 2db95007e901f3bc2ae7e5a9fe9ebea4
 GCC: 4.0
 BuildDepends: fink (>= 0.24.12-1)
 PatchFile: %n.patch
 PatchFile-MD5: ca57a5ca3baba307736e8daee1239f2c
+PatchScript: <<
+  %{default_script}
+  sed -i'' -e 's,avcall.h.in,avcall.h,' avcall/avcall-x86_64.c
+  sed -i'' -e 's,vacall.h.in,vacall.h,' -e 's,vacall_r.h.in,vacall_r.h,' 
{vacall,callback/vacall_r}/vacall-x86_64.c
+<<
 UseMaxBuildJobs: false
-### will probably need to add this flag when x86_64 becomes available
-### so x86_64 detection is accurate
-#ConfigureParams: --host=%m-apple-darwin`uname -r | cut -f 1 -d '.'`
+ConfigureParams: --build=%m-apple-darwin`uname -r|cut -f1 -d.` 
--host=%m-apple-darwin`uname -r|cut -f1 -d.`
+CompileScript: <<
+#!/bin/sh -ev
+  ./configure %c
+  if [ "%m" == "x86_64" ] ; then \
+       CFLAGS="-O2 -DHAVE_LONGLONG"
+       cd avcall; gcc $CFLAGS -S avcall-x86_64.c; cd -
+       cd vacall; gcc $CFLAGS -S vacall-x86_64.c; cd -
+       cd callback/vacall_r; gcc $CFLAGS -DREENTRANT -S vacall-x86_64.c; cd -
+  fi
+  make
+<<
 InstallScript: <<
   install -d -m 755 %i/share/man/man3
   make install prefix=%i mandir=%i/share/man
 <<
+## On i386, make check succeeds, but extracheck fails in avcall, and 
seg-faults in vacall and on callback/tests.c
+## On x86_64. make check and extracheck seg-fault in avcall, make check 
succeeds elsewhere;
+## extracheck fails also in vacall, and for callback/tests.c (but succeeds in 
trampoline and trampoline_r)
 InfoTest: <<
- TestScript: make check || exit 2
+ TestScript: make -k -i check extracheck || exit 0
 <<
 DocFiles: COPYING NEWS README
 Description: Foreign function call libraries
@@ -27,6 +41,14 @@
 Patch fixes common symbols problem and disables a regression 
 test that failed on a harmless situation.
 <<
+DescPort: <<
+From JFM (Thank you for all you did for Fink):
+https://sourceforge.net/p/fink/package-submissions/3869/
+To avoid asm errors for x86_64, first re-generate avcall-x86_64.s,
+and vacall-x86_64.s both in callback/vacall_r and in vacall.
+The latter 2 corresponding .c files are identical
+The CFLAGS come straight from the buildir.
+<<
 License: GPL
-Homepage: http://www.gnu.org/software/libffcall/
+Homepage: http://www.haible.de/bruno/packages-ffcall.html
 Maintainer: Jorge Acereda <jacer...@users.sourceforge.net>


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to