Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mix of Gem::PackageTask and Rake::GemPackageTask make impossible generate native/cross compiled gems #43

Closed
luislavena opened this issue Jun 4, 2011 · 0 comments
Assignees
Milestone

Comments

@luislavena
Copy link
Contributor

Using RubyGems' Gem::PackageTask on your project and mixing with rake-compilers usage of Rake::GemPackageTask seems to break native gem compilation.

Repository that reproduces the issue:

https://github.com/luislavena/test-ruby-c-extension/blob/master/Rakefile#L21-25

Output:

$ rake native gem
...
ln lib/testext.bundle pkg/testext-0.0.1/lib/testext.bundle
cd pkg/testext-0.0.1
mv testext-0.0.1.gem ..
cd -
mv testext-0.0.1-x86-darwin-10.gem pkg/testext-0.0.1-x86-darwin-10.gem
rake aborted!
No such file or directory - testext-0.0.1-x86-darwin-10.gem or pkg/testext-0.0.1-x86-darwin-10.gem

(See full trace by running task with --trace)
@ghost ghost assigned luislavena Jun 4, 2011
tenderlove added a commit to tenderlove/rake-compiler that referenced this issue Jul 28, 2013
* 'master' of http://github.com/luislavena/rake-compiler: (46 commits)
  Bump version and prepare for release
  Raise error when no make tool was found. Closes rake-compiler#53
  Prepare for release
  Update gemspec dependencies
  Solve deprecations from Cucumber upgrade
  Update development dependencies
  Get rid of RCov
  Update History.txt to reflect latest pull merges
  Bump supported versions for testing
  Narrow the pattern for mingw-gcc down, to only use the 32-bit one
  Generate dummy cross-compile target when no configuration exists.
  Update History.txt to reflect pull request merges
  Add some test harness to latest changes
  Pass extra Rake cmd line args to extconf.rb
  Emit JRuby cross-compile warnings only when actually doing cross-compiles.
  Use Gem::PackageTask consistently also on JavaExtensionTask
  Bump version
  Update History in preparation for a new release
  Update development dependencies (to match Isolate)
  Workaround Gem::Specification limitation. Closes rake-compiler#43
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant