From ccf04b78dfba688859f0d552556e56e5c632ad90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 2 Sep 2020 13:38:19 +0200 Subject: [PATCH] libfido2: fix musl builds --- srcpkgs/libfido2/template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/srcpkgs/libfido2/template b/srcpkgs/libfido2/template index 51a959403db..cb3337f3440 100644 --- a/srcpkgs/libfido2/template +++ b/srcpkgs/libfido2/template @@ -14,9 +14,15 @@ checksum=5990f923c9390fe1e6a00ba5d1d1f74030e7344b855e971d9fb7223e70ff3122 CFLAGS="-Wno-type-limits" if [ "$XBPS_TARGET_LIBC" = musl ]; then - CFLAGS+=" -Wno-overflow" # ioctl takes int on musl + # ioctl takes int on musl + CFLAGS+=" -Wno-overflow" fi +pre_configure() { + vsed -i -e "s;sign-conversion;no-sign-conversion;" \ + {tools,src,examples}/CMakeLists.txt +} + post_install() { vlicense LICENSE }