mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
sudo: fix tests on musl.
This commit is contained in:
parent
986f5b2c8f
commit
9241b23d36
2 changed files with 16 additions and 3 deletions
15
srcpkgs/sudo/patches/fix-musl-test.patch
Normal file
15
srcpkgs/sudo/patches/fix-musl-test.patch
Normal 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>
|
|
@ -29,11 +29,9 @@ post_configure() {
|
||||||
pre_install() {
|
pre_install() {
|
||||||
find ${wrksrc} -type f -name Makefile -exec sed -i 's,$(INSTALL_OWNER),,g' {} \;
|
find ${wrksrc} -type f -name Makefile -exec sed -i 's,$(INSTALL_OWNER),,g' {} \;
|
||||||
}
|
}
|
||||||
do_check() {
|
pre_check() {
|
||||||
# Failing test
|
# Failing test
|
||||||
rm plugins/sudoers/regress/sudoers/test19*
|
rm plugins/sudoers/regress/sudoers/test19*
|
||||||
|
|
||||||
make check
|
|
||||||
}
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall ${FILESDIR}/sudo.pam 644 etc/pam.d sudo
|
vinstall ${FILESDIR}/sudo.pam 644 etc/pam.d sudo
|
||||||
|
|
Loading…
Add table
Reference in a new issue