sys-freebsd/freebsd-lib: Backport Elf_Nhdr support needed for mesa
authorMichał Górny <mgorny@gentoo.org>
Fri, 23 Feb 2018 07:18:11 +0000 (08:18 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 23 Feb 2018 20:36:11 +0000 (21:36 +0100)
sys-freebsd/freebsd-lib/files/freebsd-lib-11.1-elf-nhdr.patch [new file with mode: 0644]
sys-freebsd/freebsd-lib/freebsd-lib-11.1-r1.ebuild [moved from sys-freebsd/freebsd-lib/freebsd-lib-11.1.ebuild with 99% similarity]

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
new file mode 100644 (file)
index 0000000..a00df5f
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/sys/sys/elf_common.h     2018/01/18 20:45:41     328136
++++ b/sys/sys/elf_common.h     2018/01/18 21:19:57     328137
+@@ -51,6 +51,7 @@
+       u_int32_t       n_descsz;       /* Length of descriptor. */
+       u_int32_t       n_type;         /* Type of this note. */
+ } Elf_Note;
++typedef Elf_Note Elf_Nhdr;
+ 
+ /*
+  * Option kinds.
similarity index 99%
rename from sys-freebsd/freebsd-lib/freebsd-lib-11.1.ebuild
rename to sys-freebsd/freebsd-lib/freebsd-lib-11.1-r1.ebuild
index 61bfeb3924f8c9feb0caff76bc3de5f49a46ae8d..e28f2420c1f1d11fef989119beb996c66126b36a 100644 (file)
@@ -174,6 +174,7 @@ src_prepare() {
        # patches "${WORKDIR}/include"
        cd "${WORKDIR}"
        epatch "${FILESDIR}/${PN}-includes.patch"
+       epatch "${FILESDIR}/${PN}-11.1-elf-nhdr.patch"
 
        # Don't install the hesiod man page or header
        rm "${WORKDIR}"/include/hesiod.h || die