sudo: fix tests on musl.
This commit is contained in:
parent
986f5b2c8f
commit
9241b23d36
|
@ -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>
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue