diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-13 03:18:35 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-13 03:18:35 +0000 |
commit | b6ad8075baf858359209aa7f1af82a143dcc0c80 (patch) | |
tree | 905bbb7a639842e49556d2aafa014d77be7d81ea /extra/elfutils | |
parent | e3fe31f4a2c44fef8da55c60c3f95a763fdfd3c7 (diff) |
Thu Feb 13 03:16:56 UTC 2014
Diffstat (limited to 'extra/elfutils')
-rw-r--r-- | extra/elfutils/PKGBUILD | 18 | ||||
-rw-r--r-- | extra/elfutils/fix-run-backtrace-native-core-test.patch | 43 |
2 files changed, 57 insertions, 4 deletions
diff --git a/extra/elfutils/PKGBUILD b/extra/elfutils/PKGBUILD index 5df9d2d54..78061031b 100644 --- a/extra/elfutils/PKGBUILD +++ b/extra/elfutils/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 198810 2013-11-05 15:59:03Z lcarlier $ +# $Id: PKGBUILD 205875 2014-02-12 08:00:43Z lcarlier $ # Maintainer: Stéphane Gaudreault <stephane@archlinux.org> # Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu> pkgname=elfutils -pkgver=0.157 +pkgver=0.158 pkgrel=1 pkgdesc="Libraries and utilities to handle ELF object files and DWARF debugging information" arch=('i686' 'x86_64') @@ -13,11 +13,18 @@ depends=('gcc-libs' 'zlib' 'bzip2' 'xz') provides=('libelf') replaces=('libelf') conflicts=('libelf') -source=(https://fedorahosted.org/releases/e/l/elfutils/${pkgver}/elfutils-${pkgver}.tar.bz2{,.sig}) +source=(https://fedorahosted.org/releases/e/l/elfutils/${pkgver}/elfutils-${pkgver}.tar.bz2{,.sig} + fix-run-backtrace-native-core-test.patch) options=('staticlibs') -sha1sums=('5e3767206c7f1b3bcfe33bce99fe09686ef165d2' +sha1sums=('09adbbf0f3a35bb1bcb77c2eaa40de8d3443af4d' 'SKIP') +prepare() { + cd ${pkgname}-${pkgver} + + patch -Np1 -i ../fix-run-backtrace-native-core-test.patch +} + build() { cd ${pkgname}-${pkgver} @@ -40,3 +47,6 @@ package() { rm "${pkgdir}"/usr/lib/lib{asm,dw,elf}.a } +sha1sums=('09adbbf0f3a35bb1bcb77c2eaa40de8d3443af4d' + 'SKIP' + '8ecef640f3d1229cdf45ffda016a69848c18e61b') diff --git a/extra/elfutils/fix-run-backtrace-native-core-test.patch b/extra/elfutils/fix-run-backtrace-native-core-test.patch new file mode 100644 index 000000000..5088ea579 --- /dev/null +++ b/extra/elfutils/fix-run-backtrace-native-core-test.patch @@ -0,0 +1,43 @@ +From e922ec4e3bcd7c164a9ce424accac4394e7d5afd Mon Sep 17 00:00:00 2001 +From: Matthias Klose <doko@ubuntu.com> +Date: Tue, 07 Jan 2014 09:25:29 +0000 +Subject: tests: backtrace-subr.sh (check_native_core) should check core file name. + +Needed when /proc/sys/kernel/core_uses_pid is set to 0. Try to rename +the core file, and if it does still fail, skip the test. + +Signed-off-by: Mark Wielaard <mjw@redhat.com> +--- +diff --git a/tests/ChangeLog b/tests/ChangeLog +index 63b7bed..7e9dcf4 100644 +--- a/tests/ChangeLog ++++ b/tests/ChangeLog +@@ -1,3 +1,9 @@ ++2014-01-07 Matthias Klose <doko@ubuntu.com> ++ ++ * backtrace-subr.sh (check_native_core): Check to see if core file ++ was created without ".PID" extension, if so mv core to core.PID. ++ Skip test if no core file was created or could be found. ++ + 2014-01-04 Mark Wielaard <mjw@redhat.com> + + * backtrace-data.c (main): Don't assert if raise returns. +diff --git a/tests/backtrace-subr.sh b/tests/backtrace-subr.sh +index e7ece91..62b873c 100644 +--- a/tests/backtrace-subr.sh ++++ b/tests/backtrace-subr.sh +@@ -111,6 +111,11 @@ check_native_core() + + # Skip the test if we cannot adjust core ulimit. + core="core.`ulimit -c unlimited || exit 77; set +ex; testrun ${abs_builddir}/$child --gencore; true`" ++ # see if /proc/sys/kernel/core_uses_pid is set to 0 ++ if [ -f core ]; then ++ mv core "$core" ++ fi ++ if [ ! -f "$core" ]; then exit 77; fi + + if [ "x$SAVED_VALGRIND_CMD" != "x" ]; then + VALGRIND_CMD="$SAVED_VALGRIND_CMD" +-- +cgit v0.9.2 + |