sudo: fix tests on musl.

This commit is contained in:
maxice8 2017-11-20 07:20:23 -02:00 committed by Enno Boland
parent 986f5b2c8f
commit 9241b23d36
2 changed files with 16 additions and 3 deletions

View File

@ -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 <config.h>
#include <stdio.h>
+#include <sys/stat.h>
#include <stdlib.h>
#ifdef HAVE_STRING_H
# include <string.h>

View File

@ -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