From: Tianling Shen Date: Fri, 19 May 2023 13:45:21 +0000 (+0800) Subject: python3-libselinux: fix compilation with musl 1.2.4 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=577679a5728a17cc6633c4c5cd223d48ab7c3624;p=openwrt-packages.git 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 --- diff --git a/lang/python/python3-libselinux/Makefile b/lang/python/python3-libselinux/Makefile index 95cb2a813..f56483b44 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 \