Bug 2093924

Summary: abrt fails to build: error: 'pgpHexStr' is deprecated
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: abrtAssignee: Michal Srb <msrb>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rawhideCC: abrt-devel-list, abrt-sig, jakub, jmilan, mgrabovs, mhroncok, michal.toman, msrb, thrnciar
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: abrt-2.15.1-3.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-16 11:46:34 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: 2016048, 2045102    

Description Tomáš Hrnčiar 2022-06-06 11:49:39 UTC
abrt fails to build with Python 3.11.0b3.

rpm.c: In function 'rpm_load_gpgkey':
rpm.c:114:9: error: 'pgpHexStr' is deprecated [-Werror=deprecated-declarations]
  114 |         fingerprint = pgpHexStr(pubkey->keyid, sizeof(pubkey->keyid));
      |         ^~~~~~~~~~~
In file included from /usr/include/rpm/rpmpgp.h:21,
                 from rpm.c:26:
/usr/include/rpm/rpmstring.h:205:8: note: declared here
  205 | char * pgpHexStr(const uint8_t *p, size_t plen);
      |        ^~~~~~~~~
rpm.c:124:17: error: 'pgpHexStr' is deprecated [-Werror=deprecated-declarations]
  124 |                 fingerprint = pgpHexStr(subkey->keyid, sizeof(subkey->keyid));
      |                 ^~~~~~~~~~~
/usr/include/rpm/rpmstring.h:205:8: note: declared here
  205 | char * pgpHexStr(const uint8_t *p, size_t plen);
      |        ^~~~~~~~~
cc1: all warnings being treated as errors

https://docs.python.org/3.11/whatsnew/3.11.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/04493362-abrt/

For all our attempts to build abrt with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/abrt/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.11:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2022-06-06 11:59:40 UTC
I can see the same error in https://koschei.fedoraproject.org/package/abrt?collection=f37

Adjusting severity, we would like to do the Koji rebuild with Python 3.11 soon and without ABRT, there can be no successful compose.

Comment 2 Miro Hrončok 2022-06-16 11:03:47 UTC
The Python 3.11 mass rebuild is in progress and we are already at 80% of packages rebuilt. Please, solve this soon. I suppose e.g. by not using -Werror.

Comment 3 Michal Srb 2022-06-16 11:26:57 UTC
PR: https://src.fedoraproject.org/rpms/abrt/pull-request/19 ;)

Comment 4 Miro Hrončok 2022-06-16 11:46:34 UTC
Thanks!