[PATCH] Remove duplicated load paths when empty version string is configured
My configuration options:
./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-ruby-version='' --with-rubyhdrdir=/usr/include --with-ruby-pc=ruby.pc --disable-rpath --enable-shared
$ ruby -e "puts $:"
$ ruby -e "puts $:"
BTW the duplicated paths caused ActiveSupport test suite errors as far as I remember . Not sure if it was already changed there.
#3 [ruby-core:52122] Updated by Vit Ondruch almost 4 years ago
- Status changed from Rejected to Open
- Assignee set to Nobuyoshi Nakada
Could you please explain? Why r39171 instead of applying my patch? Why there should be version in the path? Actually it is not Ruby version but Ruby ABI version, so it will not help you to install Ruby 1.9.1, 1.9.2 and 1.9.3 side by side, since all of them have the same ABI. In Fedora, we are pretty happy without the version for one year already.
#4 [ruby-core:52125] Updated by Vit Ondruch almost 4 years ago
Note that in 1.8.7 days, there was used also different, more generic approach  to remove duplicated load paths. However I don't think it is better solution.
#5 [ruby-core:53984] Updated by Vit Ondruch almost 4 years ago
One issue preventing this from work fixed in RubyGems . I am not aware of any other after rebuild of more then 400 of packages in Fedora against Ruby 2.0.
Actually, some builds depends on this field in ruby.pc , but they would fail the same if I would go with "ruby-version='foo'", which is allowed version string (I hope you are not goint to disable it, since I mentioned it here :)
#7 [ruby-core:57809] Updated by Vit Ondruch over 3 years ago
This is updated version of this patch against ruby 2.1 preview1: