1 |
commit: e626214cc3ff526e5ee87e2567d5fda930949726 |
2 |
Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 28 15:21:20 2018 +0000 |
4 |
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 28 15:21:46 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e626214c |
7 |
|
8 |
app-emulation/libdsk: Adds sysmacros includes. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/603326 |
11 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
12 |
|
13 |
.../files/libdsk-1.5.6-include-sysmacros.patch | 22 ++++++++++++++++++++++ |
14 |
app-emulation/libdsk/libdsk-1.5.6.ebuild | 5 +++++ |
15 |
2 files changed, 27 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/libdsk/files/libdsk-1.5.6-include-sysmacros.patch b/app-emulation/libdsk/files/libdsk-1.5.6-include-sysmacros.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..e52b92bf2e3 |
20 |
--- /dev/null |
21 |
+++ b/app-emulation/libdsk/files/libdsk-1.5.6-include-sysmacros.patch |
22 |
@@ -0,0 +1,22 @@ |
23 |
+diff -Nuar a/lib/compress.c b/lib/compress.c |
24 |
+--- a/lib/compress.c 2017-02-13 20:34:21.000000000 +0100 |
25 |
++++ b/lib/compress.c 2018-01-28 15:22:15.571892254 +0100 |
26 |
+@@ -23,6 +23,7 @@ |
27 |
+ #include "drvi.h" /* For LINUXFLOPPY and WIN32FLOPPY */ |
28 |
+ #include "compi.h" |
29 |
+ #include "comp.h" |
30 |
++#include <sys/sysmacros.h> |
31 |
+ /* LibDsk generalised compression support */ |
32 |
+ #ifdef HAVE_SYS_STAT_H |
33 |
+ #include <sys/stat.h> |
34 |
+diff -Nuar a/lib/drvlinux.c b/lib/drvlinux.c |
35 |
+--- a/lib/drvlinux.c 2017-02-26 01:43:39.000000000 +0100 |
36 |
++++ b/lib/drvlinux.c 2018-01-28 15:22:08.661892284 +0100 |
37 |
+@@ -26,6 +26,7 @@ |
38 |
+ |
39 |
+ #include "drvi.h" |
40 |
+ #include "drvlinux.h" |
41 |
++#include <sys/sysmacros.h> |
42 |
+ |
43 |
+ #ifdef LINUXFLOPPY |
44 |
+ |
45 |
|
46 |
diff --git a/app-emulation/libdsk/libdsk-1.5.6.ebuild b/app-emulation/libdsk/libdsk-1.5.6.ebuild |
47 |
index b4491b53184..f3f60beebc7 100644 |
48 |
--- a/app-emulation/libdsk/libdsk-1.5.6.ebuild |
49 |
+++ b/app-emulation/libdsk/libdsk-1.5.6.ebuild |
50 |
@@ -12,6 +12,11 @@ SLOT="0" |
51 |
KEYWORDS="~amd64" |
52 |
IUSE="doc" |
53 |
|
54 |
+src_prepare() { |
55 |
+ eapply "${FILESDIR}"/${P}-include-sysmacros.patch |
56 |
+ eapply_user |
57 |
+} |
58 |
+ |
59 |
src_install() { |
60 |
emake DESTDIR="${D}" install |
61 |
DOCS="doc/${PN}.txt doc/${PN}.pdf" einstalldocs |