1 |
commit: b435de6c181413d73aa1e94f4f9de76e9adaaeee |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 30 22:53:25 2016 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 30 22:53:36 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b435de6c |
7 |
|
8 |
dev-lang/mono: fix makedev() declaration on glibc-2.24 |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
dev-lang/mono/files/mono-4.8.0.371-makedev.patch | 34 ++++++++++++++++++++++++ |
13 |
dev-lang/mono/mono-4.8.0.371.ebuild | 6 ++++- |
14 |
2 files changed, 39 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-lang/mono/files/mono-4.8.0.371-makedev.patch b/dev-lang/mono/files/mono-4.8.0.371-makedev.patch |
17 |
new file mode 100644 |
18 |
index 00000000..7a4a44b |
19 |
--- /dev/null |
20 |
+++ b/dev-lang/mono/files/mono-4.8.0.371-makedev.patch |
21 |
@@ -0,0 +1,34 @@ |
22 |
+https://bugs.gentoo.org/575232 |
23 |
+diff --git a/configure.ac b/configure.ac |
24 |
+index fa5977b..2832c69 100644 |
25 |
+--- a/configure.ac |
26 |
++++ b/configure.ac |
27 |
+@@ -416,6 +416,10 @@ AC_HEADER_STDC |
28 |
+ AC_LIBTOOL_WIN32_DLL |
29 |
+ # This causes monodis to not link correctly |
30 |
+ #AC_DISABLE_FAST_INSTALL |
31 |
++ |
32 |
++#lookup makedev() header |
33 |
++AC_HEADER_MAJOR |
34 |
++ |
35 |
+ AM_PROG_LIBTOOL |
36 |
+ # Use dolt (http://dolt.freedesktop.org/) instead of libtool for building. |
37 |
+ DOLT |
38 |
+diff --git a/mono/io-layer/processes.c b/mono/io-layer/processes.c |
39 |
+index 53c271a..7ff8d03 100644 |
40 |
+--- a/mono/io-layer/processes.c |
41 |
++++ b/mono/io-layer/processes.c |
42 |
+@@ -45,6 +45,13 @@ |
43 |
+ #include <utime.h> |
44 |
+ #endif |
45 |
+ |
46 |
++/* makedev() macro */ |
47 |
++#ifdef MAJOR_IN_MKDEV |
48 |
++#include <sys/mkdev.h> |
49 |
++#elif defined MAJOR_IN_SYSMACROS |
50 |
++#include <sys/sysmacros.h> |
51 |
++#endif |
52 |
++ |
53 |
+ /* sys/resource.h (for rusage) is required when using osx 10.3 (but not 10.4) */ |
54 |
+ #ifdef __APPLE__ |
55 |
+ #include <TargetConditionals.h> |
56 |
|
57 |
diff --git a/dev-lang/mono/mono-4.8.0.371.ebuild b/dev-lang/mono/mono-4.8.0.371.ebuild |
58 |
index fa00af0..4a4e512 100644 |
59 |
--- a/dev-lang/mono/mono-4.8.0.371.ebuild |
60 |
+++ b/dev-lang/mono/mono-4.8.0.371.ebuild |
61 |
@@ -4,7 +4,7 @@ |
62 |
|
63 |
EAPI=6 |
64 |
|
65 |
-inherit eutils linux-info mono-env flag-o-matic pax-utils versionator multilib-minimal |
66 |
+inherit autotools eutils linux-info mono-env flag-o-matic pax-utils versionator multilib-minimal |
67 |
|
68 |
DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter" |
69 |
HOMEPAGE="http://www.mono-project.com/Main_Page" |
70 |
@@ -33,6 +33,8 @@ DEPEND="${COMMONDEPEND} |
71 |
!dev-lang/mono-basic |
72 |
" |
73 |
|
74 |
+PATCHES=("${FILESDIR}"/${PN}-4.8.0.371-makedev.patch) |
75 |
+ |
76 |
S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)" |
77 |
|
78 |
pkg_pretend() { |
79 |
@@ -73,6 +75,8 @@ src_prepare() { |
80 |
#append-flags -fPIC |
81 |
|
82 |
default |
83 |
+ # PATCHES contains configure.ac patch |
84 |
+ eautoreconf |
85 |
multilib_copy_sources |
86 |
} |