Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633592 - dev-ruby/ffi - Won't compile without "dev-ruby/rake" installed on the system
Summary: dev-ruby/ffi - Won't compile without "dev-ruby/rake" installed on the system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-05 21:50 UTC by andros705
Modified: 2017-10-07 06:00 UTC (History)
0 users

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 andros705 2017-10-05 21:50:32 UTC
I stumbled upon this issue when trying to compile dev-ruby/ffi-1.9.6-r2 on 5/10/2017.
dev-ruby/rake is not defined as a dependency for dev-ruby/ffi yet it won't compile without it.

https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-ruby/ffi/ffi-1.9.6-r2.ebuild

each_ruby_compile() {
	emake -Cext/ffi_c V=1
	cp ext/ffi_c/ffi_c.so lib/ || die

	${RUBY} -S rake -f gen/Rakefile || die "types.conf generation failed"
}

especially this part:
${RUBY} -S rake -f gen/Rakefile

-S looks for a rake script in PATH, it won't find it if it's not installed.
Comment 1 Hans de Graaff gentoo-dev Security 2017-10-07 06:00:12 UTC
Fixed by adding a built-time dependency on dev-ruby/rake. Thanks for reporting.