From ef55fcb06086b9183fb73407ccaa0134656b43cf Mon Sep 17 00:00:00 2001 From: sbwml Date: Wed, 17 May 2023 22:20:44 +0800 Subject: [PATCH] alist: fix compilation with musl 1.2.4 * musl-1.2.4: On the API level, the legacy "LFS64" ("large file support") interfaces, which were provided by macros remapping them to their standard names (`#define stat64 stat` and similar) have been deprecated and are no longer provided under the `_GNU_SOURCE` feature profile, only under explicit `_LARGEFILE64_SOURCE`. The latter will also be removed in a future version. Builds broken by this change can be fixed short-term by adding `-D_LARGEFILE64_SOURCE` to `CFLAGS`, but should be fixed to use the standard interfaces. --- alist/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/alist/Makefile b/alist/Makefile index 11e88c4..5dcb96a 100644 --- a/alist/Makefile +++ b/alist/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=alist PKG_VERSION:=3.17.0 PKG_WEB_VERSION:=3.17.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/alist-org/alist/tar.gz/v$(PKG_VERSION)? @@ -52,6 +52,10 @@ define Package/$(PKG_NAME)/description A file list program that supports multiple storage, powered by Gin and Solidjs. endef +ifneq ($(CONFIG_USE_MUSL),) + TARGET_CFLAGS += -D_LARGEFILE64_SOURCE +endif + define Build/Prepare $(call Build/Prepare/Default) $(eval $(call Download,$(PKG_NAME)-web))