Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249565 - dev-ruby/sqlite3-ruby-1.2.4 unecessarily checks to see if swig was built with ruby USE flag
Summary: dev-ruby/sqlite3-ruby-1.2.4 unecessarily checks to see if swig was built with...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-02 02:07 UTC by B.J. Orvis
Modified: 2009-02-22 13:47 UTC (History)
1 user (show)

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


Attachments
(equery u swig && equery f swig) > equery_swig_with_ruby.txt (equery_swig_with_ruby.txt,22.36 KB, text/plain)
2008-12-04 22:42 UTC, B.J. Orvis
Details
(equery u swig && equery f swig) > equery_swig_no_use.txt (swig_files_no_use.txt,22.32 KB, text/plain)
2008-12-04 22:42 UTC, B.J. Orvis
Details
(equery u swig && equery f swig) > equery_swig_no_use.txt (equery_swig_no_use.txt,22.36 KB, text/plain)
2008-12-04 22:43 UTC, B.J. Orvis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description B.J. Orvis 2008-12-02 02:07:35 UTC
sqlite3-ruby refuses to install if swig was not built with the ruby USE flag set. However, the ruby USE flag only causes swig to create ruby examples, and it does not affect swig's ability to create ruby bindings.

From swig's README, when explaining its configure script:

The configure script will attempt to locate various packages on your machine
including Tcl, Perl5, Python and all the other target languages that SWIG
uses.  Don't panic if you get 'not found' messages--SWIG does not need these
packages to compile or run.   The configure script is actually looking for
these packages so that you can try out the SWIG examples contained
in the 'Examples' directory without having to hack Makefiles.
Comment 1 Hans de Graaff gentoo-dev Security 2008-12-02 06:50:13 UTC
Adding swig maintainer. Marijn, is this how swig works? If that is the case then I suspect there are many packages in the tree that check for swig's USE flags unnecessarily, and also the USE flag descriptions are misleading in this case.
Comment 2 B.J. Orvis 2008-12-04 22:40:09 UTC
Swig appears to always install all of its language-specific files, regardless of the USE flag settings. It has installed .swg and .i files for every language that swig supports, despite the fact that I only have a handful of those languages installed, and I had none of the USE flags enabled.

In fact, enabling the ruby USE flag did not install any additional files on my system. (this fits with what swig's README file claims: that it only uses the --with-$language arguments to make the example Makefiles work)
Comment 3 B.J. Orvis 2008-12-04 22:42:03 UTC
Created attachment 174283 [details]
(equery u swig && equery f swig) > equery_swig_with_ruby.txt
Comment 4 B.J. Orvis 2008-12-04 22:42:37 UTC
Created attachment 174284 [details]
(equery u swig && equery f swig) > equery_swig_no_use.txt
Comment 5 B.J. Orvis 2008-12-04 22:43:43 UTC
Created attachment 174286 [details]
(equery u swig && equery f swig) > equery_swig_no_use.txt
Comment 6 Marijn Schouten (RETIRED) gentoo-dev 2009-02-05 00:32:10 UTC
Hans, I have added a new version(1.3.38) of swig with no use flags for any supported languages as the bug reporter seems to be correct about swig. Please give it a try.
Comment 7 emerald 2009-02-06 19:17:57 UTC
Following files still check use flags with swig and should be fixed soon:

/usr/portage> grep -Rl 'built_with_use dev-lang/swig' *
dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.4.ebuild
dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.1.ebuild
media-gfx/graphviz/graphviz-2.12.ebuild
media-gfx/graphviz/graphviz-2.20.3.ebuild
rox-extra/musicbox/musicbox-027-r2.ebuild
sci-libs/scipy/scipy-0.7.0_rc2.ebuild
sci-physics/lhapdf/lhapdf-5.6.0.ebuild
sci-physics/lhapdf/lhapdf-5.5.1.ebuild

All those packages fail with the new swig version.
Comment 8 Hans de Graaff gentoo-dev Security 2009-02-22 13:47:11 UTC
dev-ruby/sqlite3-ruby-1.2.4 has been fixed to just depend on swig and not check its USE flags, and 1.2.1 is no longer in the tree.