bottlerocket: fix compilation with GCC 14
authorRosen Penev <rosenp@gmail.com>
Mon, 13 May 2024 03:34:36 +0000 (20:34 -0700)
committerRosen Penev <rosenp@gmail.com>
Mon, 13 May 2024 06:00:13 +0000 (23:00 -0700)
implicit int errors now.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/bottlerocket/Makefile
utils/bottlerocket/patches/010-gcc14.patch [new file with mode: 0644]

index d865b6d6084bad23ae11f112b52e8ed36d8706ca..1a11bd3c1e7b32cf75e2dda8735fb427e886e710 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bottlerocket
 PKG_VERSION:=0.04c
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://linuxha.com/bottlerocket
diff --git a/utils/bottlerocket/patches/010-gcc14.patch b/utils/bottlerocket/patches/010-gcc14.patch
new file mode 100644 (file)
index 0000000..4bf018b
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure
++++ b/configure
+@@ -656,7 +656,7 @@ cat > conftest.$ac_ext << EOF
+ #line 657 "configure"
+ #include "confdefs.h"
+-main(){return(0);}
++int main(){return(0);}
+ EOF
+ if { (eval echo configure:662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   ac_cv_prog_cc_works=yes