Bug 2380479 - bionetgen-2.9.0-1.fc45 FTBFS: bionetgen-BioNetGen-2.9.0/bng2/Network3/cvode-2.6.0/build/FortranTest/CMakeLists.txt: No cmake_minimum_required command is present [NEEDINFO]
Summary: bionetgen-2.9.0-1.fc45 FTBFS: bionetgen-BioNetGen-2.9.0/bng2/Network3/cvode-2...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bionetgen
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Antonio T. sagitter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: CMake4.0 F45FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2025-07-16 10:25 UTC by Cristian Le
Modified: 2026-02-23 09:39 UTC (History)
4 users (show)

Fixed In Version: bionetgen-2.9.0-14.fc45
Clone Of:
Environment:
Last Closed: 2026-02-19 14:39:45 UTC
Type: ---
Embargoed:
fedora: needinfo? (zbyszek)


Attachments (Terms of Use)

Description Cristian Le 2025-07-16 10:25:56 UTC
\
Dear package maintainer,

This is an automated bug created due to a FTBFS when rebuilding this package for the change proposal CMake 4.0.

The rebuild is being tracked in https://copr.fedorainfracloud.org/coprs/cmake-4.0.

See https://fedoraproject.org/wiki/Changes/CMake4.0 for more information on how to make the package compatible.

More specifically, depending on the state of the project:
- If it is actively maintained, please update the `cmake_minimum_required`, and instruct upstream to do so as well.
  To minimize future maintenance, please add a higher bound as well, preferrably with the highest CMake version being
  tested. You may use 4.0 as the higher bound as this is being tested in the tracked copr project.
- If the project is not maintained, you may add `CMAKE_POLICY_VERSION_MINIMUM=3.5` as a CMake variable or environment
  variable.

You can check the build locally following the instructions in the change proposal, or submit your build to the tracking
copr project.

Let me know if you encounter any issues, or need any other help.

Comment 1 Fedora Update System 2025-07-20 17:06:14 UTC
FEDORA-2025-5a9c48ea15 (bionetgen-2.9.0-9.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-5a9c48ea15

Comment 2 Fedora Update System 2025-07-20 17:10:30 UTC
FEDORA-2025-5a9c48ea15 (bionetgen-2.9.0-9.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Cristian Le 2025-07-24 11:41:07 UTC
I'm afraid to touch whatever is going on in there. There seems to be unpatched sources, probably due to the other cmake builds [1]

[1]: https://copr.fedorainfracloud.org/coprs/lecris/cmake-4.0/build/9317966/

Comment 4 Petr Pisar 2026-02-18 08:39:03 UTC
cmake-4 is now in Fedora 45 and the build failure is:

CMake Error in /home/test/fedora/bionetgen/bionetgen-2.9.0-build/bionetgen-2.9.0/bionetgen-BioNetGen-2.9.0/bng2/Network3/cvode-2.6.0/build/FortranTest/CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 4.2)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".

It seems the sources have more independent cmake-driven parts and not all of them are covered with bionetgen-fix_cmake_minimum.patch.

Comment 5 Cristian Le 2026-02-18 14:01:40 UTC
Yes, this is a complicated one, we even added the big hammer of `export CMAKE_POLICY_VERSION_MINIMUM=3.5` and that did not help. Looking at the batch of that issue, something feels fishy and the source of the issue seems to be with the whole build process and the bundling of `sundials-devel`. I don't think I can help very well on this without more context around that and the plans for this package.

Summoning the maintainer for feedback here.

Comment 6 Antonio T. sagitter 2026-02-19 10:43:13 UTC
Let me check

Comment 7 Fedora Update System 2026-02-19 14:35:16 UTC
FEDORA-2026-1f8e7b6102 (bionetgen-2.9.0-14.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-1f8e7b6102

Comment 8 Fedora Update System 2026-02-19 14:39:45 UTC
FEDORA-2026-1f8e7b6102 (bionetgen-2.9.0-14.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Cristian Le 2026-02-19 14:40:49 UTC
Thanks for the fix, hope you mentioned this to upstream also.

The only thing else that bothers me is that `sundials` is bundled by default, and it is not `Provides: bundled()`. Do you know why that is the case?

Comment 10 Antonio T. sagitter 2026-02-22 17:21:50 UTC
> The only thing else that bothers me is that `sundials` is bundled by default, and it is not `Provides: bundled()`. Do you know why that is the case?

`sundials` is statically linked and not provided inside `bionetgen` rpms.

Comment 11 Cristian Le 2026-02-23 09:39:54 UTC
(In reply to Antonio T. sagitter from comment #10)
> > The only thing else that bothers me is that `sundials` is bundled by default, and it is not `Provides: bundled()`. Do you know why that is the case?
> 
> `sundials` is statically linked and not provided inside `bionetgen` rpms.

That is not correct though. **Because** you are linking to a static library **you must** specify bundled (i.e. it bundles the sundials symbols) [1]. You are confusing it with `Provides`.

But the other question of de-bundling `sundials` is not clear. Why is it happening, because I do not see a comment regarding it and more so there is a flag to conditionally de-bundle it. It would be good to have some tracking of these issues and periodically check the status when upstream updates, and propose some way forwards for upstream if they need help.

[1]: https://docs.fedoraproject.org/en-US/packaging-guidelines/#bundling


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