[opensuse-packaging] missing or wrong dependencies in d:l:ruby:extensions
What needs to be done to install for example cucumber in SLE_12 or TW? Since I know next to nothing about ruby my naive approach goes like this: root@c111:~ # env -i zypper -vv se -sdt package cucumber ... | ruby2.2-rubygem-cucumber | package | 2.0.2-1.1 | x86_64 | ruby_extensions ... root@c111:~ # env -i zypper -vv in ruby2.2-rubygem-cucumber Verbosity: 2 Non-option program arguments: 'ruby2.2-rubygem-cucumber' Initializing Target Checking whether to refresh metadata for perl Checking whether to refresh metadata for python Checking whether to refresh metadata for ruby Checking whether to refresh metadata for ruby_extensions Checking whether to refresh metadata for tw-Essentials Checking whether to refresh metadata for tw-Extra Checking whether to refresh metadata for tw-Games Checking whether to refresh metadata for tw-Multimedia Checking whether to refresh metadata for tw-debug Checking whether to refresh metadata for tw-non-oss Checking whether to refresh metadata for tw-oss Loading repository data... Reading installed packages... Force resolution: No Selecting 'ruby2.2-rubygem-cucumber-2.0.2-1.1.x86_64' from repository 'ruby_extensions' for installation. Resolving package dependencies... Force resolution: No Problem: nothing provides rubygem(ruby:2.2.0:cucumber-core:1.2) >= 1.2 needed by ruby2.2-rubygem-cucumber-2.0.2-1.1.x86_64 Solution 1: do not install ruby2.2-rubygem-cucumber-2.0.2-1.1.x86_64 Solution 2: break ruby2.2-rubygem-cucumber-2.0.2-1.1.x86_64 by ignoring some of its dependencies Choose from above solutions by number or cancel [1/2/c] (c): Olaf -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 07/22/2015 02:07 PM, Olaf Hering wrote:
What needs to be done to install for example cucumber in SLE_12 or TW?
Since I know next to nothing about ruby my naive approach goes like this:
root@c111:~ # env -i zypper -vv se -sdt package cucumber ... | ruby2.2-rubygem-cucumber | package | 2.0.2-1.1 | x86_64 | ruby_extensions ... root@c111:~ # env -i zypper -vv in ruby2.2-rubygem-cucumber Verbosity: 2 Non-option program arguments: 'ruby2.2-rubygem-cucumber' Initializing Target Checking whether to refresh metadata for perl Checking whether to refresh metadata for python Checking whether to refresh metadata for ruby Checking whether to refresh metadata for ruby_extensions Checking whether to refresh metadata for tw-Essentials Checking whether to refresh metadata for tw-Extra Checking whether to refresh metadata for tw-Games Checking whether to refresh metadata for tw-Multimedia Checking whether to refresh metadata for tw-debug Checking whether to refresh metadata for tw-non-oss Checking whether to refresh metadata for tw-oss Loading repository data... Reading installed packages... Force resolution: No Selecting 'ruby2.2-rubygem-cucumber-2.0.2-1.1.x86_64' from repository 'ruby_extensions' for installation. Resolving package dependencies... Force resolution: No
Problem: nothing provides rubygem(ruby:2.2.0:cucumber-core:1.2) >= 1.2 needed by ruby2.2-rubygem-cucumber-2.0.2-1.1.x86_64 Solution 1: do not install ruby2.2-rubygem-cucumber-2.0.2-1.1.x86_64 Solution 2: break ruby2.2-rubygem-cucumber-2.0.2-1.1.x86_64 by ignoring some of its dependencies
Choose from above solutions by number or cancel [1/2/c] (c):
Somebody missed that new dependency while updating cucumber. I have submitted this package: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/ rubygem-cucumber-core Regards, Thomas Boerger -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJVr4iZAAoJEFo4j1UoOWC2o4sQAJH2KTOAAIUL1A/SdUAjZmru tewuh4GE0DTdhY2md1sAg+EKzZnm1xOvvwC3aBF/if2ImUujNr57AW4vR/5GfBRx TofxM6rd79I2rz01ZfFfsre1r0IWgLT7imk37WQRFaTBOsWbBhcKsV1Y3Kwouikv cORKV+pU4C+dXXRsKwXFPDDHVJT+HjP7UlK+q2NuM5FAfu4bsV+jI6BxQuqreIGC jj4iyT9/UglV6kp3TinwRGWcVoyyxEgPFjlLJXT90+hi8oMoXfkc6pNspFBqBlBx KlmPSRUm+9zp6NtTbXG+D3cjnSsKatAxLHGiysfE204NAW4xl/GZMc0K+sAeQCjb 7Q2mbnFQbVihuiMFi9If1jxWDC8FOM9DrdFRQIrunsnwsDx7xjkB0xjbdx3Sh7C6 lRw9Z5fl+mrNWAQut6aYUfa+6O/Os6bRfxZx8+7iMu7KWAYR9ztAUuCFdUsvni/w vNlajrgGkI7+JMqT+MZic9q5NsA7+WzWz5QOJsZkyaguvd+TxfaKdTj5IOUlknrB xk0d+zOTtjAPZWWeASiF4sDgDQH1nYsQm5dPJxgjTtty+cASRm1HNVdqU5OpmqA9 QewrLOEvMpaPQtG+8nQZNdE2M6VeIOwxj6vOdFuIShxkGjG3le8c1dDxh4SPqInF QoWEb6GP7wV6vU0Fx0a+ =9Onv -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Wed, Jul 22, Thomas Boerger wrote:
Somebody missed that new dependency while updating cucumber. I have submitted this package: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/ rubygem-cucumber-core
Thanks. Now install works, but something is missing: root@c111:~ # cucumber --help /usr/lib64/ruby/gems/2.2.0/gems/cucumber-2.0.2/bin/cucumber:4:in `load': cannot load such file -- /usr/lib64/ruby/gems/2.2.0/gems/cucumber-2.0.2/spec/simplecov_setup.rb (LoadError) from /usr/lib64/ruby/gems/2.2.0/gems/cucumber-2.0.2/bin/cucumber:4:in `<top (required)>' from /usr/bin/cucumber:23:in `load' from /usr/bin/cucumber:23:in `<main>' Olaf -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 07/23/2015 08:40 AM, Olaf Hering wrote:
root@c111:~ # cucumber --help /usr/lib64/ruby/gems/2.2.0/gems/cucumber-2.0.2/bin/cucumber:4:in `load': cannot load such file -- /usr/lib64/ruby/gems/2.2.0/gems/cucumber-2.0.2/spec/simplecov_setup.rb (LoadError) from /usr/lib64/ruby/gems/2.2.0/gems/cucumber-2.0.2/bin/cucumber:4:in `<top (required)>' from /usr/bin/cucumber:23:in `load' from /usr/bin/cucumber:23:in `<main>'
OMG, this is really a broken design. They are loading a file from the specs folder within the bin script? The spec folder is excluded from the RPM as this is usually a folder for the tests of the gem itself and not a runtime dependency... Can you confirm that it works if you install ruby2.x-rubygems-cucumber-testsuite? Regards, Thomas Boerger -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJVsOZCAAoJEFo4j1UoOWC26+MP/2AjLdcHTnxz5edJzhSlNT93 0jZ+Y5MXL02xR5gbvBz07+5bStZoElJD4hMGsjAF5ygQLPXpFlwtG1izF4JlOmTA +BsSckFWaKy2Nr4cE1N5bInVthpnGp3MzjeajVlZiE6ZMXJeZYsy57NMOAp3AVU2 glp0kWvlrOCub6a2cuPTisMbniFXgAaS6dJB8ntXkmzGzVYrTNmfKcetRfAtlcGC 7LGxWRV1R7ZyybR999gnjHw0fAXNdSFLi5epuDRQBl1RkC//SqlK4VulUoPiHrXb qcaanG/qSyll5uNxq9SSPzUaluWQJMuacHLFj3hUp+Wq9kvMJGND7uUZGfu2TRhA IzYwyTYGEx8SKix6uK7ve8c04PErSGCe9yKQI/BHOvYzKQfpDnz107gpBGVFIpy+ Cb69ivKz1q+DWOuIcH4PqzpG1BU6QvWu7sTDVR3ezS3bLT7iBZWPGbRxUuTiwz29 kRYg000rpfQw0xG54E2xTihx2P/+oBYNpS2JufBFyTJl/t0KfKgWlZF+tiQPEW0v LoQqVHMv++XNPjB9+V7Ob6vs5vNRbP5LubjkVQFDagvmEu3W4jJV61JxN0ozryo0 o36tW0F1HUexBMI8ope1FPCFq/cTsDjiZo9KtA7B7U3ExcsqBdt89c1GBKBR/mdm DH76GmFDfddKul6c0v/n =P1g1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 07/23/2015 03:04 PM, Thomas Boerger wrote:
Can you confirm that it works if you install ruby2.x-rubygems-cucumber-testsuite?
Tested that on my own, I can confirm that it works with the testsuite installed. We need to take a look how to fix that. tboerger@mimir: ~ <2.0.0-p247> <o> # zypper in ruby2.0-rubygem-cucumber <snip> tboerger@mimir: ~ <2.0.0-p247> <o> # cucumber --help /usr/lib64/ruby/gems/2.0.0/gems/cucumber-2.0.2/bin/cucumber:4:in `load': cannot load such file -- /usr/lib64/ruby/gems/2.0.0/gems/cucumber-2.0.2/spec/simplecov_setup.rb (LoadError) from /usr/lib64/ruby/gems/2.0.0/gems/cucumber-2.0.2/bin/cucumber:4:in `<top (required)>' from /usr/bin/cucumber:23:in `load' from /usr/bin/cucumber:23:in `<main>' tboerger@mimir: ~ <2.0.0-p247> <o> # zypper in ruby2.0-rubygem-cucumber-testsuite <snip> tboerger@mimir: ~ <2.0.0-p247> <o> # cucumber --help Usage: cucumber [options] [ [FILE|DIR|URL][:LINE[:LINE]*] ]+ <snip> Regards, Thomas Boerger -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJVsOgzAAoJEFo4j1UoOWC2HxoQAKzMESCugiJfMiUeLu3BICzo +AhMny4qjVSHW5HAJ8vsJmYu+3Zw1N2ZgZ2izWknm3bWwhm2c9ZkC/YabLE7jNKu R+MfyStA7hzx0uAHtCYIA0zNuRn39FF114b+pMKTDlUmRWDZK9baFPb3xq9daNu1 LDeaGKtb18euAJupWQlRv8oHr/+clbmshpgKuzTxI3X/RPNFrtyqaxlq0OXAxy8Z ibZ3O3G8bIozzwxb6UEjeq706vgJt89KG9JTLGq6+mGvgY3a1iQa2xLmwLJPim2Q i2MQ8vWLOu/PEpV7dj6z0xtegVBDBW96aYx5fx1e0mbUXLqL1qhqdp6pMmyCXyt2 u8sjBBHCquw09AyRaIWj/E4BH4DokKX9M3MkNDGVxLJ0FdzhVyN5G8N+/0zGUjqp SP/JgUiOn4UvaWA8s48Z3owCQKWmiZx3qq4ZtjR4M/GL3Xvy52m62dy15sCT+j1r JZ1peod4YjlHmeb5Wnyk4UhpkW0oTQFJzSs+io+RCb2e0mprVdKkPTjGBLU8ZNoa sErpLirBw8YzEJ/DbvuCdy7jaUr7L5oo06P/XhdAQiWQ1BafxXgv6nid55b4qy61 +9dRC6IalDn0PhuFsSURY7lwj8oNc158pnhZFAvEWz0B1Nu8XAz05NoT2unljEOu RPpneHL3H+/4W/3M77wM =U+3k -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 23 Jul 2015 15:12:19 +0200 Thomas Boerger <tboerger@suse.de> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
On 07/23/2015 03:04 PM, Thomas Boerger wrote:
Can you confirm that it works if you install ruby2.x-rubygems-cucumber-testsuite?
Tested that on my own, I can confirm that it works with the testsuite installed. We need to take a look how to fix that.
tboerger@mimir: ~ <2.0.0-p247> <o> # zypper in ruby2.0-rubygem-cucumber <snip>
tboerger@mimir: ~ <2.0.0-p247> <o> # cucumber --help /usr/lib64/ruby/gems/2.0.0/gems/cucumber-2.0.2/bin/cucumber:4:in `load': cannot load such file -- /usr/lib64/ruby/gems/2.0.0/gems/cucumber-2.0.2/spec/simplecov_setup.rb (LoadError) from /usr/lib64/ruby/gems/2.0.0/gems/cucumber-2.0.2/bin/cucumber:4:in `<top (required)>' from /usr/bin/cucumber:23:in `load' from /usr/bin/cucumber:23:in `<main>'
tboerger@mimir: ~ <2.0.0-p247> <o> # zypper in ruby2.0-rubygem-cucumber-testsuite <snip>
tboerger@mimir: ~ <2.0.0-p247> <o> # cucumber --help Usage: cucumber [options] [ [FILE|DIR|URL][:LINE[:LINE]*] ]+ <snip>
Problem is this commit. I really suggest to write issue on their github project. In general I think it is bad idea to use simplecov only for their own measurement. I think solution can be: 1) not measure coverage at all in cucumber tests 2) add official support for simplecov to cucumber workaround is to add something like: if ENV['SIMPLECOV'] load File.expand_path(File.dirname(__FILE__) + '/../spec/simplecov_setup.rb') end in cucumber bin Josef
Regards, Thomas Boerger -----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJVsOgzAAoJEFo4j1UoOWC2HxoQAKzMESCugiJfMiUeLu3BICzo +AhMny4qjVSHW5HAJ8vsJmYu+3Zw1N2ZgZ2izWknm3bWwhm2c9ZkC/YabLE7jNKu R+MfyStA7hzx0uAHtCYIA0zNuRn39FF114b+pMKTDlUmRWDZK9baFPb3xq9daNu1 LDeaGKtb18euAJupWQlRv8oHr/+clbmshpgKuzTxI3X/RPNFrtyqaxlq0OXAxy8Z ibZ3O3G8bIozzwxb6UEjeq706vgJt89KG9JTLGq6+mGvgY3a1iQa2xLmwLJPim2Q i2MQ8vWLOu/PEpV7dj6z0xtegVBDBW96aYx5fx1e0mbUXLqL1qhqdp6pMmyCXyt2 u8sjBBHCquw09AyRaIWj/E4BH4DokKX9M3MkNDGVxLJ0FdzhVyN5G8N+/0zGUjqp SP/JgUiOn4UvaWA8s48Z3owCQKWmiZx3qq4ZtjR4M/GL3Xvy52m62dy15sCT+j1r JZ1peod4YjlHmeb5Wnyk4UhpkW0oTQFJzSs+io+RCb2e0mprVdKkPTjGBLU8ZNoa sErpLirBw8YzEJ/DbvuCdy7jaUr7L5oo06P/XhdAQiWQ1BafxXgv6nid55b4qy61 +9dRC6IalDn0PhuFsSURY7lwj8oNc158pnhZFAvEWz0B1Nu8XAz05NoT2unljEOu RPpneHL3H+/4W/3M77wM =U+3k -----END PGP SIGNATURE-----
I -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlWw6dkACgkQV5WwXbxWL0i0YQCeO2a9DzCzWfJQ66lytPs6wC1P HhQAniF/aQC7pcLls84/rv1PqfrWt1JI =jk0K -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 23 Jul 2015 15:19:21 +0200 Josef Reidinger <jreidinger@suse.cz> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 23 Jul 2015 15:12:19 +0200 Thomas Boerger <tboerger@suse.de> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
On 07/23/2015 03:04 PM, Thomas Boerger wrote:
Can you confirm that it works if you install ruby2.x-rubygems-cucumber-testsuite?
Tested that on my own, I can confirm that it works with the testsuite installed. We need to take a look how to fix that.
tboerger@mimir: ~ <2.0.0-p247> <o> # zypper in ruby2.0-rubygem-cucumber <snip>
tboerger@mimir: ~ <2.0.0-p247> <o> # cucumber --help /usr/lib64/ruby/gems/2.0.0/gems/cucumber-2.0.2/bin/cucumber:4:in `load': cannot load such file -- /usr/lib64/ruby/gems/2.0.0/gems/cucumber-2.0.2/spec/simplecov_setup.rb (LoadError) from /usr/lib64/ruby/gems/2.0.0/gems/cucumber-2.0.2/bin/cucumber:4:in `<top (required)>' from /usr/bin/cucumber:23:in `load' from /usr/bin/cucumber:23:in `<main>'
tboerger@mimir: ~ <2.0.0-p247> <o> # zypper in ruby2.0-rubygem-cucumber-testsuite <snip>
tboerger@mimir: ~ <2.0.0-p247> <o> # cucumber --help Usage: cucumber [options] [ [FILE|DIR|URL][:LINE[:LINE]*] ]+ <snip>
Problem is this commit. I really suggest to write issue on their github project. In general I think it is bad idea to use simplecov only for their own measurement. I think solution can be:
1) not measure coverage at all in cucumber tests 2) add official support for simplecov to cucumber
workaround is to add something like: if ENV['SIMPLECOV'] load File.expand_path(File.dirname(__FILE__) + '/../spec/simplecov_setup.rb') end
in cucumber bin
Josef
and commit I forget to post https://github.com/cucumber/cucumber-ruby/commit/4b8343ab3d47c6f6a17faaf82a0... Josef -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlWw6gUACgkQV5WwXbxWL0h/OACgwsBoxeYWsmus1LB67kpL3oPY LHgAn2CJaRm0Z+YyLploVZw2rq4VyUDO =Nbqw -----END PGP SIGNATURE-----
participants (3)
-
Josef Reidinger
-
Olaf Hering
-
Thomas Boerger