From 4e2f1e1493dd3f9f8370badca1b6c2a3ec9ded12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 26 May 2021 08:49:31 +0700 Subject: [PATCH] patch: fix bootstrap on x86_64-musl with or without musl-legacy-compat installed. --- srcpkgs/patch/template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srcpkgs/patch/template b/srcpkgs/patch/template index 342306527b3..54bfe06dada 100644 --- a/srcpkgs/patch/template +++ b/srcpkgs/patch/template @@ -12,3 +12,8 @@ homepage="http://www.gnu.org/software/patch/patch.html" distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz" checksum=ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd patch_args="-Np1" + +if [ "$XBPS_TARGET_LIBC" = musl ]; then + export ac_cv_lib_error_at_line=no + export ac_cv_header_sys_cdefs_h=no +fi