Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286733 - dev-libs/libffi should only complain about libffi USE flag if set
Summary: dev-libs/libffi should only complain about libffi USE flag if set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Samuli Suominen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-28 08:04 UTC by Dirkjan Ochtman (RETIRED)
Modified: 2009-10-14 10:05 UTC (History)
2 users (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 Dirkjan Ochtman (RETIRED) gentoo-dev 2009-09-28 08:04:34 UTC
libffi-3.0.8 currently comes with this warning:

 * Please unset USE flag libffi in sys-devel/gcc. There is no
 * file collision but your package might link to wrong library.

It might be nice if it'd only show that if I actually have libffi set (for gcc).

Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-09-28 11:06:04 UTC
There's no sane way to depend upon sys-devel/gcc USE flags because it's slotted and you can switch between with gcc-config.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-28 15:03:23 UTC
`has_version sys-devel/gcc[libffi]` would return true only if any version of sys-devel/gcc is installed with "libffi" USE flag enabled.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-09-28 15:49:25 UTC
+  28 Sep 2009; Samuli Suominen <ssuominen@gentoo.org> libffi-3.0.8.ebuild:
+  Use has_version to print warning only if sys-devel/gcc is built with USE
+  libffi. This can be made a blocking atom once sparc is done with
+  gnustep-base/gnustep-base and old versions are removed from tree. Thanks
+  to Dirkjan Ochtman and Arfrever Frehtes Taifersar Arahesis in bug 286733.

Half-fix.

Leaving this open, waiting for sparc.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-10-14 10:05:08 UTC
base/package.use.mask has sys-devel/gcc[libffi] masked now, and the useless warning is gone.