Bug 2165939 - sdformat: FTBFS in Fedora Rawhide
Summary: sdformat: FTBFS in Fedora Rawhide
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sdformat
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rich Mattes
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-31 14:09 UTC by Ben Beasley
Modified: 2023-07-14 03:18 UTC (History)
2 users (show)

Fixed In Version: sdformat-6.3.1-1.fc39
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-14 03:18:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ben Beasley 2023-01-31 14:09:05 UTC
Description of problem:
Package sdformat fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
6.0.0-12.fc37

Steps to Reproduce:
koji build --scratch f38 sdformat-6.0.0-12.fc37.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/sdformat


cd /builddir/build/BUILD/sdformat-6.0.0/redhat-linux-build/sdf/1.5 && /usr/bin/ruby /builddir/build/BUILD/sdformat-6.0.0/tools/xmlschema.rb -s /builddir/build/BUILD/sdformat-6.0.0/sdf/1.5 -i /builddir/build/BUILD/sdformat-6.0.0/sdf/1.5/audio_sink.sdf -o /builddir/build/BUILD/sdformat-6.0.0/redhat-linux-build/sdf/1.5
/builddir/build/BUILD/sdformat-6.0.0/tools/xmlschema.rb:268:in `<main>': undefined method `exists?' for File:Class (NoMethodError)
elsif !File.exists?(infile)
           ^^^^^^^^
Did you mean?  exist?
gmake[2]: *** [sdf/1.5/CMakeFiles/schema1_5.dir/build.make:129: sdf/1.5/actor.xsd] Error 1


The File.exists? method is removed in Ruby 3.2 (https://docs.ruby-lang.org/en/3.2/NEWS_md.html#label-Removed+methods, https://bugs.ruby-lang.org/issues/17391).


Please see upstream PR https://github.com/gazebosim/sdformat/pull/1216.

Comment 1 Ben Cotton 2023-02-07 15:07:41 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 2 Fedora Update System 2023-07-14 03:13:41 UTC
FEDORA-2023-7a5ead94a2 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-7a5ead94a2

Comment 3 Fedora Update System 2023-07-14 03:18:57 UTC
FEDORA-2023-7a5ead94a2 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.