crun: fix compilation with GCC 15
authorRosen Penev <[email protected]>
Sat, 12 Jul 2025 03:19:09 +0000 (20:19 -0700)
committerTianling Shen <[email protected]>
Tue, 29 Jul 2025 18:55:48 +0000 (02:55 +0800)
Need to fix function prototype

Signed-off-by: Rosen Penev <[email protected]>
utils/crun/Makefile
utils/crun/patches/010-gcc15.patch [new file with mode: 0644]

index 29ac65cba214d1265d73df9efbc9b4832ed94fd2..8b48092a751d710230ce1c5195dbd5a132f7ec25 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=crun
 PKG_VERSION:=1.17
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/containers/crun/tar.gz/$(PKG_VERSION)?
diff --git a/utils/crun/patches/010-gcc15.patch b/utils/crun/patches/010-gcc15.patch
new file mode 100644 (file)
index 0000000..e37127b
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/tests/tests_libcrun_fuzzer.c
++++ b/tests/tests_libcrun_fuzzer.c
+@@ -463,7 +463,7 @@ LLVMFuzzerTestOneInput (uint8_t *buf, si
+ }
+ static void
+-sig_chld ()
++sig_chld (int i)
+ {
+   int status;
+   pid_t p;