Summary: | dev-ruby/* USE="-examples" install examples | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Petteri Räty (RETIRED) <betelgeuse> |
Component: | [OLD] Development | Assignee: | Gentoo Ruby Team <ruby> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Petteri Räty (RETIRED)
![]() USE=-doc emerge activerecord should install no RI doc with recent gems.eclass. WRT examples useflag, activerecord always install those example files and there is no easy/clean way to prevent that (Patching metadata.gz is no good because it's generated file. Patching Rakefile to modify gemspec and recreate gem is too risky). So I'd rather ignore those example files (which means WONTFIX). If RI doc is still installed, please reopen this bug.
> WRT examples useflag, activerecord always install those example files and there
> is no easy/clean way to prevent that (Patching metadata.gz is no good because
> it's generated file. Patching Rakefile to modify gemspec and recreate gem is
> too risky). So I'd rather ignore those example files (which means WONTFIX).
>
Then the eclass should respect some variable that is defined before inherit and makes sure that the examples use flag is not put to IUSE.
Okay. Removing examples useflag from ruby.eclass means re-adding it to ebuilds, which could take a while before this bug can be closed. (In reply to comment #3) > Okay. Removing examples useflag from ruby.eclass means re-adding it to ebuilds, > which could take a while before this bug can be closed. > Plaah, let me spell this out. RUBY_SUPPORTS_EXAMPLES="no" inherit ruby in ruby.eclass [[ "${RUBY_SUPPORT_EXAMPLES:-yes}" == "yes" ]] && IUSE="${IUSE} examples" solves the problem by adding this variable to this one ebuild and everything else continues to function as before. We could do that for gems.eclass because we can't split gem packages anyway. However I'm more concerned packages that have similar bugs. I'll check all through and fix this soon. There are 48 in total 355 ebuilds which really have examples or samples, listed below. The plan is correct ruby.eclass with a magic switch (off by default). These ebuilds will get examples flag added together with the switch turned on so that they use correct eclass. When all ebuilds are fixed and tested, remove the switch, which in turn removes examples use flag from all other ebuilds. cgikit-1.2.0 cgikit-1.2.1 dbi-0.1.1 eruby-1.0.4 eruby-1.0.5 FXRuby-1.4.7 FXRuby-1.6.4 fxruby_FXRuby-1.0.29 fxruby_FXRuby-1.2.6 IO-Reactor-0.0.6 mod_ruby-1.0.7 mod_ruby-1.2.2 mod_ruby-1.2.4 mod_ruby-1.2.5 ncurses-ruby-0.8 ncurses-ruby-0.9.1 ncurses-ruby-0.9.2 ncurses-ruby-1.1 qt4-qtruby-1.4.5 qt4-qtruby-1.4.6 qt4-qtruby-1.4.7 rcairo-1.0.0 rcairo-1.2.0 RMagick-1.10.1 RMagick-1.14.1 RMagick-1.3.2 RMagick-1.9.3 ruby_bdb-0.4.8 ruby_bdb-0.5.0 ruby_bdb-0.5.3 ruby_bdb-0.5.8 ruby_bdb-0.5.9 ruby-dbi_dbi-0.1.1 ruby-dbi_ruby-dbi-all-0.0.21 ruby-freedb-0.5 ruby-gdchart-1.0.0 rubygems-0.8.11 rubygems-0.9.0 ruby-gettext-0.8.0 ruby-pcap-0.6 ruby-termios-0.9.4 ruby-xslt_0.9.2 ruby-xslt_0.9.3 snmp-0.5.1 snmplib_snmp-0.5.1 sqlite-ruby-1.0 wxruby-0.4.0 xmpp4r-0.3 Everything is set. Now you can comment out the following code in ruby.eclass to make it effective. I'll remove the switch next week if nothing goes badly. # prepare for #145222 fix # once testing is ok, this condition will be removed if [ "${RUBY_BUG_145222}" != "yes" ]; then IUSE="examples" fi The exact list of ebuilds which keep examples useflag is (not as same as the previous one): IO-Reactor-0.0.6 cgikit-1.2.0 cgikit-1.2.1 eruby-1.0.5-r1 eruby-1.0.5 fxruby-1.2.6 fxruby-1.4.7 fxruby-1.6.4 ncurses-ruby-0.8 ncurses-ruby-0.9.1 ncurses-ruby-0.9.2 ncurses-ruby-1.1 rcairo-1.0.0 rcairo-1.2.0 rmagick-1.10.1 rmagick-1.14.1-r1 rmagick-1.14.1 rmagick-1.9.3-r1 ruby-bdb-0.4.8 ruby-bdb-0.5.0 ruby-bdb-0.5.3 ruby-bdb-0.5.8 ruby-bdb-0.5.9 ruby-dbi-0.0.21-r2 ruby-dbi-0.1.1 ruby-freedb-0.5 ruby-gdchart-1.0.0 ruby-gettext-0.8.0 ruby-pcap-0.6 ruby-termios-0.9.4 ruby-xslt-0.9.3 rubygems-0.8.11 rubygems-0.9.0-r1 rubygems-0.9.0 rubygems-0.9.1 snmplib-0.5.1 wxruby-0.4.0 xmpp4r-0.3 examples use flag has been removed from ruby.eclass. To ruby package maintainers: RUBY_BUG_145222 is legacy now, please remove it when you update ebuilds. |