From 0c3d0146a4fb5004d47d333771d013c1c44baf22 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 30 Dec 2022 23:58:37 -0800 Subject: [PATCH] python3-grpcio: Define -D_LARGEFILE64_SOURCE only for musl On glibc this breaks build when using 64bit time_t since zlib ends up undefining _FILE_OFFSET_BITS when -D_LARGEFILE64_SOURCE is defined Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb b/meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb index 9a3c3734ac..b0971db1cc 100644 --- a/meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb +++ b/meta-python/recipes-devtools/python/python3-grpcio_1.51.1.bb @@ -22,7 +22,7 @@ RDEPENDS:${PN} = "${PYTHON_PN}-protobuf \ inherit setuptools3 inherit pypi -CFLAGS += "-D_LARGEFILE64_SOURCE" +CFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE" export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = "1"