Browse Source

xap/veracrypt: Upgraded to veracrypt-1.24.update4.

slackware-15.0
parent
commit
390671bc39
  1. 1
      xap/veracrypt/VeraCrypt_1.24-Hotfix1_Source.tar.bz2.sha256
  2. 1
      xap/veracrypt/VeraCrypt_1.24-Update4_Source.tar.bz2.sha256
  3. 39
      xap/veracrypt/veracrypt-1.24-fix-uint64-decl.patch
  4. 7
      xap/veracrypt/veracrypt.SlackBuild

1
xap/veracrypt/VeraCrypt_1.24-Hotfix1_Source.tar.bz2.sha256

@ -1 +0,0 @@
8b40ece805b216843d7a71b1a30069c4057931341b030bf65caace59263c5c8c VeraCrypt_1.24-Hotfix1_Source.tar.bz2

1
xap/veracrypt/VeraCrypt_1.24-Update4_Source.tar.bz2.sha256

@ -0,0 +1 @@
9d622bdd5c77ceec4de4c1e2c80cdafca93d420df5e1663f2c98260db6c0ee84 VeraCrypt_1.24-Update4_Source.tar.bz2

39
xap/veracrypt/veracrypt-1.24-fix-uint64-decl.patch

@ -1,39 +0,0 @@
diff -Naur orig/src/Crypto/jitterentropy-base-user.h mod/src/Crypto/jitterentropy-base-user.h
--- orig/src/Crypto/jitterentropy-base-user.h 2019-10-27 12:10:18.000000000 +0000
+++ mod/src/Crypto/jitterentropy-base-user.h 2019-12-15 23:26:23.663508743 +0000
@@ -49,8 +49,6 @@
#include <stdlib.h>
#include <string.h>
-typedef uint64 __u64;
-
#ifdef _MSC_VER
typedef uint64 uint64_t;
@@ -70,7 +68,7 @@
#endif
#endif
-static VC_INLINE void jent_get_nstime(__u64 *out)
+static VC_INLINE void jent_get_nstime(uint64 *out)
{
*out = __rdtsc();;
}
@@ -80,7 +78,7 @@
/* taken from Linux kernel */
#if CRYPTOPP_BOOL_X64
#define DECLARE_ARGS(val, low, high) unsigned low, high
-#define EAX_EDX_VAL(val, low, high) ((low) | ((__u64)(high) << 32))
+#define EAX_EDX_VAL(val, low, high) ((low) | ((uint64)(high) << 32))
#define EAX_EDX_RET(val, low, high) "=a" (low), "=d" (high)
#else
#define DECLARE_ARGS(val, low, high) unsigned long long val
@@ -88,7 +86,7 @@
#define EAX_EDX_RET(val, low, high) "=A" (val)
#endif
-VC_INLINE void jent_get_nstime(__u64 *out)
+VC_INLINE void jent_get_nstime(uint64 *out)
{
DECLARE_ARGS(val, low, high);
asm volatile("rdtsc" : EAX_EDX_RET(val, low, high));

7
xap/veracrypt/veracrypt.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2017,2019 Damien Goutte-Gattat
# Copyright (C) 2017,2019,2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -28,9 +28,9 @@
# Source package infos
NAMESRC=${NAMESRC:-VeraCrypt}
VERSION=${VERSION:-1.24-Hotfix1}
VERSION=${VERSION:-1.24-Update4}
ARCHIVE=${ARCHIVE:-${NAMESRC}_${VERSION}_Source.tar.bz2}
WGET=${WGET:-https://launchpad.net/veracrypt/trunk/1.24-hotfix1/+download/$ARCHIVE}
WGET=${WGET:-https://launchpad.net/veracrypt/trunk/1.24-update4/+download/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-veracrypt}
@ -86,7 +86,6 @@ NAME=$NAMEPKG-$VERSION
mkdir $TMP/$NAME && cd $TMP/$NAME
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
patch -p 1 < $CWD/veracrypt-1.24-fix-uint64-decl.patch
cd src
make -j $JOBS
install -D -m 755 Main/veracrypt $PKG/usr/bin/veracrypt

Loading…
Cancel
Save