Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71127 - gcc needs a libffi USE flag
Summary: gcc needs a libffi USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-14 01:10 UTC by Cletus Lichte
Modified: 2004-11-28 15:48 UTC (History)
1 user (show)

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


Attachments
configures gcc 3.4.X series to not make libffi a dependency of solely libgcj (libffi-without-libgcj.patch,1.62 KB, patch)
2004-11-25 13:39 UTC, Armando Di Cianno (RETIRED)
Details | Diff
Example gcc 3.4.1 with libffi (gcc-3.4.1-r4.ebuild,30.92 KB, text/plain)
2004-11-25 13:40 UTC, Armando Di Cianno (RETIRED)
Details
Example gcc 3.4.3 with libffi (gcc-3.4.3-r1.ebuild,13.27 KB, text/plain)
2004-11-25 13:41 UTC, Armando Di Cianno (RETIRED)
Details
Differences for libffi use flag for ebuild (works with posted gcc patch) (gcc-3.4.3-libffi-use-flag.diff,1.26 KB, text/plain)
2004-11-26 20:39 UTC, Armando Di Cianno (RETIRED)
Details
Fixes libffi configure and Makfile scripts to install into the correct taget directory (libffi-nogcj-lib-path-fix.patch,1.65 KB, patch)
2004-11-28 15:48 UTC, Armando Di Cianno (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cletus Lichte 2004-11-14 01:10:33 UTC
Currently, in order to get libffi installed, there is a separate ebuild from the gcc ebuild.  The libffi ebuild is a different version than the gcc version that is on my system and this is causing unstable GNUstep apps.  I don't want to set gcj to get libffi as I don't use java, plus it adds over an hour of compile time.  There needs to be some sort of USE flag for gcc so that it will install libffi, without compiling all the java stuff.  This would also cut down on download time since the libffi ebuild must download another version of gcc just to compile and install libffi.  Thank you.
Comment 1 Armando Di Cianno (RETIRED) gentoo-dev 2004-11-14 13:02:10 UTC
Just a note, but I would be really great to see this feature add to gcc.  Keeping libffi (as a seperate ebuild) "in sync" with a user's gcc is gravely annoying.

Currently, libffi is only installed with gcj enabled, it seems.  Please check dev-libs/libffi/files for patches to allow libffi to build w/o gcj enabled (simple configure changes).  There has been a large handful if issues that have mysteriously disappeared when a user used a libffi version that was "in sync" with their gcc install, and this feature would completely do away with that problem.

Offering big hugs if someone in toolchain fixes this.  I would have done so already, but I honestly don't want to monkey around with the gcc ebuilds. :-\
Comment 2 Armando Di Cianno (RETIRED) gentoo-dev 2004-11-25 13:39:09 UTC
Created attachment 44745 [details, diff]
configures gcc 3.4.X series to not make libffi a dependency of solely libgcj
Comment 3 Armando Di Cianno (RETIRED) gentoo-dev 2004-11-25 13:40:10 UTC
Created attachment 44746 [details]
Example gcc 3.4.1 with libffi
Comment 4 Armando Di Cianno (RETIRED) gentoo-dev 2004-11-25 13:41:22 UTC
Created attachment 44747 [details]
Example gcc 3.4.3 with libffi
Comment 5 Armando Di Cianno (RETIRED) gentoo-dev 2004-11-25 13:43:26 UTC
The newly added patches allow libffi to be built by itself when gcc is installed.  They depend on a local use flag of 'libffi'.  It works for the example ebuilds.  For my needs for this bug, I'm okay requiring gcj when libffi is needed in gcc-3.3.X series.
Comment 6 Travis Tilley (RETIRED) gentoo-dev 2004-11-25 15:19:33 UTC
could you submit just a diff for 3.4.3? it's easier to see what you actually changed this way.
Comment 7 Armando Di Cianno (RETIRED) gentoo-dev 2004-11-26 20:38:34 UTC
added myself to the CC list
Comment 8 Armando Di Cianno (RETIRED) gentoo-dev 2004-11-26 20:39:36 UTC
Created attachment 44804 [details]
Differences for libffi use flag  for ebuild (works with posted gcc patch)
Comment 9 Travis Tilley (RETIRED) gentoo-dev 2004-11-27 11:38:38 UTC
this requires some further editing to work as expected all the time and not have multiple gcc versions clash. but dont worry, i'll get to it.
Comment 10 Travis Tilley (RETIRED) gentoo-dev 2004-11-27 12:10:45 UTC
...and while making sure libs dont get installed outside the gcc ${LIBPATH} i noticed that the libtool libdir fixer thingie has been broken since pre-3.3.3 days and nobody noticed. so yeah, that needs to be fixed too. o.o
Comment 11 Travis Tilley (RETIRED) gentoo-dev 2004-11-27 15:25:27 UTC
added to 3.4.3-r1
Comment 12 Armando Di Cianno (RETIRED) gentoo-dev 2004-11-28 15:48:11 UTC
Created attachment 44896 [details, diff]
Fixes libffi configure and Makfile scripts to install into the correct taget directory

- works with the other libffi gcc patch (use it right after the first patch)
- seems to fix paths in the .la file too