Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Issues with libffi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
creizlein
n00b
n00b


Joined: 10 Aug 2005
Posts: 14

PostPosted: Mon Jun 18, 2012 4:03 pm    Post subject: [solved] Issues with libffi Reply with quote

I have recently compiled gcc-4.5.3-r1 and in order to do so i had to remove libffi since it was blocking the package
gcc compiled just fine and runs well, but now some other packages, when i try to upgrade them, such as python or glib are trying to install libffi which is failing to do so (as expected)

Code:
 * Messages for package dev-libs/libffi-3.0.11:

 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 *
 * Detected file collision(s):
 *
 *      /usr/lib/libffi.so
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * sys-devel/gcc-4.5.3-r1
 *      /usr/lib/libffi.so
 *
 * Package 'dev-libs/libffi-3.0.11' NOT merged due to file collisions. If
 * necessary, refer to your elog messages for the whole content of the
 * above message.


is there any workaround to tell other packages to use the currently installed libffi by gcc or to tell gcc to not install it or something?


Last edited by creizlein on Mon Jun 18, 2012 8:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon Jun 18, 2012 6:51 pm    Post subject: Reply with quote

creizlein ...

If gcc provides libffi then you can add libffi to /etc/portage/profile/package.provided and any package that requires it will understand it to be installed.

so /etc/portage/profile/package.provided eg:

Code:
dev-libs/libffi-3.0.11

see this for further information.

best ... khay
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Mon Jun 18, 2012 8:12 pm    Post subject: Reply with quote

khayyam wrote:
creizlein ...

If gcc provides libffi then you can add libffi to /etc/portage/profile/package.provided and any package that requires it will understand it to be installed.

so /etc/portage/profile/package.provided eg:

Code:
dev-libs/libffi-3.0.11

see this for further information.

best ... khay


packages use libffi.pc to detect if it's installed or not by using pkg-config, like `pkg-config --modversion libffi`
gcc's libffi has never installed the libffi.pc
therefore you need/want dev-libs/libffi

sys-devel/gcc no longer installs libffi, it hasn't for couple of months... the USE=libffi got removed, so simplest solution is to rm -f the files it's complaining about and/or reinstall sys-devel/gcc to get libffi emerged
Back to top
View user's profile Send private message
creizlein
n00b
n00b


Joined: 10 Aug 2005
Posts: 14

PostPosted: Mon Jun 18, 2012 8:46 pm    Post subject: Reply with quote

thank you both for the replies, i ended up emerging a new gcc 4.5.3-r2, which indeed had the -libffi flag enabled and then i was able to emerge the virtual/libffi package without problems and continue the upgrades.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum