Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 954223 - dev-libs/cJSON-1.7.18[cmake-4]: Configuring incomplete, errors occurred!
Summary: dev-libs/cJSON-1.7.18[cmake-4]: Configuring incomplete, errors occurred!
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matt Turner
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: cmake-4
  Show dependency tree
 
Reported: 2025-04-22 18:18 UTC by Holger Hoffstätte
Modified: 2025-04-23 15:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Trivial patch to raise minimum cmake version (1.7.18-cmake4.patch,412 bytes, patch)
2025-04-22 19:10 UTC, Holger Hoffstätte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2025-04-22 18:18:47 UTC
The usual cmake-4 breakage:

https://github.com/DaveGamble/cJSON/blob/12c4bf1986c288950a3d06da757109a6aa1ece38/CMakeLists.txt#L2

shows cmake_minimum_required(3.0)


Reproducible: Always
Comment 1 Holger Hoffstätte 2025-04-22 19:05:58 UTC
I just saw that the linked PR only updates to 3.5 - that should probably be 3.10, otherwise cmake will complain about more pending deprecation.
Comment 2 Holger Hoffstätte 2025-04-22 19:10:53 UTC
Created attachment 925700 [details, diff]
Trivial patch to raise minimum cmake version
Comment 3 Larry the Git Cow gentoo-dev 2025-04-23 15:10:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9305f5dd28b0ae32db1d14c9629accbd3114cf2a

commit 9305f5dd28b0ae32db1d14c9629accbd3114cf2a
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2025-04-23 15:05:50 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2025-04-23 15:10:02 +0000

    dev-libs/cJSON: Add patch to fix build with cmake-4
    
    Closes: https://bugs.gentoo.org/954223
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 dev-libs/cJSON/cJSON-1.7.18.ebuild       |  4 ++++
 dev-libs/cJSON/files/1.7.18-cmake4.patch | 13 +++++++++++++
 2 files changed, 17 insertions(+)