Created attachment 327208 [details] system info This caused problems to me when using playman: * I set ruby:1.8 to be my current ruby version * paludis installed the bindings only to ruby:1.9 * playman does not contain a #!/bin/env-directive, hence using ruby1.8 The best would be to handle this like it is done in many python packages: install to all availbable ruby slots. As an alternative: if installed to latest ruby patch playman and place (e.g.) #!/bin/env ruby1.9 at the beginning of the file. (I did this as a temporary workaround) Is this an issue within the paludis build system? Should it be handled in portage or fixed upstream? _______ paludis does not install to different python versions but uses only the current active one. This fails with python:3.2: checking for Python.h... no File "<string>", line 1 import sys; print sys.prefix ^ SyntaxError: invalid syntax File "<string>", line 1 import sys; print sys.exec_prefix ^ SyntaxError: invalid syntax configure: error: Python.h not found in /include/python3.2 (I know - anothger issue - stumbled over it when looking how python is handled in paludis build system)
@ruby, I have no idea about Ruby in Gentoo, so I'd appreciate some tip. Is there a sane way to support single-Ruby install (alike python-single-r1)?
(In reply to Michał Górny from comment #1) > @ruby, I have no idea about Ruby in Gentoo, so I'd appreciate some tip. Is > there a sane way to support single-Ruby install (alike python-single-r1)? No, that is still on our todo list. But the "good" news is that you don't need this since paludis 1.4.2 is hardcoded to ruby 1.9. Quoting from the configure.ac: PKG_CHECK_MODULES(RUBY, [ruby-1.9], [ RUBY=`pkg-config --variable=ruby ruby-1.9` ], [ This explains the situation reported by Franz and confirmed by me that the eselected ruby doesn't matter. So the proper fix is to depend on dev-lang/ruby:1.9 playman should then use #!/usr/bin/ruby19 directly.
Added a hack for this and reported it upstream [1] + the :1.9 enforcing [2]. + 22 Oct 2013; Michał Górny <mgorny@gentoo.org> +paludis-1.4.2-r1.ebuild, + -paludis-1.4.2.ebuild: + Change the ruby dep to :1.9 and fix the script shebangs on this version. + Noticed by Hans de Graaff on bug #439372. [1]:http://paludis.exherbo.org/trac/ticket/1294 [2]:http://paludis.exherbo.org/trac/ticket/1295