diff --git a/srcpkgs/connman/patches/musl.patch b/srcpkgs/connman/patches/musl.patch new file mode 100644 index 00000000000000..4e38a44250b530 --- /dev/null +++ b/srcpkgs/connman/patches/musl.patch @@ -0,0 +1,16 @@ +Add GNU basename macro for code that expects GNU basename + +diff -rup src/log.c.orig src/log.c +--- a/src/log.c ++++ b/src/log.c +@@ -34,6 +34,10 @@ + + #include "connman.h" + ++#if !defined(__GLIBC__) ++#define basename(src) (strrchr(src,'/') ? strrchr(src,'/')+1 : src) ++#endif ++ + static const char *program_exec; + static const char *program_path; + diff --git a/srcpkgs/connman/template b/srcpkgs/connman/template index e908284366c430..c4969eca59277e 100644 --- a/srcpkgs/connman/template +++ b/srcpkgs/connman/template @@ -1,7 +1,7 @@ # Template file for 'connman' pkgname=connman version=1.42 -revision=2 +revision=3 build_style=gnu-configure configure_args="--enable-polkit --enable-client --enable-pie --enable-ethernet --enable-wifi --enable-bluetooth --enable-loopback --enable-nmcompat