Bug 1795199

Summary: rubygem-qpid_proton: FTBFS with Ruby 2.7
Product: [Fedora] Fedora Reporter: Jitka Plesnikova <jplesnik>
Component: rubygem-qpid_protonAssignee: Irina Boverman <iboverma>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: iboverma
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/rubygem-qpid_proton
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-02 14:52:13 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:
Bug Depends On:    
Bug Blocks: 1750908    

Description Jitka Plesnikova 2020-01-27 12:38:22 UTC
Description of problem:
Package rubygem-qpid_proton fails to build from source in Fedora rawhide with Ruby 2.7 with error below. I can be fixed by update to version 0.30.0 (BZ#1785381)

gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_PROTON_ENGINE_H -DHAVE_PROTON_MESSAGE_H -DHAVE_PROTON_SASL_H -DHAVE_PROTON_MESSENGER_H    -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DRUBY27 -m64 -o cproton.o -c cproton.c
cproton.c: In function 'pni_ruby_add_to_registry':
cproton.c:2443:11: warning: unused variable 'result' [-Wunused-variable]
 2443 |     VALUE result = rb_funcall(pni_ruby_get_proton_module(), rb_intern("add_to_registry"), 2, key, value);
      |           ^~~~~~
cproton.c: In function 'Init_cproton':
cproton.c:20439:67: error: 'CID_pn_encoder' undeclared (first use in this function); did you mean 'CID_pn_error'?
20439 |   rb_define_const(mCproton, "CID_pn_encoder", SWIG_From_int((int)(CID_pn_encoder)));
      |                                                                   ^~~~~~~~~~~~~~
      |                                                                   CID_pn_error
cproton.c:20439:67: note: each undeclared identifier is reported only once for each function it appears in
cproton.c:20440:67: error: 'CID_pn_decoder' undeclared (first use in this function); did you mean 'CID_pn_delivery'?
20440 |   rb_define_const(mCproton, "CID_pn_decoder", SWIG_From_int((int)(CID_pn_decoder)));
      |                                                                   ^~~~~~~~~~~~~~
      |                                                                   CID_pn_delivery

Version-Release number of selected component (if applicable):
0.29.0-2.fc32

Steps to Reproduce:
koji build --scratch f32 rubygem-qpid_proton-0.29.0-2.fc32.src.rpm

Dependency changes from the last successful build can be found here:
https://koschei.fedoraproject.org/build/7738932

The main change is that Ruby was updated to 2.7.

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

Comment 1 Ben Cotton 2020-02-11 17:25:11 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 2 Fedora Release Engineering 2020-02-16 04:32:30 UTC
Dear Maintainer,

your package has not been built successfully in 32. Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. Following the latest policy for such packages [2], your package
will be orphaned if this bug remains in NEW state more than 8 weeks.

A week before the mass branching of Fedora 33 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 31 will be
retired regardless of the status of this bug.

[1] https://fedoraproject.org/wiki/Updates_Policy
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedoraproject.org/wiki/Releases/33/Schedule

Comment 3 Fedora Release Engineering 2020-03-01 04:24:25 UTC
Dear Maintainer,

your package has not been built successfully in 32. Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. Following the latest policy for such packages [2], your package
will be orphaned if this bug remains in NEW state more than 8 weeks.

A week before the mass branching of Fedora 33 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 31 will be
retired regardless of the status of this bug.

[1] https://fedoraproject.org/wiki/Updates_Policy
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedoraproject.org/wiki/Releases/33/Schedule

Comment 4 Irina Boverman 2020-03-02 14:52:13 UTC
rubygem-qpid_proton-0.30.0-1.fc32 was built successfully on Feb. 4, 2020.