Bug 2321923 - DNF5 shows warnings on erase action
Summary: DNF5 shows warnings on erase action
Keywords:
Status: CLOSED DUPLICATE of bug 2291869
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 41
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-26 13:26 UTC by Gurenko Alex
Modified: 2024-10-29 05:26 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-10-29 05:26:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Gurenko Alex 2024-10-26 13:26:56 UTC
Description of problem: DNF5 shows warnings on package upgrade at the erase stage. For example:

`[6/6] Erasing intel-media-driver-0:24.2.5-1.fc41.x86_64                                                   100% [==================] |  28.0   B/s |   9.0   B | -00m00s
>>> Running trigger-post-uninstall scriptlet: glibc-common-0:2.40-3.fc41.x86_64warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead`


Version-Release number of selected component (if applicable):

$ dnf --version
dnf5 version 5.2.6.2
dnf5 plugin API version 2.0
libdnf5 version 5.2.6.2
libdnf5 plugin API version 2.0

How reproducible: 100%


Steps to Reproduce:
1. Upgrade a package that has erase action

Actual results:

`warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead`

Expected results:

I would expect no warning, I don't know if fedora requires to update packages or what needs to be done, but the output may scare a lot of people when they will switch to dnf5

Additional info:

Comment 1 Colin J Thomson 2024-10-26 15:38:17 UTC
This appeared with the latest version of RPM, showing the deprecation warnings, more info can be found here:

https://github.com/rpm-software-management/rpm/issues/3323

Comment 2 amatej 2024-10-29 05:26:19 UTC

*** This bug has been marked as a duplicate of bug 2291869 ***


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