Browse Source

libelf: update to 0.177

android-5
Leonid Plyushch 5 years ago
parent
commit
15a0e2260e
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 5
      packages/libelf/build.sh
  2. 12
      packages/libelf/elf_getaroff.c.patch
  3. 8
      packages/libelf/lib-color.c.patch
  4. 12
      packages/libelf/libelf-elf_getbase.c.patch
  5. 12
      packages/libelf/libelf-elf_getdata_rawchunk.c.patch

5
packages/libelf/build.sh

@ -3,9 +3,8 @@ TERMUX_PKG_DESCRIPTION="ELF object file access library"
TERMUX_PKG_LICENSE="GPL-2.0"
# NOTE: We only build the libelf part of elfutils for now,
# as other parts are not clang compatible.
TERMUX_PKG_VERSION=0.176
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=eb5747c371b0af0f71e86215a5ebb88728533c3a104a43d4231963f308cd1023
TERMUX_PKG_VERSION=0.177
TERMUX_PKG_SHA256=fa489deccbcae7d8c920f60d85906124c1989c591196d90e0fd668e3dc05042e
TERMUX_PKG_SRCURL=ftp://sourceware.org/pub/elfutils/${TERMUX_PKG_VERSION}/elfutils-${TERMUX_PKG_VERSION}.tar.bz2
# libandroid-support for langinfo.
TERMUX_PKG_DEPENDS="libandroid-support, zlib"

12
packages/libelf/elf_getaroff.c.patch

@ -1,12 +0,0 @@
diff -u -r ../elfutils-0.166/libelf/elf_getaroff.c ./libelf/elf_getaroff.c
--- ../elfutils-0.166/libelf/elf_getaroff.c 2015-11-27 08:36:29.000000000 -0500
+++ ./libelf/elf_getaroff.c 2016-05-04 13:07:06.547288608 -0400
@@ -38,7 +38,7 @@
#include "libelfP.h"
-off_t
+loff_t
elf_getaroff (Elf *elf)
{
/* Be gratious, the specs demand it. */

8
packages/libelf/lib-color.c.patch

@ -1,6 +1,6 @@
diff -u -r ../elfutils-0.174/lib/color.c ./lib/color.c
--- ../elfutils-0.174/lib/color.c 2018-09-14 10:23:36.000000000 +0000
+++ ./lib/color.c 2018-09-22 01:15:01.382883214 +0000
diff -uNr elfutils-0.177/lib/color.c elfutils-0.177.mod/lib/color.c
--- elfutils-0.177/lib/color.c 2019-08-14 13:12:33.000000000 +0300
+++ elfutils-0.177.mod/lib/color.c 2019-09-18 16:23:09.802519067 +0300
@@ -40,6 +40,8 @@
#include "libeu.h"
#include "color.h"
@ -17,7 +17,7 @@ diff -u -r ../elfutils-0.174/lib/color.c ./lib/color.c
- program_invocation_short_name, arg);
+ __progname, arg);
argp_help (&color_argp, stderr, ARGP_HELP_SEE,
- program_invocation_short_name);
- (char *) program_invocation_short_name);
+ __progname);
exit (EXIT_FAILURE);
}

12
packages/libelf/libelf-elf_getbase.c.patch

@ -1,12 +0,0 @@
diff -u -r ../elfutils-0.166/libelf/elf_getbase.c ./libelf/elf_getbase.c
--- ../elfutils-0.166/libelf/elf_getbase.c 2015-11-27 08:36:29.000000000 -0500
+++ ./libelf/elf_getbase.c 2016-05-04 13:01:52.776589425 -0400
@@ -37,7 +37,7 @@
#include "libelfP.h"
-off_t
+loff_t
elf_getbase (Elf *elf)
{
return elf == NULL ? (off_t) -1 : elf->start_offset;

12
packages/libelf/libelf-elf_getdata_rawchunk.c.patch

@ -1,12 +0,0 @@
diff -u -r ../elfutils-0.166/libelf/elf_getdata_rawchunk.c ./libelf/elf_getdata_rawchunk.c
--- ../elfutils-0.166/libelf/elf_getdata_rawchunk.c 2015-11-27 08:36:29.000000000 -0500
+++ ./libelf/elf_getdata_rawchunk.c 2016-05-04 13:03:35.578844420 -0400
@@ -41,7 +41,7 @@
#include "common.h"
Elf_Data *
-elf_getdata_rawchunk (Elf *elf, off_t offset, size_t size, Elf_Type type)
+elf_getdata_rawchunk (Elf *elf, loff_t offset, size_t size, Elf_Type type)
{
if (unlikely (elf == NULL))
return NULL;
Loading…
Cancel
Save