[Bug 1207307] New: mkmf fails to load
http://bugzilla.opensuse.org/show_bug.cgi?id=1207307 Bug ID: 1207307 Summary: mkmf fails to load Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.4 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Ruby Assignee: ruby-devel@suse.de Reporter: rfrohl@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 864237 --> http://bugzilla.opensuse.org/attachment.cgi?id=864237&action=edit reproducer Ruby package might be missing some pieces: $ ruby reproducer.rb mkmf.rb can't find header files for ruby at /usr/lib64/ruby/include/ruby.h $ ruby -v ruby 2.5.9p229 (2021-04-05 revision 67939) [x86_64-linux-gnu] works on tumbleweed though. According to [0] I would assume that mkmf should be there though. [0] https://ruby-doc.org/stdlib-2.5.0/libdoc/mkmf/rdoc/index.html -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207307 http://bugzilla.opensuse.org/show_bug.cgi?id=1207307#c1 --- Comment #1 from Robert Frohl <rfrohl@suse.com> --- for completeness, TW output: $ ruby reproducer.rb checking for ruby... yes $ ruby -v ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu] -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207307 http://bugzilla.opensuse.org/show_bug.cgi?id=1207307#c4 Robert Frohl <rfrohl@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- --- Comment #4 from Robert Frohl <rfrohl@suse.com> --- How about just shipping a additional copy of ruby.h in /usr/lib64/ruby/include with the ruby<version> package? This does not conflict with the devel package and would make a package from the stdlib work out of the box, without the need to install any additional, larger package. I tested this with the extracted ruby.h from the ruby2.5-devel rpm, without having the rpm installed, and that seems to fix the issue. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207307 http://bugzilla.opensuse.org/show_bug.cgi?id=1207307#c6 --- Comment #6 from Robert Frohl <rfrohl@suse.com> --- (In reply to Marcus R�ckert from comment #5)
that would be wrong. the "clean" solution would be to ship mkmf.rb in the devel package.
Could you expand on this a bit further, why this would be wrong? My thinking(from a user of the ruby library's perspective): I would expect that what is shipped as part of a package would also work and does not require me to dig into why a file is not found and also not pulled be the dependencies of the package either. Removing mkmf.rb completely from the stdlib rpm would put even more expectations on the user, to investigate the problem. From that ease of use/accessibility point of view I would think the below suggestion is a good middle ground. (In reply to Robert Frohl from comment #4)
How about just shipping a additional copy of ruby.h in /usr/lib64/ruby/include with the ruby<version> package?
ok, looked a bit further and think the above is actually wrong, as mkmf.rb comes from another package (ruby<version>-stdlib). The suggestion actually would be to ship ruby.h with ruby<version>-stdlib instead. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207307 http://bugzilla.opensuse.org/show_bug.cgi?id=1207307#c11 --- Comment #11 from Robert Frohl <rfrohl@suse.com> --- (In reply to Marcus R�ckert from comment #10)
use the which function from https://build.opensuse.org/package/view_file/home:darix:apps/update-all-the- things/update-all-the-things?expand=1
thanks for the pointer, I went for something like this as a workaround, but a far more simplistic version. Will update to this once I touch that code the next time. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com