Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268105 - app-mobilephone/obexftp-0.22 shouldn't define $RUBY unless USE flag is set
Summary: app-mobilephone/obexftp-0.22 shouldn't define $RUBY unless USE flag is set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Mobile Phone Developers (INACTIVE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-01 13:40 UTC by CJ Kucera
Modified: 2009-05-02 08:13 UTC (History)
2 users (show)

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 CJ Kucera 2009-05-01 13:40:02 UTC
This one's fairly minor...  When compiling obexftp-0.22 *without* the ruby USE flag, the ebuild will still set the environment var RUBY to /usr/bin/ruby18 during econf.  Despite having --disable-ruby specified in the configure line, though, the build system will attempt to call /usr/bin/ruby18 during the compilation process, which will fail for a user who doesn't have ruby installed.

The relevant bits from the compilation:

make[3]: Entering directory '/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby'
PREFIX=/usr /usr/bin/ruby18 extconf.rb --with-obexftp-include=../..
/bin/sh: /usr/bin/ruby18: No such file or directory
make[3]: *** [Makefile.ruby] Error 127

If you alter the ebuild so that $RUBY is only defined when the ruby USE flag is on, the problem takes care of itself.  I'm guessing that that's an easier workaround then trying to fix the build system itself.

Reproducible: Always

Steps to Reproduce:
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2009-05-02 08:13:33 UTC
Fixed in all current obexftp versions, w/o revision bump.