From 660e6ccff88b572112b4cae3aceb0442bfbc9317 Mon Sep 17 00:00:00 2001 From: oreo639 Date: Fri, 26 Jan 2024 01:22:09 -0800 Subject: [PATCH] iwd: fix basename on musl musl provides a compatibility basename declaration so applications expecting GNU basename could still compile even though musl doesn't provide GNU basename and only POSIX basename. --- srcpkgs/iwd/patches/musl.patch | 13 +++++++++++++ srcpkgs/iwd/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/iwd/patches/musl.patch diff --git a/srcpkgs/iwd/patches/musl.patch b/srcpkgs/iwd/patches/musl.patch new file mode 100644 index 00000000000..37b6d749b3c --- /dev/null +++ b/srcpkgs/iwd/patches/musl.patch @@ -0,0 +1,13 @@ +Include libgen.h for POSIX basename as musl doesn provide GNU basename in string.h. + +diff -rup src/wiphy.c.orig src/wiphy.c +--- a/src/wiphy.c ++++ b/src/wiphy.c +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + + #include + diff --git a/srcpkgs/iwd/template b/srcpkgs/iwd/template index f70503d2a82..8ababe905f7 100644 --- a/srcpkgs/iwd/template +++ b/srcpkgs/iwd/template @@ -1,7 +1,7 @@ # Template file for 'iwd' pkgname=iwd version=2.13 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-systemd-service --enable-pie --enable-dbus-policy --enable-wired"