forked from pool/elfutils
Accepting request 407748 from home:Andreas_Schwab:Factory
- disable-tests-with-ptrace.patch: disable tests that use ptrace when running under qemu-linux-user OBS-URL: https://build.opensuse.org/request/show/407748 OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=81
This commit is contained in:
parent
e9b6c82321
commit
794a2bdf98
31
disable-tests-with-ptrace.patch
Normal file
31
disable-tests-with-ptrace.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
qemu-linux-user does not support ptrace, disable tests that depend on it
|
||||||
|
|
||||||
|
Index: elfutils-0.166/tests/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- elfutils-0.166.orig/tests/Makefile.am
|
||||||
|
+++ elfutils-0.166/tests/Makefile.am
|
||||||
|
@@ -121,7 +121,7 @@ TESTS = run-arextract.sh run-arsymtest.s
|
||||||
|
run-stack-demangled-test.sh run-readelf-zx.sh run-readelf-zp.sh \
|
||||||
|
run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \
|
||||||
|
run-linkmap-cut.sh run-aggregate-size.sh vdsosyms run-readelf-A.sh \
|
||||||
|
- run-getsrc-die.sh run-strptr.sh newdata elfstrtab dwfl-proc-attach \
|
||||||
|
+ run-getsrc-die.sh run-strptr.sh newdata elfstrtab \
|
||||||
|
elfshphehdr run-lfs-symbols.sh run-dwelfgnucompressed.sh \
|
||||||
|
run-elfgetchdr.sh \
|
||||||
|
run-elfgetzdata.sh run-elfputzdata.sh run-zstrptr.sh \
|
||||||
|
Index: elfutils-0.166/tests/backtrace-subr.sh
|
||||||
|
===================================================================
|
||||||
|
--- elfutils-0.166.orig/tests/backtrace-subr.sh
|
||||||
|
+++ elfutils-0.166/tests/backtrace-subr.sh
|
||||||
|
@@ -93,6 +93,11 @@ check_native_unsupported()
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
+
|
||||||
|
+ if egrep 'qemu: Unsupported syscall' $err; then
|
||||||
|
+ echo >&2 $testname: qemu-linux-user does not support ptrace
|
||||||
|
+ exit 77
|
||||||
|
+ fi
|
||||||
|
}
|
||||||
|
|
||||||
|
check_core()
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 11 09:16:14 UTC 2016 - schwab@suse.de
|
||||||
|
|
||||||
|
- disable-tests-with-ptrace.patch: disable tests that use ptrace when
|
||||||
|
running under qemu-linux-user
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 27 12:26:22 UTC 2016 - fcrozat@suse.com
|
Mon Jun 27 12:26:22 UTC 2016 - fcrozat@suse.com
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@ Source2: baselibs.conf
|
|||||||
Source3: %{name}.changes
|
Source3: %{name}.changes
|
||||||
Patch1: elfutils-0.137-dwarf-header-check-fix.diff
|
Patch1: elfutils-0.137-dwarf-header-check-fix.diff
|
||||||
Patch2: elfutils-0.166-elfcmp-comp-gcc6.patch
|
Patch2: elfutils-0.166-elfcmp-comp-gcc6.patch
|
||||||
|
Patch3: disable-tests-with-ptrace.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -141,6 +142,10 @@ to develop applications that require these.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
%if 0%{?qemu_user_space_build}
|
||||||
|
# qemu does not support ptrace
|
||||||
|
%patch3 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Change DATE/TIME macros to use last change time of elfutils.changes
|
# Change DATE/TIME macros to use last change time of elfutils.changes
|
||||||
|
Loading…
Reference in New Issue
Block a user