Bug 1929842
| Summary: | rpm scriptlet failure in maven %postun | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Zbigniew Jędrzejewski-Szmek <zbyszek> |
| Component: | maven | Assignee: | Mikolaj Izdebski <mizdebsk> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 33 | CC: | java-maint-sig, java-sig-commits, mizdebsk, msrb, sochotni |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | maven-3.6.3-9.fc35 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-05-25 16:01:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
I am unsure how this is failing:
[[ $1 -eq 0 ]] && update-alternatives --remove mvn %{homedir}/bin/mvn
Unless you had maven installed from before this commit:
https://src.fedoraproject.org/rpms/maven/c/d44e09e7c816ecd188a06f9200ec48d68f19c53b?branch=rawhide
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component. (In reply to Fabio Valentini from comment #1) > I am unsure how this is failing: > [[ $1 -eq 0 ]] && update-alternatives --remove mvn %{homedir}/bin/mvn During upgrade $1 expands to 1, so the left side of && is false and the whole command fails. $ [[ 1 -eq 0 ]] && true $ echo $? 1 Fix committed to dist-git: https://src.fedoraproject.org/rpms/maven/c/467945625166df9652d5734df97537bbed84be89?branch=rawhide FEDORA-2021-bcbca49b6d has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-bcbca49b6d FEDORA-2021-bcbca49b6d has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report. |
Description of problem: During upgrade F33→F34: Running scriptlet: maven-1:3.6.3-5.fc33.noarch 5959/11769 warning: %postun(maven-1:3.6.3-5.fc33.noarch) scriptlet failed, exit status 1 Error in POSTUN scriptlet in rpm package maven Version-Release number of selected component (if applicable): maven-3.6.3-8.fc34.noarch (after upgrade) maven-1:3.6.3-5.fc33.noarch (before upgrade) Expected results: Quiet upgrade.