1 |
commit: ce1aab756c2d45e2b4d297cb98f45595c3dfcc54 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 23 07:18:11 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 23 20:36:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce1aab75 |
7 |
|
8 |
sys-freebsd/freebsd-lib: Backport Elf_Nhdr support needed for mesa |
9 |
|
10 |
sys-freebsd/freebsd-lib/files/freebsd-lib-11.1-elf-nhdr.patch | 10 ++++++++++ |
11 |
.../{freebsd-lib-11.1.ebuild => freebsd-lib-11.1-r1.ebuild} | 1 + |
12 |
2 files changed, 11 insertions(+) |
13 |
|
14 |
diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-11.1-elf-nhdr.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-11.1-elf-nhdr.patch |
15 |
new file mode 100644 |
16 |
index 00000000000..a00df5f66f1 |
17 |
--- /dev/null |
18 |
+++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-11.1-elf-nhdr.patch |
19 |
@@ -0,0 +1,10 @@ |
20 |
+--- a/sys/sys/elf_common.h 2018/01/18 20:45:41 328136 |
21 |
++++ b/sys/sys/elf_common.h 2018/01/18 21:19:57 328137 |
22 |
+@@ -51,6 +51,7 @@ |
23 |
+ u_int32_t n_descsz; /* Length of descriptor. */ |
24 |
+ u_int32_t n_type; /* Type of this note. */ |
25 |
+ } Elf_Note; |
26 |
++typedef Elf_Note Elf_Nhdr; |
27 |
+ |
28 |
+ /* |
29 |
+ * Option kinds. |
30 |
|
31 |
diff --git a/sys-freebsd/freebsd-lib/freebsd-lib-11.1.ebuild b/sys-freebsd/freebsd-lib/freebsd-lib-11.1-r1.ebuild |
32 |
similarity index 99% |
33 |
rename from sys-freebsd/freebsd-lib/freebsd-lib-11.1.ebuild |
34 |
rename to sys-freebsd/freebsd-lib/freebsd-lib-11.1-r1.ebuild |
35 |
index 61bfeb3924f..e28f2420c1f 100644 |
36 |
--- a/sys-freebsd/freebsd-lib/freebsd-lib-11.1.ebuild |
37 |
+++ b/sys-freebsd/freebsd-lib/freebsd-lib-11.1-r1.ebuild |
38 |
@@ -174,6 +174,7 @@ src_prepare() { |
39 |
# patches "${WORKDIR}/include" |
40 |
cd "${WORKDIR}" |
41 |
epatch "${FILESDIR}/${PN}-includes.patch" |
42 |
+ epatch "${FILESDIR}/${PN}-11.1-elf-nhdr.patch" |
43 |
|
44 |
# Don't install the hesiod man page or header |
45 |
rm "${WORKDIR}"/include/hesiod.h || die |