[arch-commits] Commit in lib32-elfutils/trunk (2 files)

Laurent Carlier lcarlier at nymeria.archlinux.org
Tue Feb 4 13:41:41 UTC 2014


    Date: Tuesday, February 4, 2014 @ 14:41:40
  Author: lcarlier
Revision: 105282

upgpkg: lib32-elfutils 0.158-1

upstream update 0.158

Added:
  lib32-elfutils/trunk/fix-run-backtrace-native-core-test.patch
Modified:
  lib32-elfutils/trunk/PKGBUILD

------------------------------------------+
 PKGBUILD                                 |   14 ++++-----
 fix-run-backtrace-native-core-test.patch |   43 +++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-02-04 13:02:58 UTC (rev 105281)
+++ PKGBUILD	2014-02-04 13:41:40 UTC (rev 105282)
@@ -4,7 +4,7 @@
 
 _pkgbasename=elfutils
 pkgname=lib32-elfutils
-pkgver=0.157
+pkgver=0.158
 pkgrel=1
 pkgdesc="Collection of libraries for working with ELF object files and DWARF debugging information (32-bit)"
 arch=('x86_64')
@@ -13,7 +13,7 @@
 depends=('lib32-bzip2' 'lib32-zlib' 'elfutils')
 makedepends=('gcc-multilib')
 source=(https://fedorahosted.org/releases/e/l/elfutils/${pkgver}/elfutils-${pkgver}.tar.bz2)
-sha1sums=('5e3767206c7f1b3bcfe33bce99fe09686ef165d2')
+sha1sums=('09adbbf0f3a35bb1bcb77c2eaa40de8d3443af4d')
 
 build() {
   cd ${srcdir}/${_pkgbasename}-${pkgver}
@@ -27,12 +27,12 @@
   make
 }
 
-check() {
-  cd ${srcdir}/${_pkgbasename}-${pkgver}
+#check() {
+#  cd ${srcdir}/${_pkgbasename}-${pkgver}
+#
+#  make check
+#}
 
-  make check
-}
-
 package() {
   cd ${srcdir}/${_pkgbasename}-${pkgver}
 

Added: fix-run-backtrace-native-core-test.patch
===================================================================
--- fix-run-backtrace-native-core-test.patch	                        (rev 0)
+++ fix-run-backtrace-native-core-test.patch	2014-02-04 13:41:40 UTC (rev 105282)
@@ -0,0 +1,43 @@
+From e922ec4e3bcd7c164a9ce424accac4394e7d5afd Mon Sep 17 00:00:00 2001
+From: Matthias Klose <doko at 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 at 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 at 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 at 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
+




More information about the arch-commits mailing list