1 |
commit: dcf578ba21ff83792171742c7e2430ba942f7dc1 |
2 |
Author: Felix Janda <felix.janda <AT> posteo <DOT> de> |
3 |
AuthorDate: Sat Mar 1 16:31:37 2014 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 1 20:01:31 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=dcf578ba |
7 |
|
8 |
media-libs/mesa: musl has endian.h |
9 |
|
10 |
--- |
11 |
media-libs/mesa/files/mesa-9.1.6-endian.patch | 11 +++++++++++ |
12 |
media-libs/mesa/mesa-9.1.6-r99.ebuild | 1 + |
13 |
2 files changed, 12 insertions(+) |
14 |
|
15 |
diff --git a/media-libs/mesa/files/mesa-9.1.6-endian.patch b/media-libs/mesa/files/mesa-9.1.6-endian.patch |
16 |
new file mode 100644 |
17 |
index 0000000..98914b0 |
18 |
--- /dev/null |
19 |
+++ b/media-libs/mesa/files/mesa-9.1.6-endian.patch |
20 |
@@ -0,0 +1,11 @@ |
21 |
+--- a/Mesa-9.1.6/src/gallium/include/pipe/p_config.h |
22 |
++++ b/Mesa-9.1.6/src/gallium/include/pipe/p_config.h |
23 |
+@@ -115,7 +115,7 @@ |
24 |
+ * Endian detection. |
25 |
+ */ |
26 |
+ |
27 |
+-#ifdef __GLIBC__ |
28 |
++#if 1 |
29 |
+ #include <endian.h> |
30 |
+ |
31 |
+ #if __BYTE_ORDER == __LITTLE_ENDIAN |
32 |
|
33 |
diff --git a/media-libs/mesa/mesa-9.1.6-r99.ebuild b/media-libs/mesa/mesa-9.1.6-r99.ebuild |
34 |
index ca54f30..ffcb32f 100644 |
35 |
--- a/media-libs/mesa/mesa-9.1.6-r99.ebuild |
36 |
+++ b/media-libs/mesa/mesa-9.1.6-r99.ebuild |
37 |
@@ -169,6 +169,7 @@ src_prepare() { |
38 |
|
39 |
# Make it compile with musl |
40 |
epatch "${FILESDIR}"/${PN}-9.1.6-fpclassify.patch |
41 |
+ epatch "${FILESDIR}"/${PN}-9.1.6-endian.patch |
42 |
|
43 |
# fix for hardened pax_kernel, bug 240956 |
44 |
[[ ${PV} != 9999* ]] && epatch "${FILESDIR}"/glx_ro_text_segm.patch |