Bug 2165939

Summary: sdformat: FTBFS in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Ben Beasley <code>
Component: sdformatAssignee: Rich Mattes <richmattes>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: richmattes, robotics
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/sdformat
Whiteboard:
Fixed In Version: sdformat-6.3.1-1.fc39 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-14 03:18:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.