[48/48] Installing maven-1:3.9.11-1.fc4 100% | 15.1 KiB/s | 23.9 KiB | 00m02s >>> Running %post scriptlet: maven-1:3.9.11-1.fc43.noarch >>> Non-critical error in %post scriptlet: maven-1:3.9.11-1.fc43.noarch >>> Scriptlet output: >>> alternatives version 1.33 - Copyright (C) 2001 Red Hat, Inc. >>> This may be freely redistributed under the terms of the GNU Public License. >>> >>> usage: alternatives --install <link> <name> <path> <priority> >>> [--initscript <service>] >>> [--family <family>] >>> [--follower <follower_link> <follower_name> <follower_pa >>> alternatives --remove <name> <path> >>> alternatives --auto <name> >>> alternatives --config <name> >>> alternatives --display <name> >>> alternatives --set <name> <path/family> >>> alternatives --list >>> alternatives --remove-all <name> >>> alternatives --add-follower <name> <path> <follower_link> <follower_n >>> alternatives --remove-follower <name> <path> <follower_name> >>> >>> common options: --verbose --test --help --usage --version --keep-missing --k >>> --altdir <directory> --admindir <directory> >>> >>> [RPM] %post(maven-1:3.9.11-1.fc43.noarch) scriptlet failed, exit status 2 Transaction failed: Rpm transaction failed. Reproducible: Always Steps to Reproduce: 1. mock --root fedora-rawhide-x86_64 --init 2. mock --root fedora-rawhide-x86_64 --install maven Actual Results: See abive. Expected Results: Successful installation. Additional Information: The problem started with an update of rpm. The latest version of rpm does not like the final \ in the %post scriptlet. If I remove it from the specfile and rebuild the package (which requires an intermediate bootstrap build because the normal build requires maven which is not installable) the package can be installed.
Hello, Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/ All subpackages of a package against which this bug was filled are now installable or removed from Fedora 43. Thanks for taking care of it!
I'll remove the tracker because the *Fedora Fails To Install* script consider this as fixed as it is not a dependency issue. In the future, we might want to have the ability to make this bug as "do not close automatically by the script" but we don't have that yet, sorry.
See also https://github.com/rpm-software-management/rpm/issues/3865 -- this might be Bash issue, not RPM.
Yeah, it looks like the same as the fakeroot case to me. As with fakeroot, it looks like bash 5.3 doesn't like when commands have trailing continuation characters, like this in maven.spec: update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alternatives_priority}0 \ --slave %{_bindir}/mvnDebug mvnDebug %{homedir}/bin/mvnDebug \ --slave %{_mandir}/man1/mvn.1.gz mvn1 %{homedir}/bin/mvn.1.gz \ --slave %{_mandir}/man1/mvnDebug.1.gz mvnDebug1 %{homedir}/bin/mvn.1.gz \ if you take out the last \ , after mvn.1.gz, it should fix it, I think. I'm not sure whether it's reasonable to complain about this to bash upstream, it kinda feels like the trailing continuation character is wrong to me.
*** Bug 2382363 has been marked as a duplicate of this bug. ***
I'm sending out a build with the proposed fix because I think this is causing several image builds to fail - https://pagure.io/releng/failed-composes/issue/8402 - and I'd like to fix that.
Oh, this is great - maven buildrequires itself, so it is unbuildable because of *this precise bug*. DEBUG util.py:459: [162/168] Installing maven-1:3.9.11-1.f 100% | 202.8 KiB/s | 23.9 KiB | 00m00s DEBUG util.py:459: >>> Running %post scriptlet: maven-1:3.9.11-1.fc43.noarch DEBUG util.py:459: >>> Non-critical error in %post scriptlet: maven-1:3.9.11-1.fc43.noarch DEBUG util.py:459: >>> Scriptlet output: DEBUG util.py:459: >>> alternatives version 1.33 - Copyright (C) 2001 Red Hat, Inc. DEBUG util.py:459: >>> This may be freely redistributed under the terms of the GNU Public License. DEBUG util.py:459: >>> DEBUG util.py:459: >>> usage: alternatives --install <link> <name> <path> <priority> DEBUG util.py:459: >>> [--initscript <service>] DEBUG util.py:459: >>> [--family <family>] DEBUG util.py:459: >>> [--follower <follower_link> <follower_name> <follower_pa DEBUG util.py:459: >>> alternatives --remove <name> <path> DEBUG util.py:459: >>> alternatives --auto <name> DEBUG util.py:459: >>> alternatives --config <name> DEBUG util.py:459: >>> alternatives --display <name> DEBUG util.py:459: >>> alternatives --set <name> <path/family> DEBUG util.py:459: >>> alternatives --list DEBUG util.py:459: >>> alternatives --remove-all <name> DEBUG util.py:459: >>> alternatives --add-follower <name> <path> <follower_link> <follower_n DEBUG util.py:459: >>> alternatives --remove-follower <name> <path> <follower_name> DEBUG util.py:459: >>> DEBUG util.py:459: >>> common options: --verbose --test --help --usage --version --keep-missing --k DEBUG util.py:459: >>> --altdir <directory> --admindir <directory> DEBUG util.py:459: >>> DEBUG util.py:459: >>> [RPM] %post(maven-1:3.9.11-1.fc43.noarch) scriptlet failed, exit status 2 DEBUG util.py:459: [163/168] Installing modello-0:2.1.2-25 100% | 4.1 MiB/s | 479.1 KiB | 00m00s DEBUG util.py:459: [164/168] Installing slf4j-sources-0:1. 100% | 1.8 MiB/s | 213.2 KiB | 00m00s DEBUG util.py:459: [165/168] Installing xmlunit-matchers-0 100% | 248.7 KiB/s | 25.4 KiB | 00m00s DEBUG util.py:459: [166/168] Installing plexus-containers- 100% | 1.2 MiB/s | 128.8 KiB | 00m00s DEBUG util.py:459: [167/168] Installing build-helper-maven 100% | 777.9 KiB/s | 74.7 KiB | 00m00s DEBUG util.py:459: [168/168] Installing apache-commons-jxp 100% | 123.8 KiB/s | 335.3 KiB | 00m03s DEBUG util.py:459: Transaction failed: Rpm transaction failed. DEBUG util.py:459: Warning: skipped OpenPGP checks for 166 packages from repository: build DEBUG util.py:608: Child return code was: 1 DEBUG util.py:183: kill orphans in chroot /var/lib/mock/f43-build-61237805-6589671/root DEBUG util.py:183: kill orphans in chroot /var/lib/mock/f43-build-61237805-6589671-bootstrap/root/var/lib/mock/f43-build-61237805-6589671/root https://koji.fedoraproject.org/koji/taskinfo?taskID=135091434
OK, should be fixed with https://bodhi.fedoraproject.org/updates/FEDORA-2025-686e78791f . (and I just realized I re-discovered everything Matthias found in the original description, but I didn't read back that far, sorry :>)