1 |
commit: 0df3941d411137477e48943898d3cbb486b5229c |
2 |
Author: Andreas Zuber <a.zuber <AT> gmx <DOT> ch> |
3 |
AuthorDate: Mon Mar 19 16:09:40 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 22 13:06:06 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0df3941d |
7 |
|
8 |
dev-libs/libexplain: add missing defines. |
9 |
|
10 |
These defines have been removed from the Linux headers and have |
11 |
to be added with a patch to make the library compile again. |
12 |
|
13 |
The patch comes from the Debian bug: |
14 |
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=828853 |
15 |
|
16 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
17 |
Closes: https://bugs.gentoo.org/628628 |
18 |
Closes: https://github.com/gentoo/gentoo/pull/7509 |
19 |
|
20 |
.../files/libexplain-missing-defines.patch | 18 ++++++++ |
21 |
dev-libs/libexplain/libexplain-1.4-r2.ebuild | 53 ++++++++++++++++++++++ |
22 |
2 files changed, 71 insertions(+) |
23 |
|
24 |
diff --git a/dev-libs/libexplain/files/libexplain-missing-defines.patch b/dev-libs/libexplain/files/libexplain-missing-defines.patch |
25 |
new file mode 100644 |
26 |
index 00000000000..bb1170cbc38 |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/libexplain/files/libexplain-missing-defines.patch |
29 |
@@ -0,0 +1,18 @@ |
30 |
+--- libexplain-1.4.D001.orig/libexplain/buffer/file_inode_flags.c |
31 |
++++ libexplain-1.4.D001/libexplain/buffer/file_inode_flags.c |
32 |
+@@ -28,6 +28,14 @@ |
33 |
+ |
34 |
+ #if defined(FS_IOC_GETFLAGS) || defined(FS_IOC32_GETFLAGS) |
35 |
+ |
36 |
++#ifndef FS_ECOMPR_FL |
37 |
++#define FS_ECOMPR_FL 0x00000800 /* Compression error */ |
38 |
++#endif |
39 |
++ |
40 |
++#ifndef FS_DIRECTIO_FL |
41 |
++#define FS_DIRECTIO_FL 0x00100000 /* Use direct i/o */ |
42 |
++#endif |
43 |
++ |
44 |
+ void |
45 |
+ explain_buffer_file_inode_flags(explain_string_buffer_t *sb, int value) |
46 |
+ { |
47 |
+ |
48 |
|
49 |
diff --git a/dev-libs/libexplain/libexplain-1.4-r2.ebuild b/dev-libs/libexplain/libexplain-1.4-r2.ebuild |
50 |
new file mode 100644 |
51 |
index 00000000000..d008b1f40c1 |
52 |
--- /dev/null |
53 |
+++ b/dev-libs/libexplain/libexplain-1.4-r2.ebuild |
54 |
@@ -0,0 +1,53 @@ |
55 |
+# Copyright 1999-2018 Gentoo Foundation |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=6 |
59 |
+ |
60 |
+inherit autotools |
61 |
+ |
62 |
+DESCRIPTION="Library which may be used to explain Unix and Linux system call errors" |
63 |
+HOMEPAGE="http://libexplain.sourceforge.net/" |
64 |
+SRC_URI="http://libexplain.sourceforge.net/${P}.tar.gz" |
65 |
+ |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
68 |
+LICENSE="GPL-3 LGPL-3" |
69 |
+IUSE="static-libs" |
70 |
+ |
71 |
+DEPEND=" |
72 |
+ sys-apps/acl |
73 |
+ sys-apps/groff |
74 |
+ app-text/ghostscript-gpl |
75 |
+ >=sys-kernel/linux-headers-2.6.35" |
76 |
+ |
77 |
+RDEPEND=" |
78 |
+ ${DEPEND} |
79 |
+ sys-libs/libcap |
80 |
+ sys-process/lsof |
81 |
+ sys-libs/glibc" |
82 |
+ |
83 |
+# Test fails with: |
84 |
+# This is not a bug, but it does indicate where libexplain's ioctl support |
85 |
+# could be improved. |
86 |
+RESTRICT="test" |
87 |
+ |
88 |
+PATCHES=( |
89 |
+ "${FILESDIR}"/${PN}-0.45-configure.patch |
90 |
+ "${FILESDIR}"/libexplain-missing-defines.patch |
91 |
+) |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ # Portage incompatible test |
95 |
+ sed \ |
96 |
+ -e '/t0524a/d' \ |
97 |
+ -e '/t0363a/d' \ |
98 |
+ -i Makefile.in || die |
99 |
+ |
100 |
+ cp -v "${S}"/etc/configure.ac "${S}" || die |
101 |
+ default |
102 |
+ eautoreconf |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ default |
107 |
+} |