#1112955 gkl: FTBFS with CMake 4

#1112955#5
Date:
2025-08-31 22:54:29 UTC
From:
To:
Dear maintainer,

During a test rebuild for CMake 4, gkl failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:626)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:581)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Up-to-date check for task ':compileJava' took 1.465 secs. It is not up-to-date because:
  No history is available.
All input files are considered out-of-date for incremental task ':compileJava'.
Compiling with JDK Java compiler API.
:compileJava (Thread[#54,Task worker for ':' Thread 2,5,main]) completed. Took 2.633 secs.
:cmakeConfig (Thread[#54,Task worker for ':' Thread 2,5,main]) started.
:cmakeConfig
Putting task artifact state for task ':cmakeConfig' into context took 0.0 secs.
Up-to-date check for task ':cmakeConfig' took 0.003 secs. It is not up-to-date because:
  No history is available.
Starting process 'command 'cmake''. Working directory: /build/reproducible-path/gkl-0.8.11+dfsg/build/native Command: cmake -Wno-dev /build/reproducible-path/gkl-0.8.11+dfsg
Successfully started process 'command 'cmake''
CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


:cmakeConfig FAILED
:cmakeConfig (Thread[#54,Task worker for ':' Thread 2,5,main]) completed. Took 1.067 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':cmakeConfig'.
Run with --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':cmakeConfig'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
	at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
	at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)
	at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
	at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:626)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:581)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.process.internal.ExecException: Process 'command 'cmake'' finished with non-zero exit value 1
	at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:382)
	at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:31)
	at org.gradle.api.tasks.AbstractExecTask.exec(AbstractExecTask.java:54)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
	at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:780)
	at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:747)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
	... 29 more


* Get more help at https://help.gradle.org

BUILD FAILED in 9s
2 actionable tasks: 2 executed
dh_auto_build: error: gradle --info --console plain --offline --stacktrace --no-daemon --refresh-dependencies --gradle-user-home .gradle -Duser.home=. -Duser.name=debian -Ddebian.package=gkl -Dfile.encoding=UTF-8 --parallel --max-workers=8 jar returned exit code 1
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2025-08-29T20:09:07Z
-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/2392947/

The most likely cause of build failures is the removed backwards compatibility for
CMake versions earlier than 3.5. You can find additional information in my
debian-devel announcement:

https://lists.debian.org/debian-devel/2025/04/msg00310.html

About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.

You can find the build task here:
https://debusine.debian.net/work-request/152968/

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks,
Timo

#1112955#12
Date:
2025-09-01 11:51:32 UTC
From:
To:
I have downgraded the bug to non-RC severity temporarily and reverted
CMake in unstable to version 3.31.6. I plan to re-upgrade in about a
month's time. I realize that despite my April announcement, the upload
to unstable came rather surprising, and I don't want to cause
unnecessary pain.

Also, the build log URL has an unfortunate mistake. The correct URL
should include the workspace, i.e.,

https://debusine.debian.net/debian/developers/artifact/XXXX

CMake 4 will also be available in experimental again, so it can be
used to verify that the bug is fixed.

Cheers
Timo

#1112955#23
Date:
2025-09-28 15:50:59 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
gkl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1112955@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Pierre Gruet <pgt@debian.org> (supplier of updated gkl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 28 Sep 2025 16:52:12 +0200
Source: gkl
Architecture: source
Version: 0.9.1+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Pierre Gruet <pgt@debian.org>
Closes: 1112955
Changes:
 gkl (0.9.1+dfsg-2) unstable; urgency=medium
 .
   * Raising CMake minimum version constraint (Closes: #1112955)
Checksums-Sha1:
 d2ee554704711625c175ce55f153d5399e841d2a 2278 gkl_0.9.1+dfsg-2.dsc
 a7182ef9f7be5fa3c7b94aa0ff64d00f0c46d072 11596 gkl_0.9.1+dfsg-2.debian.tar.xz
 3febe9d5cfe507f8fa89df62682151c2567a7a58 18094 gkl_0.9.1+dfsg-2_amd64.buildinfo
Checksums-Sha256:
 e3e57980f3d0e71d2f4414c34b870a31e8eabdd1ad01cfb223392a8297ebc035 2278 gkl_0.9.1+dfsg-2.dsc
 a7515186a2be15905f4d10136934ba975fc6f0493d9b4ed4453479053b74cd05 11596 gkl_0.9.1+dfsg-2.debian.tar.xz
 5885261a0ad6d0b6cf3308e58ac3d876d65cba686ef1503d636902264fbedc34 18094 gkl_0.9.1+dfsg-2_amd64.buildinfo
Files:
 48e608bd3363a73f3da9db833001d061 2278 java optional gkl_0.9.1+dfsg-2.dsc
 c172c85bd85762365756d1d15b796551 11596 java optional gkl_0.9.1+dfsg-2.debian.tar.xz
 00f6463264bf912eabe863a4d7ae7025 18094 java optional gkl_0.9.1+dfsg-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEM8soQxPpC9J9y0UjYAMWptwndHYFAmjZTvoACgkQYAMWptwn
dHZhdw/+P98S4xSJvRZ1sdjOCokCRQYYHKxjpgArAQfSRaG7WYO5eophQln4cP17
x0Ma0uvHipcKO5fakYjxZcGpg0R/0PD7uklhjDyr+Kn3OG87i/tksCR583QMOHhF
94wXRsOps/9QiUagFsDgzhQKo5JAKFhDVBHdXcqz8ANjrzukSJkqQsZTjks1Pt1U
lF9IQ0T8nuyZ5VZFWrDwCo+Ff6zm6iLRWplWPblQP1whrD2guGmpGlaWMIKlKR5d
5ycCYP78QeQeSFxSkxDmiKSeq7hKYz5hZY65tVHPydR3Zf01davljl7ldQ1p0RJC
AgF7qclpWYfFR10qfVE8L7m5/4quRLiB0BtLI5OSR19l6KM8gb/ipt97S2WJ60Kb
9jJb6i4dqWIjPgCGZtv6dZtikuIitLoGpTzYAkQO1djo6gkPbPk1muDjCxO4Q6pu
0vYk7/RLj1wfUtX5llss6UtAVVJ1XBBTBriiqHCt4L77lYd6y7B9kFW4ZrYeW+q4
5l322+rzFU9om0HVrV/dfx9Jdbi87VGC+7a9gTu674m/+RQjdx8jl6McbWhZpT1I
jrBXVDof2Qfzt6NGve6gD1En4OShooP0u3dDW1gPNdbb5pNAqVAC1GtnGDdsn3G/
JiMjAAeO0oSN2lI2JDanVMaTJ6hqX41TXfcNePKer1HP6ifilM0=
=eQfZ
-----END PGP SIGNATURE-----