Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330251 - sci-libs/gsl USE=-cblas should not DEPEND on app-admin/eselect-cblas
Summary: sci-libs/gsl USE=-cblas should not DEPEND on app-admin/eselect-cblas
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 17:23 UTC by Jeroen Roovers (RETIRED)
Modified: 2010-08-09 09:36 UTC (History)
0 users

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 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-28 17:23:35 UTC
Even with USE="-cblas", I still get app-admin/eselect-cblas installed. The ebuilds do not tell me why this is the case, so if it is not an error in the ebuild, it should be documented in the ebuild.
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-08-04 18:34:58 UTC
There are two things that are source of misunderstanding:
1) sci-libs/gsl[-cblas] provides it's own implementation of cblas library [0], that's installed and can be used by other programs. Hence, the need for eselect-cblas.
2) you can link gsl with its internal implementation (-cblas) or external (cblas) like reference, atlas etc.

USE flag "cblas" is used only to distinguish alternatives in 2) and is described as:
+cblas :"Link gsl with external cblas provided by (virtual/cblas)" in metadata.xml

What additional documentation in ebuild you have in mind?

[0] http://www.gentoo.org/proj/en/science/blas-lapack.xml
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-08-05 15:53:19 UTC
We could probably solve this problem by changing the USE flag name. Some other packages name the flags accordingly:

sys-fs/ntfs3g:external-fuse - Use external FUSE library instead of internal one. Must be disabled for unprivileged mounting to work.
media-video/mplayer:external-ffmpeg - Use shared FFmpeg libraries instead of static bundled ones. Discouraged by upstream.
dev-lang/php:java-external - Use the external java extension rather than the bundled one
gd-external - Use the external version of gd rather than the bundled one (possibly dangerous)

Something like this, perhaps:

Index: metadata.xml
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-libs/gsl/metadata.xml,v
retrieving revision 1.4
diff -u -B -r1.4 metadata.xml
--- metadata.xml        19 Jan 2009 19:22:30 -0000      1.4
+++ metadata.xml        5 Aug 2010 15:51:04 -0000
@@ -16,7 +16,7 @@
   functions, physical constants, and much more. 
 </longdescription>
 <use>
-  <flag name='cblas'>Link gsl with external cblas provided by
-    (<pkg>virtual/cblas</pkg>)</flag>
+  <flag name='cblas-external'>Link gsl with external cblas provided by
+    (<pkg>virtual/cblas</pkg>) instead of shipped internal version</flag>
 </use>
 </pkgmetadata>
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-08-09 09:36:02 UTC
In tree, thanks!
+  09 Aug 2010; Kacper Kowalik <xarthisius@gentoo.org>
+  -files/gsl-1.6-deps.diff, -files/gsl-1.12-cblas.patch, gsl-1.13-r1.ebuild,
+  gsl-1.13-r2.ebuild, gsl-1.14.ebuild, gsl-1.14-r1.ebuild, metadata.xml:
+  Renamed cblas to cblas-external wrt bug 330251. Dropped ~ppc-macos due to
+  unsolved deps. Remove old patches.
+