Terminal output: Running trigger-post-uninstall scriptlet: glibc-common-0:2.39.9000-18.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 Reproducible: Always
Thanks for submitting the report, we'll look at improving what we do in the spec file and likely add a conditional to check for rpm.execute() availaiblity. The change was made recently last year to ease the transition burden for downstream builds that were still deploying with RPM 4.14.
*** Bug 2293022 has been marked as a duplicate of this bug. ***
We discussed this issue recently and we think we can detect rpm.execute availability in the Lua code and use that instead. Just duplicating what I said in 2293022 here: The rpm 4.14 version requirement comes from the CentOS Stream 10 and RHEL10 bootstrap effort. See https://issues.redhat.com/browse/RHEL-19045 We expect that to be able to clean this up for Rawhide and Fedora 41 in short order.
*** Bug 2295340 has been marked as a duplicate of this bug. ***
The work is blocked on having support for a non-deprecated way to redirect a stream. https://github.com/rpm-software-management/rpm/issues/3192 We might be able to come up with a workaround, but we don't know.
For an action that only happens on upgrade, I think you could just as well use os.execute() and let shell handle the redirect.
(In reply to Carlos O'Donell from comment #5) > https://github.com/rpm-software-management/rpm/issues/3192 This was addressed upstream at the end of last month in https://github.com/rpm-software-management/rpm/pull/3241 which according to the 4.20 draft release-notes should be rawhide at least now (and also f41 updates-testing). So I guess the new lua rpm.spawn() could be tested now in Rawhide. There is also https://github.com/rpm-software-management/rpm/pull/3270
*** Bug 2316442 has been marked as a duplicate of this bug. ***
*** Bug 2318024 has been marked as a duplicate of this bug. ***
(In reply to Jens Petersen from comment #7) > (In reply to Carlos O'Donell from comment #5) > > https://github.com/rpm-software-management/rpm/issues/3192 > > This was addressed upstream at the end of last month in > https://github.com/rpm-software-management/rpm/pull/3241 > which according to the 4.20 draft release-notes should be > rawhide at least now (and also f41 updates-testing). > So I guess the new lua rpm.spawn() could be tested now in Rawhide. > > There is also https://github.com/rpm-software-management/rpm/pull/3270 Does this mean that the issue _should_ be gone in RPM 4.20 (release) on F41? I'm still getting the warning with the following software on F41 with updates-testing enabled: ``` dnf5-5.2.6.2-1.fc41.x86_64 glibc-common-2.40-3.fc41.x86_64 rpm-4.20.0-1.fc41.x86_64 ```
The linked RPM pull request makes it sound as if the deprecation warnings are only suppressed for packages built with old RPM versions on which those functions were not deprecated yet. But everything in Fedora 41+ is built with RPM version where those *are* deprecated ...
*** Bug 2319139 has been marked as a duplicate of this bug. ***
*** Bug 2321923 has been marked as a duplicate of this bug. ***
FEDORA-2024-6aaddaedd3 (glibc-2.40-9.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-6aaddaedd3
@micmor
FEDORA-2024-6aaddaedd3 has been pushed to the Fedora 41 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-6aaddaedd3` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-6aaddaedd3 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
*** Bug 2323102 has been marked as a duplicate of this bug. ***
*** Bug 2323123 has been marked as a duplicate of this bug. ***
FEDORA-2024-6aaddaedd3 (glibc-2.40-9.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report.
This probably warrants another bug report, but the scriplets got noisy again: $ sudo dnf update ... [1/7] java-17-openjdk-1:17.0.13.0.11-3. 100% | 1.1 MiB/s | 425.0 KiB | 00m00s [2/7] java-17-openjdk-devel-1:17.0.13.0 100% | 7.4 MiB/s | 4.7 MiB | 00m01s [3/7] policycoreutils-0:3.7-5.fc41.x86_ 100% | 4.3 MiB/s | 212.2 KiB | 00m00s [4/7] python3-policycoreutils-0:3.7-5.f 100% | 9.3 MiB/s | 2.2 MiB | 00m00s [5/7] policycoreutils-python-utils-0:3. 100% | 1.4 MiB/s | 50.2 KiB | 00m00s [6/7] kdepim-addons-0:24.08.3-2.fc41.x8 100% | 2.1 MiB/s | 3.3 MiB | 00m02s [7/7] java-17-openjdk-headless-1:17.0.1 100% | 4.3 MiB/s | 44.3 MiB | 00m10s -------------------------------------------------------------------------------- [7/7] Total 100% | 5.2 MiB/s | 55.2 MiB | 00m11s Running transaction [ 1/16] Verify package files 100% | 17.0 B/s | 7.0 B | -00m00s >>> Running pre-transaction scriptlet: java-17-openjdk-headless-1:17.0.13.0.11-3dnf 5 is printing lua only to stdout, but may skip first and last line The java-17-openjdk package is deprecated and may no longer receive updates. Since f42 install adoptium-temurin-java-repository and install temurin-17-jre https://fedoraproject.org/wiki/Changes/ThirdPartyLegacyJdks#adoptium-temurin-java-repository It currently lacks rpm-based debuginfo, fastdebugs and slowdebugs and headless subpackage. It also lacks offline javadocs and jdk duplicates jre [ 1/16] Verify package files 100% | 17.0 B/s | 7.0 B | -00m00s >>> Running pre-transaction scriptlet: java-17-openjdk-devel-1:17.0.13.0.11-3.fcdnf 5 is printing lua only to stdout, but may skip first and last line The java-17-openjdk-devel package is deprecated and may no longer receive updates. Since f42 install adoptium-temurin-java-repository and install temurin-17-jdk https://fedoraproject.org/wiki/Changes/ThirdPartyLegacyJdks#adoptium-temurin-java-repository It currently lacks rpm-based debuginfo, fastdebugs and slowdebugs and headless subpackage. It also lacks offline javadocs and jdk duplicates jre [ 1/16] Verify package files 100% | 42.0 B/s | 7.0 B | 00m00s [ 2/16] Prepare transaction 100% | 33.0 B/s | 14.0 B | 00m00s [ 3/16] Upgrading java-17-openjdk-headl 100% | 71.8 MiB/s | 185.6 MiB | 00m03s >>> Running post-install scriptlet: java-17-openjdk-headless-1:17.0.13.0.11-3.fc >>> Finished post-install scriptlet: java-17-openjdk-headless-1:17.0.13.0.11-3.f >>> Scriptlet output: >>> dnf 5 is printing bash only to logs >>> The java-17-openjdk package is deprecated and may no longer receive updates. >>> https://fedoraproject.org/wiki/Changes/ThirdPartyLegacyJdks#adoptium-temurin >>> It currently lacks rpm-based debuginfo, fastdebugs and slowdebugs and headle >>> [ 4/16] Upgrading java-17-openjdk-1:17. 100% | 19.9 MiB/s | 1.1 MiB | 00m00s [ 5/16] Upgrading policycoreutils-0:3.7 100% | 9.8 MiB/s | 745.1 KiB | 00m00s [ 6/16] Upgrading python3-policycoreuti 100% | 44.9 MiB/s | 5.9 MiB | 00m00s [ 7/16] Upgrading policycoreutils-pytho 100% | 9.6 MiB/s | 97.8 KiB | 00m00s [ 8/16] Upgrading java-17-openjdk-devel 100% | 151.0 MiB/s | 8.9 MiB | 00m00s >>> Running post-install scriptlet: java-17-openjdk-devel-1:17.0.13.0.11-3.fc41. >>> Finished post-install scriptlet: java-17-openjdk-devel-1:17.0.13.0.11-3.fc41 >>> Scriptlet output: >>> dnf 5 is printing bash only to logs >>> The java-17-openjdk-devel package is deprecated and may no longer receive up >>> https://fedoraproject.org/wiki/Changes/ThirdPartyLegacyJdks#adoptium-temurin >>> It currently lacks rpm-based debuginfo, fastdebugs and slowdebugs and headle >>> [ 9/16] Upgrading kdepim-addons-0:24.08 100% | 27.3 MiB/s | 12.8 MiB | 00m00s [10/16] Removing java-17-openjdk-devel- 100% | 2.0 KiB/s | 114.0 B | 00m00s [11/16] Removing policycoreutils-python 100% | 11.7 KiB/s | 24.0 B | 00m00s [12/16] Removing java-17-openjdk-1:17.0 100% | 560.0 B/s | 14.0 B | 00m00s [13/16] Removing python3-policycoreutil 100% | 16.7 KiB/s | 307.0 B | 00m00s [14/16] Removing policycoreutils-0:3.7- 100% | 17.4 KiB/s | 178.0 B | 00m00s [15/16] Removing java-17-openjdk-headle 100% | 8.7 KiB/s | 510.0 B | 00m00s [16/16] Removing kdepim-addons-0:24.08. 100% | 1.0 KiB/s | 1.4 KiB | 00m01s Complete!ng trigger-post-uninstall scriptlet: systemd-0:256.8-1.fc41.x86_64c41.x Nothing to do. Removed 20 files, 10 directories. 0 errors occurred.
This looks like it's from a different package (java-17-openjdk vs. glibc), and for a totally unrelated reason.
(To clarify: Please report this against the java-17-openjdk package instead. It shouldn't print user-facing stuff in its scriptlets.)
This issue is still present as of February 11, 2025, which includes glibc-common-0:2.40-3: >>> Running trigger-install 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
(In reply to Jeffrey Walton from comment #23) > This issue is still present as of February 11, 2025, which includes > glibc-common-0:2.40-3: > > >>> Running trigger-install 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 2.40-3 is an old version which does not have this fix yet, so this is expected. You get the warnings once when upgrading from an older version, but not the newer version you are upgrading to.