diff --git a/srcpkgs/autofs/patches/musl.patch b/srcpkgs/autofs/patches/musl.patch index ce802dcfbf6..870731b7078 100644 --- a/srcpkgs/autofs/patches/musl.patch +++ b/srcpkgs/autofs/patches/musl.patch @@ -28,3 +28,18 @@ #include "automount.h" #if defined(LIBXML2_WORKAROUND) || defined(TIRPC_WORKAROUND) #include +--- lib/log.c.orig 2019-03-30 10:49:52.965336128 +0100 ++++ lib/log.c 2019-03-30 10:50:43.232710045 +0100 +@@ -38,7 +38,11 @@ static char *prepare_attempt_prefix(cons + char buffer[ATTEMPT_ID_SIZE + 1]; + char *prefixed_msg = NULL; + +- attempt_id = pthread_getspecific(key_thread_attempt_id); ++ if (key_thread_attempt_id) { ++ attempt_id = pthread_getspecific(key_thread_attempt_id); ++ } else { ++ attempt_id = 0; ++ } + if (attempt_id) { + int len = sizeof(buffer) + 1 + strlen(msg) + 1; + diff --git a/srcpkgs/autofs/template b/srcpkgs/autofs/template index 2062f1cd4ac..06bfff44c0a 100644 --- a/srcpkgs/autofs/template +++ b/srcpkgs/autofs/template @@ -1,7 +1,7 @@ # Template file for 'autofs' pkgname=autofs version=5.1.5 -revision=2 +revision=3 build_style=gnu-configure make_build_args="DONTSTRIP=1" configure_args="--with-libtirpc --with-mapdir=/etc/autofs --sbindir=/usr/bin"