]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
sudo: Enable testsuite.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 12 Oct 2016 09:01:03 +0000 (11:01 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Oct 2016 17:23:05 +0000 (18:23 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
sudo/sudo.nm

index d76650d60d6ee529b56d6909bdc3617a0b576080..1b2dcb1cb84816bcd7abcc67f58c1b96d05df117 100644 (file)
@@ -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