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

gem_install.sh produces a hard to understand error message #11

Open
dcermak opened this issue Feb 26, 2019 · 3 comments
Open

gem_install.sh produces a hard to understand error message #11

dcermak opened this issue Feb 26, 2019 · 3 comments

Comments

@dcermak
Copy link

dcermak commented Feb 26, 2019

I have just tried to build winrm (v2.3.1) as an rpm and I get the following failure during the build from gem_install.sh:

[   11s] /usr/lib/rpm/gem_install.sh:83:in `map_executable': undefined method `[]' for false:FalseClass (NoMethodError)
[   11s]        from /usr/lib/rpm/gem_install.sh:242:in `block in <main>'
[   11s]        from /usr/lib/rpm/gem_install.sh:237:in `each'
[   11s]        from /usr/lib/rpm/gem_install.sh:237:in `<main>'
[   11s] error: Bad exit status from /var/tmp/rpm-tmp.ixL7hg (%install)

The corresponding OBS project is: https://build.opensuse.org/package/show/home:dancermak:branches:Virtualization:vagrant/rubygem-winrm

This issue occurs on all enabled OpenSUSE & SLE versions, so my guess is that winrm is doing something unexpected in their executable? Unfortunately my ruby knowledge is next to non-existent, so I don't know what could be the issue.

@dcermak dcermak changed the title gem_install.sh fails for rubygem-winrm gem_install.sh produces a hard to understand error message Feb 27, 2019
@dcermak
Copy link
Author

dcermak commented Feb 27, 2019

I have found out that the above issue is not a "real" bug in gem_install.sh. I have fixed it by including the following line in gem2rpm.yml:

:sources:

So maybe a suggestion for an improvement: could gem_install.sh please check whether it got the expected data from the config file and fail with an easier to understand error message?

@darix
Copy link
Member

darix commented Feb 27, 2019

the actual problem is gem2rpm

@dcermak
Copy link
Author

dcermak commented Feb 28, 2019

Is there a specific problem with gem2rpm that I could report upstream (since the error clearly occurs from within gem_install.sh)? Or would it be possible to report the problematic behavior from gem_install.sh?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants