FS#6660 - libffi package needed

Attached to Project: Arch Linux
Opened by Sergej Pupykin (sergej) - Tuesday, 20 March 2007, 18:12 GMT
Last edited by Jan de Groot (JGC) - Monday, 28 May 2007, 21:06 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Both gcc-gcj and g-wrap packages contains libffi, that should be separate package as in other distros.

So I request to make libffi package and remove it from gcc-gcj.

I'll fix g-wrap after it...
This task depends upon

Closed by  Jan de Groot (JGC)
Monday, 28 May 2007, 21:06 GMT
Reason for closing:  Fixed
Additional comments about closing:  libffi-4.2.0-1 from testing installs the includefiles in the correct place. It will move as soon as gcc 4.2 moves to current.
Comment by Roman Kyrylych (Romashka) - Wednesday, 21 March 2007, 00:50 GMT
These files are conflicting:
/usr/lib/libffi.so
/usr/lib/libffi.so.4
/usr/lib/libffi.so.4.0.1
(taken from http://bugs.archlinux.org/task/6664)
Comment by Sergej Pupykin (sergej) - Wednesday, 21 March 2007, 09:34 GMT
Other way is to put g-wrap as gcc-gcj depends and remove libffi from gcc-gcj.
Comment by Jan de Groot (JGC) - Wednesday, 21 March 2007, 09:44 GMT
where g-wrap is a community package...

We have plans about a redo of our whole gcc package layout, so this will get fixed by that time.
Comment by Sergej Pupykin (sergej) - Wednesday, 21 March 2007, 09:55 GMT
>> where g-wrap is a community package...

It is not problem to move it into extra instead of creating extra/libffi :)

>> We have plans about a redo of our whole gcc package layout, so this will get fixed by that time.

Ok, I see. We'll wait...
Comment by Jan de Groot (JGC) - Friday, 27 April 2007, 21:47 GMT
Ok, there's a standalone libffi now, g-wrap can use it. gcc-gcj has not been rebuilt yet with this one, I'm planning to integrate Redhats changes to use eclipse with gcj to make it support java 5.0. I don't have a estimate when this will be done.
Comment by Sergej Pupykin (sergej) - Saturday, 28 April 2007, 09:49 GMT
Still cannot compile gnucash

ffitarget.h is absent (it included from ffi.h)
Comment by Sergej Pupykin (sergej) - Monday, 28 May 2007, 14:59 GMT
$ diff -wbBu PKGBUILD.org PKGBUILD
--- PKGBUILD.org 2007-04-28 01:42:46.000000000 +0400
+++ PKGBUILD 2007-05-28 18:58:50.000000000 +0400
@@ -3,12 +3,12 @@

pkgname=libffi
pkgver=4.1.2
-pkgrel=1
+pkgrel=2
pkgdesc="A portable, high level programming interface to various calling conventions."
arch=('i686' 'x86_64')
url="http://sourceware.org/libffi"
depends=('glibc')
-options=('nolibtool')
+options=('!libtool')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,java}-${pkgver}.tar.bz2)
md5sums=('2af3fb599635219171c6ae1f3034888a' '83cad4d52ff4a47b69e57012a5efe534')

@@ -19,5 +19,6 @@
../gcc-${pkgver}/libffi/configure --prefix=/usr \
--enable-shared --libdir=/usr/lib --disable-multilib
make || return 1
- make DESTDIR=${startdir}/pkg install
+ make DESTDIR=${startdir}/pkg install || return 1
+ install -D -m 0644 ../gcc-${pkgver}/libffi/src/x86/ffitarget.h ${startdir}/pkg/usr/include/ffitarget.h
}
Comment by Sergej Pupykin (sergej) - Monday, 28 May 2007, 14:59 GMT
$ cat PKGBUILD
# $Id: PKGBUILD,v 1.1 2007/04/27 21:42:46 jgc Exp $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libffi
pkgver=4.1.2
pkgrel=2
pkgdesc="A portable, high level programming interface to various calling conventions."
arch=('i686' 'x86_64')
url="http://sourceware.org/libffi"
depends=('glibc')
options=('!libtool')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,java}-${pkgver}.tar.bz2)
md5sums=('2af3fb599635219171c6ae1f3034888a' '83cad4d52ff4a47b69e57012a5efe534')

build() {
cd ${startdir}/src
mkdir gcc-build
cd gcc-build
../gcc-${pkgver}/libffi/configure --prefix=/usr \
--enable-shared --libdir=/usr/lib --disable-multilib
make || return 1
make DESTDIR=${startdir}/pkg install || return 1
install -D -m 0644 ../gcc-${pkgver}/libffi/src/x86/ffitarget.h ${startdir}/pkg/usr/include/ffitarget.h
}

Loading...