From 577679a5728a17cc6633c4c5cd223d48ab7c3624 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Fri, 19 May 2023 21:45:21 +0800 Subject: [PATCH] python3-libselinux: fix compilation with musl 1.2.4 musl 1.2.4 deprecated legacy "LFS64" ("large file support") interfaces so just having _GNU_SOURCE defined is not enough anymore. Manually pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions. Signed-off-by: Tianling Shen --- lang/python/python3-libselinux/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lang/python/python3-libselinux/Makefile b/lang/python/python3-libselinux/Makefile index 95cb2a8139..f56483b44d 100644 --- a/lang/python/python3-libselinux/Makefile +++ b/lang/python/python3-libselinux/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk SRC_NAME:=libselinux PKG_NAME:=python3-$(SRC_NAME) PKG_VERSION:=3.3 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_BUILD_DIR:=$(BUILD_DIR)/python-libselinux/$(SRC_NAME)-$(PKG_VERSION) PKG_SOURCE:=$(SRC_NAME)-$(PKG_VERSION).tar.gz @@ -48,6 +48,10 @@ define Package/python3-libselinux/description This package provides the Python bindings for libselinux. endef +ifneq ($(CONFIG_USE_MUSL),) + TARGET_CFLAGS += -D_LARGEFILE64_SOURCE +endif + MAKE_FLAGS += \ FTS_LDLIBS=-lfts \ SHLIBDIR=/usr/lib \ -- 2.30.2