From 77130df23de3bd671628cd2eaae12e1d2766d71c Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 12 May 2024 20:34:36 -0700 Subject: [PATCH] bottlerocket: fix compilation with GCC 14 implicit int errors now. Signed-off-by: Rosen Penev --- utils/bottlerocket/Makefile | 2 +- utils/bottlerocket/patches/010-gcc14.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 utils/bottlerocket/patches/010-gcc14.patch diff --git a/utils/bottlerocket/Makefile b/utils/bottlerocket/Makefile index d865b6d608..1a11bd3c1e 100644 --- a/utils/bottlerocket/Makefile +++ b/utils/bottlerocket/Makefile @@ -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 index 0000000000..4bf018bb59 --- /dev/null +++ b/utils/bottlerocket/patches/010-gcc14.patch @@ -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