Skip to contentSkip to conversation

xfsdump: Add -D_LARGEFILE64_SOURCE on musl

PATCH New Khem Raj 1 participant 2 messages Dec 23, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 xfsdump: Add -D_LARGEFILE64_SOURCE on musl

it used lfs64 funcitons which are under _LARGEFILE64_SOURCE and musl does not define it indirectly undet _GNU_SOURCE like glibc

---
 meta-filesystems/recipes-utils/xfsdump/xfsdump_3.1.12.bb | 1 +
 1 file changed, 1 insertion(+)
meta-filesystems/recipes-utils/xfsdump/xfsdump_3.1.12.bb +1 -0
index 659d604a66..9e595b9521 100644
@@ -23,6 +23,7 @@ PACKAGECONFIG ??= ""
 PACKAGECONFIG[gettext] = "--enable-gettext=yes,--enable-gettext=no,gettext"
 
 CFLAGS += "-D_FILE_OFFSET_BITS=64"
+TARGET_CC_ARCH:append:libc-musl = " -D_LARGEFILE64_SOURCE"
 
 do_configure () {
     export DEBUG="-DNDEBUG"
Signature · 1 line
2.39.0
author
#1 lore raw

PATCH 2/2 xfstests: Add -D_LARGEFILE64_SOURCE on musl

it used lfs64 funcitons which are under _LARGEFILE64_SOURCE and musl does not define it indirectly undet _GNU_SOURCE like glibc

---
 meta-filesystems/recipes-utils/xfstests/xfstests_2022.12.11.bb | 1 +
 1 file changed, 1 insertion(+)
meta-filesystems/recipes-utils/xfstests/xfstests_2022.12.11.bb +1 -0
index 136fea8adc..b7cbd3a6d5 100644
@@ -41,6 +41,7 @@ USERADD_PARAM:${PN} = "-U -m fsgqa; -N 123456-fsgqa; -N fsgqa2"
 
 EXTRA_OECONF = "INSTALL_USER=root INSTALL_GROUP=root"
 
+TARGET_CC_ARCH:append:libc-musl = " -D_LARGEFILE64_SOURCE"
 # install-sh script in the project is outdated
 # we use the one from the latest libtool to solve installation issues
 # It looks like the upstream is not interested in having it fixed :(
Signature · 1 line
2.39.0