From 9531fababe64a698c18c8552455d229507a532e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sun, 24 Jan 2021 16:50:37 -0300 Subject: [PATCH] dante: fix runtime on musl. musl implements the sched_{set,get}scheduler functions as stubs. Unfortunately, dante fails if the functions are available but return an error, which is always the case for musl. Force it to think setscheduler isn't available (var appropriated from Alpine). Fixes #28180 --- srcpkgs/dante/template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srcpkgs/dante/template b/srcpkgs/dante/template index 44e08fd6ab1..17fe0f69ae6 100644 --- a/srcpkgs/dante/template +++ b/srcpkgs/dante/template @@ -1,7 +1,7 @@ # Template file for 'dante' pkgname=dante version=1.4.2 -revision=3 +revision=4 build_style=gnu-configure hostmakedepends="tar automake libtool" short_desc="SOCKS server and client" @@ -13,6 +13,8 @@ checksum=4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7 if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then configure_args="--with-libc=libc.so.6" +else + configure_args="ac_cv_func_sched_setscheduler=no" fi pre_configure() {