Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272058 - Please make dev-java/jffi use virtual/libffi
Summary: Please make dev-java/jffi use virtual/libffi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 272046
Blocks:
  Show dependency tree
 
Reported: 2009-06-01 08:15 UTC by Samuli Suominen (RETIRED)
Modified: 2009-06-04 18:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2009-06-01 08:15:52 UTC
As summary says, it's at keywordreq state in bug 272046.

Depending on sys-devel/gcc[libffi] isn't a solution, because that gets broken
when user does a gcc switch using gcc-config.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-06-03 17:19:41 UTC
This package doesn't respect cflags, so flag-o-matic failed.


Something like this is needed for the ffi.h to be found:

inherit eutils

then 

append-cflags $(pkg-config --cflags-only-I libffi)

and

the prev. line it had about finding libffi.so, to something like this,

ln -snf /usr/$(get_libdir)/libffi.so "build/jni/libffi-$(get_system_arch)-linux/.libs/libffi_convenience.a" || die

and this package has 2 slots, i don't know how to handle this properly for java. please fix.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-06-03 17:20:18 UTC
(In reply to comment #1)
> inherit eutils

inherit flag-o-matic, I mean
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-06-03 17:21:14 UTC
please be noted that USE libffi in gcc will be package.use.mask'd so this is a priority.
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-06-03 19:59:36 UTC
Should be fixed in the revbumps, guess I will leave this open for a while and see if it works for people and then remove the old revisions.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-06-04 18:17:09 UTC
old removed, need this asap to p.use.mask libffi in gcc to prevent wrong linking.