commit: 281a8eb89671ac1416ea8c6c3af6f0494af26677 Author: Gowtham Kudupudi <gowtham <AT> ferryfair <DOT> com> AuthorDate: Fri Nov 15 17:13:50 2019 +0000 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> CommitDate: Mon Nov 18 15:43:50 2019 +0000 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=281a8eb8
dev-libs/elfutils: explicit type cast Signed-off-by: Gowtham Kudupudi <gowtham <AT> ferryfair.com> Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> dev-libs/elfutils/elfutils-0.176-r1.ebuild | 1 + dev-libs/elfutils/elfutils-0.177.ebuild | 3 +- .../files/elfutils-0.176-dwarf_fregs.patch | 36 ++++++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/dev-libs/elfutils/elfutils-0.176-r1.ebuild b/dev-libs/elfutils/elfutils-0.176-r1.ebuild index a150b07..348a2c6 100644 --- a/dev-libs/elfutils/elfutils-0.176-r1.ebuild +++ b/dev-libs/elfutils/elfutils-0.176-r1.ebuild @@ -32,6 +32,7 @@ PATCHES=( "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch "${FILESDIR}"/${PN}-0.173-reorder.patch "${FILESDIR}"/${PN}-0.176-portability-fixes.patch + "${FILESDIR}"/${PN}-0.176-dwarf_fregs.patch ) src_prepare() { diff --git a/dev-libs/elfutils/elfutils-0.177.ebuild b/dev-libs/elfutils/elfutils-0.177.ebuild index 4431298..9da2726 100644 --- a/dev-libs/elfutils/elfutils-0.177.ebuild +++ b/dev-libs/elfutils/elfutils-0.177.ebuild @@ -30,7 +30,8 @@ DEPEND="${RDEPEND} PATCHES=( "${FILESDIR}"/${PN}-0.118-PaX-support.patch "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch - "${FILESDIR}"/${PN}-0.177-disable-large.patch + "${FILESDIR}"/${PN}-0.176-dwarf_fregs.patch + "${FILESDIR}"/${PN}-0.177-disable-large.patch "${FILESDIR}"/${PN}-0.177-portability-fixes.patch ) diff --git a/dev-libs/elfutils/files/elfutils-0.176-dwarf_fregs.patch b/dev-libs/elfutils/files/elfutils-0.176-dwarf_fregs.patch new file mode 100644 index 0000000..3a4204c --- /dev/null +++ b/dev-libs/elfutils/files/elfutils-0.176-dwarf_fregs.patch @@ -0,0 +1,36 @@ +diff --git a/backends/aarch64_initreg.c b/backends/aarch64_initreg.c +index daf6f37..6445276 100644 +--- a/backends/aarch64_initreg.c ++++ b/backends/aarch64_initreg.c +@@ -33,7 +33,7 @@ + #include "system.h" + #include <assert.h> + #if defined(__aarch64__) && defined(__linux__) +-# include <linux/uio.h> ++# include <sys/uio.h> + # include <sys/user.h> + # include <sys/ptrace.h> + /* Deal with old glibc defining user_pt_regs instead of user_regs_struct. */ +@@ -82,7 +82,7 @@ aarch64_set_initial_registers_tid (pid_t tid __attribute__ ((unused)), + + Dwarf_Word dwarf_fregs[32]; + for (int r = 0; r < 32; r++) +- dwarf_fregs[r] = fregs.vregs[r] & 0xFFFFFFFF; ++ dwarf_fregs[r] = (unsigned int)fregs.vregs[r] & 0xFFFFFFFF; + + if (! setfunc (64, 32, dwarf_fregs, arg)) + return false; +diff --git a/backends/arm_initreg.c b/backends/arm_initreg.c +index efcabaf..062bb9e 100644 +--- a/backends/arm_initreg.c ++++ b/backends/arm_initreg.c +@@ -38,7 +38,7 @@ + #endif + + #ifdef __aarch64__ +-# include <linux/uio.h> ++# include <sys/uio.h> + # include <sys/user.h> + # include <sys/ptrace.h> + /* Deal with old glibc defining user_pt_regs instead of user_regs_struct. */ + \ No newline at end of file