Bug 2382210 - FTI: maven-1:3.9.11-1.fc43.noarch
Summary: FTI: maven-1:3.9.11-1.fc43.noarch
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: maven
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2382363 (view as bug list)
Depends On:
Blocks: RPM6
TreeView+ depends on / blocked
 
Reported: 2025-07-21 04:32 UTC by Mattias Ellert
Modified: 2025-07-22 06:50 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-07-22 06:50:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mattias Ellert 2025-07-21 04:32:16 UTC
[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.

Comment 1 Fedora Fails To Install 2025-07-21 11:28:57 UTC
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!

Comment 2 Miro Hrončok 2025-07-21 11:32:36 UTC
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.

Comment 3 Miro Hrončok 2025-07-21 16:36:34 UTC
See also https://github.com/rpm-software-management/rpm/issues/3865 -- this might be Bash issue, not RPM.

Comment 4 Adam Williamson 2025-07-21 17:58:05 UTC
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.

Comment 5 Adam Williamson 2025-07-22 01:23:40 UTC
*** Bug 2382363 has been marked as a duplicate of this bug. ***

Comment 6 Adam Williamson 2025-07-22 01:30:24 UTC
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.

Comment 7 Adam Williamson 2025-07-22 01:36:25 UTC
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

Comment 8 Adam Williamson 2025-07-22 06:50:46 UTC
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 :>)


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