From 9241b23d364a9e648382d06b610a2c7010cda367 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Mon, 20 Nov 2017 07:20:23 -0200 Subject: [PATCH] sudo: fix tests on musl. --- srcpkgs/sudo/patches/fix-musl-test.patch | 15 +++++++++++++++ srcpkgs/sudo/template | 4 +--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/sudo/patches/fix-musl-test.patch diff --git a/srcpkgs/sudo/patches/fix-musl-test.patch b/srcpkgs/sudo/patches/fix-musl-test.patch new file mode 100644 index 00000000000..cfd14e21134 --- /dev/null +++ b/srcpkgs/sudo/patches/fix-musl-test.patch @@ -0,0 +1,15 @@ +sys/stat.h is required for mode_t + +Fixes +error: unknown type name 'mode_t' + +--- plugins/sudoers/regress/env_match/check_env_pattern.c ++++ plugins/sudoers/regress/env_match/check_env_pattern.c +@@ -17,6 +17,7 @@ + #include + + #include ++#include + #include + #ifdef HAVE_STRING_H + # include diff --git a/srcpkgs/sudo/template b/srcpkgs/sudo/template index 68886a5b9b9..a5715e874d3 100644 --- a/srcpkgs/sudo/template +++ b/srcpkgs/sudo/template @@ -29,11 +29,9 @@ post_configure() { pre_install() { find ${wrksrc} -type f -name Makefile -exec sed -i 's,$(INSTALL_OWNER),,g' {} \; } -do_check() { +pre_check() { # Failing test rm plugins/sudoers/regress/sudoers/test19* - - make check } post_install() { vinstall ${FILESDIR}/sudo.pam 644 etc/pam.d sudo