From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] sudo: Enable testsuite.
Date: Wed, 12 Oct 2016 11:01:03 +0200 [thread overview]
Message-ID: <1476262863-2450-1-git-send-email-stefan.schantl@ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]
Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
sudo/sudo.nm | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/sudo/sudo.nm b/sudo/sudo.nm
index d76650d..1b2dcb1 100644
--- a/sudo/sudo.nm
+++ b/sudo/sudo.nm
@@ -5,7 +5,7 @@
name = sudo
version = 1.8.18p1
-release = 1
+release = 2
groups = Applications/System
url = http://www.sudo.ws/
@@ -34,6 +34,8 @@ build
pam-devel
end
+ export LD_LIBRARY_PATH = %{DIR_APP}/lib/util/.libs/
+
configure_options += \
--libexecdir=%{libdir} \
--with-logging=syslog \
@@ -48,8 +50,18 @@ build
--with-passprompt="[sudo] password for %p: " \
--with-linux-audit
+ prepare_cmds
+ # The tarball contains files owned by a stange uid:gid which will let
+ # the testsuite (testsudoers/test3) fail. Fix the ownership of this files.
+ chown -R 0:0 %{DIR_APP}
+ end
+
+ test
+ make check
+ end
+
install_cmds
- mkdir -pv %{BUILDROOT}/etc
+ mkdir -pv %{BUILDROOT}%{sysconfdir}
cp -vf %{DIR_SOURCE}/sudoers %{BUILDROOT}%{sysconfdir}/sudoers
end
end
--
2.7.4
reply other threads:[~2016-10-12 9:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1476262863-2450-1-git-send-email-stefan.schantl@ipfire.org \
--to=stefan.schantl@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox