Bug 2295340

Summary: dnf install: warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: arjun, codonell, dj, fberat, fweimer, jkolarik, jlaw, josmyers, mblaha, mcermak, mcoufal, mfabian, nsella, pfrankli, pkratoch, rpm-software-management, sipoyare, skolosov, suraj.ghimire7
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-03 13:37:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jens Petersen 2024-07-03 06:57:52 UTC
Frequently when updating or installing packages with dnf5 I see these warnings:

>>> Running trigger-install scriptlet: glibc-common-0:2.39.9000-26.fc41.x86_64warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead
warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead
warning: posix.exec(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead

Is this coming from dnf5 or glibc?


Reproducible: Always

Steps to Reproduce:
1. run dnf update in rawhide

Actual Results:  
Running trigger-install scriptlet: glibc-common-0:2.39.9000-26.fc41.x86_64 warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead

Expected Results:  
No warnings

Do not happen in F40

Comment 1 Marek Blaha 2024-07-03 07:22:40 UTC
The message originates in the rpm (see PR https://github.com/rpm-software-management/rpm/pull/2948), but is caused by glibc scriptlets which use deprecated functionality.
Re-assigning to glibc for further actions.

Comment 2 Carlos O'Donell 2024-07-03 13:37:56 UTC

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