From 6cc62b05dd16c87ac2797774b471b92bf80e2563 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 28 Nov 2026 15:31:20 +0100 Subject: [PATCH] alpine: use GNU C17 for the legacy collation APIs GCC 15 defaults to GNU C23, where an empty parameter list specifies zero arguments. Alpine's unprototyped strucmp declaration conflicts with its two-argument definition, and the compiler rejects calls through its collation callback. Build this source in GNU C17 mode so its legacy declarations retain the intended semantics. Fedora used the same dialect for the still-affected Alpine 2.26 release. Link: https://bugzilla.redhat.com/show_bug.cgi?id=2336274 Assisted-by: LLM Signed-off-by: Hauke Mehrtens --- mail/alpine/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mail/alpine/Makefile b/mail/alpine/Makefile index 07bdf66760..9f751e3778 100644 --- a/mail/alpine/Makefile +++ b/mail/alpine/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=alpine PKG_VERSION:=2.25 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://alpineapp.email/alpine/release/src/Old @@ -25,6 +25,8 @@ PKG_INSTALL:=1 include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/nls.mk +TARGET_CFLAGS += -std=gnu17 + define Package/alpine/Default SECTION:=mail CATEGORY:=Mail