Bug 2093924 - abrt fails to build: error: 'pgpHexStr' is deprecated
Summary: abrt fails to build: error: 'pgpHexStr' is deprecated
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Michal Srb
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.11 F37FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-06-06 11:49 UTC by Tomáš Hrnčiar
Modified: 2022-06-16 11:46 UTC (History)
9 users (show)

Fixed In Version: abrt-2.15.1-3.fc37
Clone Of:
Environment:
Last Closed: 2022-06-16 11:46:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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!


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