Browse Source

libelf: Keep the libelf part of elfutils

While all of elfutils does not build with clang, the libelf part does
and is needed by ltrace. So keep libelf as a package and let it replace
elfutils for now.
android-5
Fredrik Fornwall 6 years ago
parent
commit
e6b266e4fe
  1. 25
      packages/libelf/build.sh
  2. 0
      packages/libelf/config.h.in.patch
  3. 0
      packages/libelf/dwfl_error.c.patch
  4. 0
      packages/libelf/elf_getaroff.c.patch
  5. 0
      packages/libelf/elf_getarsym.c.patch
  6. 0
      packages/libelf/elf_update.c.patch
  7. 0
      packages/libelf/error.h
  8. 0
      packages/libelf/libdwflP.h.patch
  9. 0
      packages/libelf/libelf-elf_getbase.c.patch
  10. 0
      packages/libelf/libelf-elf_getdata_rawchunk.c.patch
  11. 0
      packages/libelf/obstack.h
  12. 0
      packages/libelf/qsort_r.h
  13. 0
      packages/libelf/ranlib.c.patch
  14. 0
      packages/libelf/src-ar.c.patch
  15. 0
      packages/libelf/src-readelf.c.patch
  16. 0
      packages/libelf/stdio_ext.h
  17. 0
      packages/libelf/strings.c.patch
  18. 0
      packages/libelf/strip.c.patch
  19. 0
      packages/libelf/unstrip.c.patch

25
disabled-packages/elfutils/build.sh → packages/libelf/build.sh

@ -1,20 +1,26 @@
# Status: Does not build with clang
TERMUX_PKG_HOMEPAGE=https://sourceware.org/elfutils/ TERMUX_PKG_HOMEPAGE=https://sourceware.org/elfutils/
TERMUX_PKG_DESCRIPTION="ELF object file access library" TERMUX_PKG_DESCRIPTION="ELF object file access library"
# NOTE: We only build the libelf part of elfutils for now,
# as other parts are not clang compatible.
TERMUX_PKG_VERSION=(0.173 TERMUX_PKG_VERSION=(0.173
1.3) 1.3)
TERMUX_PKG_SHA256=(b76d8c133f68dad46250f5c223482c8299d454a69430d9aa5c19123345a000ff TERMUX_PKG_SHA256=(b76d8c133f68dad46250f5c223482c8299d454a69430d9aa5c19123345a000ff
dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be) dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be)
TERMUX_PKG_SRCURL=(ftp://sourceware.org/pub/elfutils/${TERMUX_PKG_VERSION}/elfutils-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SRCURL=(ftp://sourceware.org/pub/elfutils/${TERMUX_PKG_VERSION}/elfutils-${TERMUX_PKG_VERSION}.tar.bz2
http://www.lysator.liu.se/~nisse/archive/argp-standalone-${TERMUX_PKG_VERSION[1]}.tar.gz) http://www.lysator.liu.se/~nisse/archive/argp-standalone-${TERMUX_PKG_VERSION[1]}.tar.gz)
# libandroid-support for langinfo. # libandroid-support for langinfo.
TERMUX_PKG_DEPENDS="libandroid-support, liblzma, libbz2" TERMUX_PKG_DEPENDS="libandroid-support"
# Use "eu-" as program prefix to avoid conflict with binutils programs. # Use "eu-" as program prefix to avoid conflict with binutils programs.
# This is what several linux distributions do. # This is what several linux distributions do.
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--program-prefix='eu-' TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-symbol-versioning" ac_cv_c99=yes
--program-prefix='eu-'
--disable-symbol-versioning
"
# The ar.c file is patched away for now: # The ar.c file is patched away for now:
TERMUX_PKG_RM_AFTER_INSTALL="bin/eu-ar" TERMUX_PKG_RM_AFTER_INSTALL="bin/eu-ar"
TERMUX_PKG_CONFLICTS=elfutils
TERMUX_PKG_REPLACES=elfutils
termux_step_pre_configure() { termux_step_pre_configure() {
CFLAGS+=" -Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error" CFLAGS+=" -Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error"
@ -39,3 +45,12 @@ termux_step_pre_configure() {
LDFLAGS+=" -L$TERMUX_PKG_SRCDIR/argp-standalone-${TERMUX_PKG_VERSION[1]}" LDFLAGS+=" -L$TERMUX_PKG_SRCDIR/argp-standalone-${TERMUX_PKG_VERSION[1]}"
CPPFLAGS+=" -isystem $TERMUX_PKG_SRCDIR/argp-standalone-${TERMUX_PKG_VERSION[1]}" CPPFLAGS+=" -isystem $TERMUX_PKG_SRCDIR/argp-standalone-${TERMUX_PKG_VERSION[1]}"
} }
termux_step_make() {
make -j $TERMUX_MAKE_PROCESSES -C lib
make -j $TERMUX_MAKE_PROCESSES -C libelf
}
termux_step_make_install() {
make -j $TERMUX_MAKE_PROCESSES -C libelf install
}

0
disabled-packages/elfutils/config.h.in.patch → packages/libelf/config.h.in.patch

0
disabled-packages/elfutils/dwfl_error.c.patch → packages/libelf/dwfl_error.c.patch

0
disabled-packages/elfutils/elf_getaroff.c.patch → packages/libelf/elf_getaroff.c.patch

0
disabled-packages/elfutils/elf_getarsym.c.patch → packages/libelf/elf_getarsym.c.patch

0
disabled-packages/elfutils/elf_update.c.patch → packages/libelf/elf_update.c.patch

0
disabled-packages/elfutils/error.h → packages/libelf/error.h

0
disabled-packages/elfutils/libdwflP.h.patch → packages/libelf/libdwflP.h.patch

0
disabled-packages/elfutils/libelf-elf_getbase.c.patch → packages/libelf/libelf-elf_getbase.c.patch

0
disabled-packages/elfutils/libelf-elf_getdata_rawchunk.c.patch → packages/libelf/libelf-elf_getdata_rawchunk.c.patch

0
disabled-packages/elfutils/obstack.h → packages/libelf/obstack.h

0
disabled-packages/elfutils/qsort_r.h → packages/libelf/qsort_r.h

0
disabled-packages/elfutils/ranlib.c.patch → packages/libelf/ranlib.c.patch

0
disabled-packages/elfutils/src-ar.c.patch → packages/libelf/src-ar.c.patch

0
disabled-packages/elfutils/src-readelf.c.patch → packages/libelf/src-readelf.c.patch

0
disabled-packages/elfutils/stdio_ext.h → packages/libelf/stdio_ext.h

0
disabled-packages/elfutils/strings.c.patch → packages/libelf/strings.c.patch

0
disabled-packages/elfutils/strip.c.patch → packages/libelf/strip.c.patch

0
disabled-packages/elfutils/unstrip.c.patch → packages/libelf/unstrip.c.patch

Loading…
Cancel
Save