Bug 2374539
| Summary: | 0install-2.18-4.fc43 FTBFS: /usr/lib/rpm/redhat/ocaml_files.py dies: parser.add_argument(..., help='install files instead of generating %files'): badly formed help string | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Petr Pisar <ppisar> |
| Component: | ocaml | Assignee: | Richard W.M. Jones <rjones> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | rjones, suraj.ghimire7 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | https://koschei.fedoraproject.org/package/0install?collection=f43 | ||
| Whiteboard: | |||
| Fixed In Version: | ocaml-5.3.0-3.fc43 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-07-13 19:21:54 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2339432 | ||
Is this the same fix we added here? https://src.fedoraproject.org/rpms/ocaml/c/5b0d3a3f5da9b30d345541737d8f4f626e1b11cb?branch=rawhide (https://src.fedoraproject.org/rpms/ocaml/pull-request/5) We didn't do a build of OCaml yet though. Yes, it is. Thanks for the pointer. I admit I forgot check ocaml dist-git. FEDORA-2025-b3078216fc (0install-2.18-5.fc43, alt-ergo-2.3.3-25.fc43, and 196 more) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2025-b3078216fc FEDORA-2025-b3078216fc (0install-2.18-5.fc43, alt-ergo-2.3.3-25.fc43, and 196 more) has been pushed to the Fedora 43 stable repository. If problem still persists, please make note of it in this bug report. |
0install-2.18-4.fc43 fails to build in Fedora 43: Installing /builddir/build/BUILD/0install-2.18-build/BUILDROOT/usr/doc/0install-solver/README.md + '[' -d _build/default/_doc/_html ']' + rm -rf /builddir/build/BUILD/0install-2.18-build/BUILDROOT/usr/doc ++ find /builddir/build/BUILD/0install-2.18-build/BUILDROOT/usr/lib64/ocaml -name '*.mli' + mlis='/builddir/build/BUILD/0install-2.18-build/BUILDROOT/usr/lib64/ocaml/0install-solver/sat.mli /builddir/build/BUILD/0install-2.18-build/BUILDROOT/usr/lib64/ocaml/0install-solver/zeroinstall_solver.mli' + rm -f /builddir/build/BUILD/0install-2.18-build/BUILDROOT/usr/lib64/ocaml/0install-solver/sat.ml /builddir/build/BUILD/0install-2.18-build/BUILDROOT/usr/lib64/ocaml/0install-solver/zeroinstall_solver.ml + /usr/bin/python3 /usr/lib/rpm/redhat/ocaml_files.py /builddir/build/BUILD/0install-2.18-build/BUILDROOT /usr/lib64/ocaml Traceback (most recent call last): File "/usr/lib64/python3.14/argparse.py", line 1747, in _check_help formatter._expand_help(action) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/usr/lib64/python3.14/argparse.py", line 678, in _expand_help return help_string % params ~~~~~~~~~~~~^~~~~~~~ TypeError: must be real number, not dict The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/rpm/redhat/ocaml_files.py", line 429, in <module> parser.add_argument('-i', '--install', ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ action='store_true', ^^^^^^^^^^^^^^^^^^^^ default=False, ^^^^^^^^^^^^^^ help='install files instead of generating %files') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.14/argparse.py", line 1561, in add_argument self._check_help(action) ~~~~~~~~~~~~~~~~^^^^^^^^ File "/usr/lib64/python3.14/argparse.py", line 1749, in _check_help raise ValueError('badly formed help string') from exc ValueError: badly formed help string error: Bad exit status from /var/tmp/rpm-tmp.cKP6pB (%install) A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/20731998>. This filure is probably triggered by uprading python3 from 3.13.3-3.fc43 to 3.14.0~b2-3.fc43. The help argument for parser.add_argument() is a formatting string <https://docs.python.org/3.14/library/argparse.html#help> and %files seems to be undefined. Probably it should be a literal and % needs to be percent-escaped.