Bug 2377067 - ocaml-perl4caml: FTBFS with Python 3.14 in Fedora Rawhide
Summary: ocaml-perl4caml: FTBFS with Python 3.14 in Fedora Rawhide
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ocaml
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-08 07:35 UTC by Jitka Plesnikova
Modified: 2025-07-13 19:22 UTC (History)
2 users (show)

Fixed In Version: ocaml-5.3.0-3.fc43
Clone Of:
Environment:
Last Closed: 2025-07-13 19:22:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jitka Plesnikova 2025-07-08 07:35:24 UTC
Description of problem:
Package ocaml-perl4caml fails to build from source in Fedora Rawhide with following error:

+ /usr/bin/python3 /usr/lib/rpm/redhat/ocaml_files.py /builddir/build/BUILD/ocaml-perl4caml-0.9.5-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.P5tlaq (%install)

It seems to be related to update of Python to version 3.14.0~b2-3.fc43.

Dependency changes from the last successful build:
https://koschei.fedoraproject.org/build/20713205

Reproducible: Always

Comment 1 Richard W.M. Jones 2025-07-08 07:46:14 UTC
I think at least one of these errors is fixed already in:
https://src.fedoraproject.org/rpms/ocaml/c/5b0d3a3f5da9b30d345541737d8f4f626e1b11cb?branch=rawhide

I'm not sure if that covers the whole issue.

We are waiting on building the next OCaml until it gets released upstream.

Comment 2 Fedora Update System 2025-07-13 12:48:46 UTC
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

Comment 3 Fedora Update System 2025-07-13 19:22:07 UTC
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.


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