Date: Sunday, June 28, 2015 @ 23:25:03 Author: eworm Revision: 136085
use upstream patch Modified: oath-toolkit/trunk/PKGBUILD Deleted: oath-toolkit/trunk/0001-fix-make-check-on-32-bit-systems.patch ---------------------------------------------+ 0001-fix-make-check-on-32-bit-systems.patch | 43 -------------------------- PKGBUILD | 4 +- 2 files changed, 2 insertions(+), 45 deletions(-) Deleted: 0001-fix-make-check-on-32-bit-systems.patch =================================================================== --- 0001-fix-make-check-on-32-bit-systems.patch 2015-06-28 21:16:08 UTC (rev 136084) +++ 0001-fix-make-check-on-32-bit-systems.patch 2015-06-28 21:25:03 UTC (rev 136085) @@ -1,43 +0,0 @@ -From 547065646f96d8e7a3b88ebc03b0fd35294e9d11 Mon Sep 17 00:00:00 2001 -From: Christian Hesse <m...@eworm.de> -Date: Mon, 25 May 2015 17:34:19 +0200 -Subject: [PATCH 1/1] fix make check on 32 bit systems - -Some tests break with time_t limited to 32 bit. The test code has -exception, but bad values. Update the values to what we expect and make -tests pass. - -Signed-off-by: Christian Hesse <m...@eworm.de> ---- - liboath/tests/tst_totp_algo.c | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/liboath/tests/tst_totp_algo.c b/liboath/tests/tst_totp_algo.c -index 019efb9..f56be1f 100644 ---- a/liboath/tests/tst_totp_algo.c -+++ b/liboath/tests/tst_totp_algo.c -@@ -131,8 +131,8 @@ main (void) - if (strcmp (otp, tv[i].sha256otp) != 0) - { - printf ("otp[%ld] got %s expected2 %s\n", i, otp, tv[i].sha256otp); -- if (strcmp (otp, "82762030") == 0 -- && strcmp (tv[i].sha256otp, "65353130") == 0) -+ if (strcmp (otp, "11281421") == 0 -+ && strcmp (tv[i].sha256otp, "77737706") == 0) - printf ("Mismatch due to 32-bit time_t...\n"); - else - return 1; -@@ -153,8 +153,8 @@ main (void) - if (strcmp (otp, tv[i].sha512otp) != 0) - { - printf ("otp[%ld] got %s expected2 %s\n", i, otp, tv[i].sha512otp); -- if (strcmp (otp, "82762030") == 0 -- && strcmp (tv[i].sha512otp, "65353130") == 0) -+ if (strcmp (otp, "29833534") == 0 -+ && strcmp (tv[i].sha512otp, "47863826") == 0) - printf ("Mismatch due to 32-bit time_t...\n"); - else - return 1; --- -2.4.1 - Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-06-28 21:16:08 UTC (rev 136084) +++ PKGBUILD 2015-06-28 21:25:03 UTC (rev 136085) @@ -13,10 +13,10 @@ depends=('glibc' 'pam' 'xmlsec') validpgpkeys=('9AA9BDB11BB1B99A21285A330664A76954265E8C') # Simon Josefsson source=("http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig} - '0001-fix-make-check-on-32-bit-systems.patch') + '0001-fix-make-check-on-32-bit-systems.patch::http://git.savannah.gnu.org/cgit/oath-toolkit.git/patch/?id=1cd97516756d3e9d71c4072164bda9070625f9ee') md5sums=('f19f1c47eb7d1c609b3e244876b9ce63' 'SKIP' - 'd3c1a32357fb27f67a82bffd08331062') + '239e0e8f0905e84202e79ab11b85ebb7') prepare() { cd $pkgname-$pkgver