From: Rosen Penev Date: Mon, 13 May 2024 03:34:36 +0000 (-0700) Subject: bottlerocket: fix compilation with GCC 14 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=77130df23de3bd671628cd2eaae12e1d2766d71c;p=feed%2Fpackages.git bottlerocket: fix compilation with GCC 14 implicit int errors now. Signed-off-by: Rosen Penev --- 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