Discussion:
Rubygem-* packages started failing for devel_languages_ruby_* repos
Robert Munteanu
2014-09-19 08:13:31 UTC
Permalink
Hi,

I received a notification this morning that two rubygem packages that
I maintain started failing for no apparent reason. One example is
rubygem-gh [1] . It builds just fine for the main repositories (
openSUSE_* and SLE_* ) but fails for the devel_languages_ruby_* repos
.

One random build log [2] says

[ 63s] ERROR: link target doesn't exist (neither in build root nor
in installed system):
[ 63s] /usr/share/doc/packages/rubygem-gh/LICENSE ->
/usr/lib/ruby/gems/gems/gh-0.13.2/LICENSE
[ 63s] Add the package providing the target to neededforbuild and Requires
[ 63s] INFO: relinking /usr/share/doc/packages/rubygem-gh/LICENSE ->
../../../../lib/ruby/gems/gems/gh-0.13.2/LICENSE (was
/usr/lib/ruby/gems//gems/gh-0.13.2/LICENSE)
[ 63s] error: Bad exit status from /var/tmp/rpm-tmp.37574 (%install)

That makes little sense to me, as the spec file is autogenerated, and
furthermore it works on the other repos.

Is this something that I should fix as a package maintainer? If it is,
I'd appreciate any pointers on how to fix it.

Thanks,

Robert



[1]: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-gh
[2]: https://build.opensuse.org/package/live_build_log/devel:languages:ruby:extensions/rubygem-gh/devel_languages_ruby_SLE_11_SP3/i586
--
http://robert.muntea.nu/
--
To unsubscribe, e-mail: opensuse-packaging+***@opensuse.org
To contact the owner, e-mail: opensuse-packaging+***@opensuse.org
marguerite
2014-09-20 02:41:28 UTC
Permalink
Post by Robert Munteanu
Is this something that I should fix as a package maintainer? If it is,
I'd appreciate any pointers on how to fix it.
Hi, Robert,

change "ln -s" to "ln -sf" will work.

"ln -s" suppose that the first variable "/usr/lib64/.../LICENSE" exists, which is apparently not because it will be provided by your package after the installation.

Marguerite��칻�&�zf���^�ˬz����"���˛���m�)z{.��+
marguerite
2014-09-20 02:53:18 UTC
Permalink
Post by marguerite
Hi, Robert,
change "ln -s" to "ln -sf" will work.
"ln -s" suppose that the first variable "/usr/lib64/.../LICENSE" exists, which is apparently not because it will be provided by your package after the installation.
Hi, Robert,

Sorry for the last email, that's not the reason for the failure, but this is:

[ 36s] 122916 4 -rw-r--r-- 1 abuild abuild 1059 Sep 20 02:45 /home/abuild/rpmbuild/BUILDROOT/rubygem-gh-0.13.2-5.1.x86_64/usr/lib64/ruby/gems/2.1.0/gems/gh-0.13.2/LICENSE

Your LICENSE file is at /usr/lib64/ruby/gems/2.1.0/gems/

But you wanted to link:

/usr/lib64/ruby/gems/gems/gh-0.13.2/LICENSE

Reason: The %{rb_ver} macro didn't expand.

So you have to check if ruby main package has something changed in ruby.macros.

Marguerite��칻�&�zf���^�ˬz����"���˛���m�)z{.��+
Robert Munteanu
2014-09-26 13:23:11 UTC
Permalink
Post by marguerite
Reason: The %{rb_ver} macro didn't expand.
So you have to check if ruby main package has something changed in ruby.macros.
Thanks for the sleuthing! However, that looks way over my head so
hopefully "someone" will figure out what to do.

Robert
--
http://robert.muntea.nu/
--
To unsubscribe, e-mail: opensuse-packaging+***@opensuse.org
To contact the owner, e-mail: opensuse-packaging+***@opensuse.org
Robert Munteanu
2014-10-03 06:02:24 UTC
Permalink
On Fri, Sep 26, 2014 at 4:23 PM, Robert Munteanu
Post by Robert Munteanu
Post by marguerite
Reason: The %{rb_ver} macro didn't expand.
So you have to check if ruby main package has something changed in ruby.macros.
Thanks for the sleuthing! However, that looks way over my head so
hopefully "someone" will figure out what to do.
As it turns out, there's a change related to ruby packaging that I
need to adapt to, see

http://lists.opensuse.org/opensuse-ruby/2014-09/msg00004.html
http://lists.opensuse.org/opensuse-ruby/2014-09/msg00007.html

Somehow I think it would've been nice to announce on -packaging as
well. I'm not a big time rubygem maintainer so I don't subscribe to
-ruby.

Oh well...

Robert
Post by Robert Munteanu
Robert
--
http://robert.muntea.nu/
--
http://robert.muntea.nu/
--
To unsubscribe, e-mail: opensuse-packaging+***@opensuse.org
To contact the owner, e-mail: opensuse-packaging+***@opensuse.org
Loading...