From 51e863a513607be5f730803760f9f5d19d906b67 Mon Sep 17 00:00:00 2001 From: Daniel Martinez Date: Thu, 27 Jun 2024 08:48:00 -0400 Subject: [PATCH] apparmor: fix build on musl --- srcpkgs/apparmor/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/apparmor/template b/srcpkgs/apparmor/template index 13586d0976f979..0c0f997f110b82 100644 --- a/srcpkgs/apparmor/template +++ b/srcpkgs/apparmor/template @@ -26,6 +26,12 @@ if [ -z "$CROSS_BUILD" ]; then makedepends="python3-devel" fi +# /usr/lib/perl5/core_perl/CORE/perl.h:3360:22: error: unknown type name 'off64_t'; +if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + CFLAGS+=" -D_LARGEFILE64_SOURCE" + CXXFLAGS+=" -D_LARGEFILE64_SOURCE" +fi + pre_build() { # Replace release profiles with our own cd ${wrksrc}