summaryrefslogtreecommitdiff
path: root/app-crypt/veracrypt/files/veracrypt-1.22-sysmacros-fix.patch
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@gentoo.org>2018-04-03 23:49:10 -0400
committerGöktürk Yüksek <gokturk@gentoo.org>2018-04-03 23:49:10 -0400
commit84c3c30ebb39b2b7fdef328d4e11793dd3eb6d45 (patch)
treee3147f465cc4b1c3fff6f0ac581248f0a12c5b0e /app-crypt/veracrypt/files/veracrypt-1.22-sysmacros-fix.patch
parentbac8ceadb228cb5d011bbfaa314d582c7f60c360 (diff)
downloadgentoo-84c3c30ebb39b2b7fdef328d4e11793dd3eb6d45.tar.gz
gentoo-84c3c30ebb39b2b7fdef328d4e11793dd3eb6d45.tar.xz
app-crypt/veracrypt: bump to 1.22
- Add support for SSSE3 and SSE4_1 through cpu_flags_x86_*. - Rework some of the USE logic using usex. - Fix the desktop file category. "Encryption;Encryption Tools;Utility;" is unregistered according to the desktop menu specification. Replace it with "Utility;Security". Bug: https://bugs.gentoo.org/611362 Closes: https://bugs.gentoo.org/652052 Package-Manager: Portage-2.3.27, Repoman-2.3.9
Diffstat (limited to 'app-crypt/veracrypt/files/veracrypt-1.22-sysmacros-fix.patch')
-rw-r--r--app-crypt/veracrypt/files/veracrypt-1.22-sysmacros-fix.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/app-crypt/veracrypt/files/veracrypt-1.22-sysmacros-fix.patch b/app-crypt/veracrypt/files/veracrypt-1.22-sysmacros-fix.patch
new file mode 100644
index 00000000000..702e8f702ec
--- /dev/null
+++ b/app-crypt/veracrypt/files/veracrypt-1.22-sysmacros-fix.patch
@@ -0,0 +1,36 @@
+From 0a50becec3a3cca71e575dfec35d69ab295c85cc Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?G=C3=B6kt=C3=BCrk=20Y=C3=BCksek?= <gokturk@gentoo.org>
+Date: Tue, 3 Apr 2018 23:06:20 -0400
+Subject: [PATCH] Platform/Unix: include <sys/sysmacros.h> for major/minor
+ macros
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Starting with glibc 2.26, macros "major" and "minor" are only
+available from <sys/sysmacros.h> [0]. The build fails with the
+following without including this header:
+
+Unix/FilesystemPath.cpp:84:49: error: ‘major’ was not declared in this scope
+Unix/FilesystemPath.cpp:84:113: error: ‘minor’ was not declared in this scope
+
+[0] https://sourceware.org/ml/libc-alpha/2017-02/msg00079.html
+---
+ src/Platform/Unix/FilesystemPath.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/Platform/Unix/FilesystemPath.cpp b/src/Platform/Unix/FilesystemPath.cpp
+index d6c9cd2..7c28af4 100644
+--- a/Platform/Unix/FilesystemPath.cpp
++++ b/Platform/Unix/FilesystemPath.cpp
+@@ -15,6 +15,7 @@
+ #include "Platform/StringConverter.h"
+ #include <stdio.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+
+ namespace VeraCrypt
+ {
+--
+2.16.3
+