From 5a5e123e61d5da877fcf459ddb9d4dfbffd753fb Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 22 Mar 2011 15:09:31 -0400 Subject: [PATCH] Override RUBYOPT when configuring Comedilib ruby binding installation. With an unmasked RUBYOPT="-rauto_gem" [1] the .config file ignores the DESTDIR environmental variable, for reasons I have not isolated. This leads to sandbox violations during `ruby setup.rb install` when the ebuild tries to install directly to /usr/lib/ruby/site_ruby/1.8/comedi.rb rather than ${D}/usr/lib/ruby/site_ruby/1.8/comedi.rb. error message: * Call stack: * ebuild.sh, line 56: Called src_install * environment, line 5179: Called die * The specific snippet of code: * ruby setup.rb install || die "ruby setup.rb install failed"; chmod sandbox violation: F: chmod S: deny P: /usr/lib/ruby/site_ruby/1.8/comedi.rb A: /usr/lib/ruby/site_ruby/1.8/comedi.rb R: /usr/lib/ruby/site_ruby/1.8/comedi.rb C: ruby setup.rb install and an identical violation with `F: open_wr`. [1] Set by dev-ruby/rubygems via /etc/env.d/10rubygems. --- sci-libs/comedilib/ChangeLog | 11 ++++++++++- sci-libs/comedilib/Manifest | 4 ++-- sci-libs/comedilib/comedilib-9999.ebuild | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/sci-libs/comedilib/ChangeLog b/sci-libs/comedilib/ChangeLog index 6b69ec7..4c11211 100644 --- a/sci-libs/comedilib/ChangeLog +++ b/sci-libs/comedilib/ChangeLog @@ -5,7 +5,16 @@ *comedilib-9999 (22 Mar 2011) 22 Mar 2012; W. Trevor King comedilib-9999.ebuild : - Follow upstream from CVS to Git. + - Follow upstream from CVS to Git. + - Override RUBYOPT when configuring ruby installation. With an + unmasked RUBYOPT="-rauto_gem" (set by dev-ruby/rubygems via + /etc/env.d/10rubygems), the .config file ignores the DESTDIR + environmental variable (for reasons I have not isolated). This + leads to sandbox violations during `ruby setup.rb install` when + the ebuild tries to install directly to + /usr/lib/ruby/site_ruby/1.8/comedi.rb rather than + ${D}/usr/lib/ruby/site_ruby/1.8/comedi.rb. + *comedilib-9999 (08 Feb 2011) diff --git a/sci-libs/comedilib/Manifest b/sci-libs/comedilib/Manifest index 18a9ce3..3e1c07a 100644 --- a/sci-libs/comedilib/Manifest +++ b/sci-libs/comedilib/Manifest @@ -1,4 +1,4 @@ AUX comedilib-9999-demo-Makefile.patch 2505 RMD160 76278a724696a5fc3f4fb9e1b297018b6ce83953 SHA1 bc3401ed2c69ac87144621eba6bbe825b16e679f SHA256 25fd857769c8c5390289db546cd8e7686372edcdbdea0ffd989b45689a8ba6b1 -EBUILD comedilib-9999.ebuild 3715 RMD160 ac7b45fa4d3ab32a819d9fdd0d17a8f4c040ed9b SHA1 ea5fb7b3bf2d00026deddc1fd5de67c620d183b9 SHA256 8f333522c27d018931720e599ca2d63c3a15b995f310f010c0a489123c80be82 -MISC ChangeLog 1905 RMD160 1b685a67c2c2d96053e95c247b06c8b15df1a295 SHA1 726dc8a5010c547b12c762425956fc8a41e2bf50 SHA256 616104d9b86887443f17e58a4215e46f47741d33b160885e962afd598e1a0954 +EBUILD comedilib-9999.ebuild 3726 RMD160 6c1f41801c6ebcc320b1b2098395f10c100d55bf SHA1 cf0590a1304c88f20eab364d54df6c5a97c4dd85 SHA256 09a9c2f0b79edc754fd3a1e1af41cb0038441838b4cb469f32d50cfbeb127bad +MISC ChangeLog 2384 RMD160 6bf83257645b2e009e3ddf6805d71e9f47b18d6b SHA1 fdc254f99a9cec7f34a82adb5f154f0fd69485ce SHA256 9ae0413d8dfb88d64421a536e80ea8e893d22d77aac8e7bafa795944d8cd18bf MISC metadata.xml 247 RMD160 6735f3a5dd2d7a2b70589d1693f35d54291b7147 SHA1 c015969fe50967340dd050a44cb9f8a30b5e34a5 SHA256 9e65060e5f9d0a50d28c7a69d9c27fed6c3037fdd3e420cc276627fde2794f72 diff --git a/sci-libs/comedilib/comedilib-9999.ebuild b/sci-libs/comedilib/comedilib-9999.ebuild index 20f791a..7b4ef5c 100644 --- a/sci-libs/comedilib/comedilib-9999.ebuild +++ b/sci-libs/comedilib/comedilib-9999.ebuild @@ -83,7 +83,7 @@ src_compile() pushd "${S}/swig/ruby" || die "failed to pushd" swig -ruby -o ext/comedi_ruby_wrap.c "-I${S}/include" ../comedi.i \ || die "swigging ruby binding failed" - DESTDIR="${D}" ruby setup.rb config --prefix="${D}/usrBBB" \ + RUBYOPT="" DESTDIR="${D}" ruby setup.rb config --prefix="${D}/usrBBB" \ -- \ --with-comedilib-include="${S}/include" \ --with-comedilib-lib="${S}/lib/.libs" \ -- 2.26.2