commit:     8176bee1553748cff108089b86b733ade9096c24
Author:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  8 17:33:05 2017 +0000
Commit:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
CommitDate: Sat Apr  8 17:33:23 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8176bee1

app-crypt/tc-play: add sysmacros.h

Bug: 579924

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 app-crypt/tc-play/files/tc-play-2.0-build.patch | 27 +++++++++++++++++++++++++
 app-crypt/tc-play/tc-play-2.0-r1.ebuild         |  4 ++++
 2 files changed, 31 insertions(+)

diff --git a/app-crypt/tc-play/files/tc-play-2.0-build.patch 
b/app-crypt/tc-play/files/tc-play-2.0-build.patch
new file mode 100644
index 00000000000..0385f33b45b
--- /dev/null
+++ b/app-crypt/tc-play/files/tc-play-2.0-build.patch
@@ -0,0 +1,27 @@
+From 3f9235841ba4494962b3c7dafcd16fd3ff5f6575 Mon Sep 17 00:00:00 2001
+From: Alon Bar-Lev <[email protected]>
+Date: Sat, 8 Apr 2017 20:27:17 +0300
+Subject: [PATCH] build: include sys/sysmacros.h for recent glibc
+
+https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html
+
+Signed-off-by: Alon Bar-Lev <[email protected]>
+---
+ tcplay.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tcplay.c b/tcplay.c
+index cd882cf..a6d4655 100644
+--- a/tcplay.c
++++ b/tcplay.c
+@@ -47,6 +47,7 @@
+ #if defined(__linux__)
+ #include <libdevmapper.h>
+ #include <uuid/uuid.h>
++#include <sys/sysmacros.h>
+ #elif defined(__DragonFly__)
+ #include <libdm.h>
+ #include <uuid.h>
+-- 
+2.10.2
+

diff --git a/app-crypt/tc-play/tc-play-2.0-r1.ebuild 
b/app-crypt/tc-play/tc-play-2.0-r1.ebuild
index 043d93a7a76..16df65d19d0 100644
--- a/app-crypt/tc-play/tc-play-2.0-r1.ebuild
+++ b/app-crypt/tc-play/tc-play-2.0-r1.ebuild
@@ -30,6 +30,10 @@ DOCS=(
        README.md
 )
 
+PATCHES=(
+       "${FILESDIR}/${P}-build.patch"
+)
+
 pkg_setup() {
        local backend="openssl"
        use gnutls && local backend="gcrypt"

Reply via email to