aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGowtham Kudupudi <gowtham@ferryfair.com>2019-11-15 22:43:50 +0530
committerAnthony G. Basile <blueness@gentoo.org>2019-11-18 10:43:50 -0500
commit281a8eb89671ac1416ea8c6c3af6f0494af26677 (patch)
tree1f0d4a8f1eed2ec1c4adab654c61bdb2021c87a0 /dev-libs/elfutils
parentmedia-libs/mesa: Version bump (diff)
downloadmusl-281a8eb89671ac1416ea8c6c3af6f0494af26677.tar.gz
musl-281a8eb89671ac1416ea8c6c3af6f0494af26677.tar.bz2
musl-281a8eb89671ac1416ea8c6c3af6f0494af26677.zip
dev-libs/elfutils: explicit type cast
Signed-off-by: Gowtham Kudupudi <gowtham@ferryfair.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'dev-libs/elfutils')
-rw-r--r--dev-libs/elfutils/elfutils-0.176-r1.ebuild1
-rw-r--r--dev-libs/elfutils/elfutils-0.177.ebuild3
-rw-r--r--dev-libs/elfutils/files/elfutils-0.176-dwarf_fregs.patch36
3 files changed, 39 insertions, 1 deletions
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