Accepting request 731960 from devel:gcc
OBS-URL: https://build.opensuse.org/request/show/731960 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdb?expand=0&rev=130
This commit is contained in:
commit
004ad89ea5
14
_constraints
Normal file
14
_constraints
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<constraints>
|
||||||
|
<overwrite>
|
||||||
|
<conditions>
|
||||||
|
<arch>ppc64</arch>
|
||||||
|
<arch>ppc64le</arch>
|
||||||
|
</conditions>
|
||||||
|
<hardware>
|
||||||
|
<disk>
|
||||||
|
<size unit="G">4</size>
|
||||||
|
</disk>
|
||||||
|
</hardware>
|
||||||
|
</overwrite>
|
||||||
|
</constraints>
|
||||||
|
|
@ -110,3 +110,19 @@ Index: gdb-7.12.1/gdb/build-id.c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
diff --git a/gdb/build-id.c b/gdb/build-id.c
|
||||||
|
index b9ff15a..75d501a 100644
|
||||||
|
--- a/gdb/build-id.c
|
||||||
|
+++ b/gdb/build-id.c
|
||||||
|
@@ -864,10 +864,8 @@ missing_rpm_enlist_1 (const char *filename, int verify_vendor)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
Header h;
|
||||||
|
- char *debuginfo, **slot, *s, *s2;
|
||||||
|
+ char *debuginfo, **slot;
|
||||||
|
errmsg_t err;
|
||||||
|
- size_t srcrpmlen = sizeof (".src.rpm") - 1;
|
||||||
|
- size_t debuginfolen = sizeof ("-debuginfo") - 1;
|
||||||
|
rpmdbMatchIterator mi_debuginfo;
|
||||||
|
|
||||||
|
h = rpmdbNextIterator_p (mi);
|
||||||
|
22
gdb.changes
22
gdb.changes
@ -1,3 +1,25 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 14 05:45:30 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
- Add _constraints for PowerPC need more than 3.5GB disk space
|
||||||
|
to avoid build failure
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 10 15:45:17 UTC 2019 - matz@suse.com
|
||||||
|
|
||||||
|
- Disable use of valgrind on old s390 (31bit) distros.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 23 16:00:18 UTC 2019 - Tom de Vries <tdevries@suse.com>
|
||||||
|
|
||||||
|
- Enable librpm for version > librpm.so.3 [bsc#1145692]:
|
||||||
|
* Allow any librpm.so.x
|
||||||
|
* Fix unused variables in HAVE_LIBRPM code in
|
||||||
|
gdb-6.6-buildid-locate-rpm-suse.patch
|
||||||
|
* Add %build test to check for "zypper install <rpm-packagename>"
|
||||||
|
message
|
||||||
|
- Implements jsc#ECO-368, the 2019 toolchain module update
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Aug 6 21:36:49 UTC 2019 - Tom de Vries <tdevries@suse.de>
|
Tue Aug 6 21:36:49 UTC 2019 - Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
|
92
gdb.spec
92
gdb.spec
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%if 0%{?qemu_user_space_build}
|
%if 0%{?qemu_user_space_build}
|
||||||
|
# In a qemu_user_space_build ptrace is not supported, so we can't test gdb.
|
||||||
%global _without_testsuite 1
|
%global _without_testsuite 1
|
||||||
%endif
|
%endif
|
||||||
%bcond_without testsuite
|
%bcond_without testsuite
|
||||||
@ -275,6 +276,7 @@ BuildRequires: makeinfo
|
|||||||
%else
|
%else
|
||||||
BuildRequires: texinfo
|
BuildRequires: texinfo
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: expect
|
||||||
BuildRequires: mpfr-devel
|
BuildRequires: mpfr-devel
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
@ -375,8 +377,11 @@ BuildRequires: fpc
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} >= 1200
|
%if 0%{?suse_version} >= 1200
|
||||||
|
%ifnarch s390
|
||||||
|
# s390 (for SLE12) doesn't have valgrind
|
||||||
BuildRequires: valgrind
|
BuildRequires: valgrind
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%endif # %%{with testsuite}
|
%endif # %%{with testsuite}
|
||||||
|
|
||||||
@ -664,16 +669,17 @@ LDFLAGS="$LDFLAGS -L$PWD/processor-trace-%{libipt_version}-root%{_libdir}"
|
|||||||
|
|
||||||
export CXXFLAGS="$CFLAGS"
|
export CXXFLAGS="$CFLAGS"
|
||||||
|
|
||||||
export LIBRPM=no
|
export LIBRPM=$(ls -1 /usr/%{_lib}/ \
|
||||||
if test -f /usr/%{_lib}/librpm.so.1; then
|
| grep '^librpm.so.[0-9][0-9]*$' \
|
||||||
export LIBRPM=librpm.so.1
|
| sort -V -r \
|
||||||
fi
|
| head -n 1)
|
||||||
if test -f /usr/%{_lib}/librpm.so.2; then
|
if [ "$LIBRPM" != "" ]; then
|
||||||
export LIBRPM=librpm.so.2
|
export LIBRPM="/usr/%{_lib}/$LIBRPM"
|
||||||
fi
|
[ -f "$LIBRPM" ]
|
||||||
if test -f /usr/%{_lib}/librpm.so.3; then
|
else
|
||||||
export LIBRPM=librpm.so.3
|
export LIBRPM=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%ifarch %ix86 ia64 ppc ppc64 ppc64le s390 s390x x86_64 aarch64 riscv64
|
%ifarch %ix86 ia64 ppc ppc64 ppc64le s390 s390x x86_64 aarch64 riscv64
|
||||||
%define build_multitarget 1
|
%define build_multitarget 1
|
||||||
%else
|
%else
|
||||||
@ -814,6 +820,74 @@ then
|
|||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# This is a build-time test, but still a test. So, skip if we don't do tests.
|
||||||
|
# This is relevant for %qemu_user_space_build == 1 builds, which atm is
|
||||||
|
# the case for riscv64.
|
||||||
|
%if %{with testsuite}
|
||||||
|
if [ "$LIBRPM" != "no" ]; then
|
||||||
|
cd gdb
|
||||||
|
cat \
|
||||||
|
> hello.c \
|
||||||
|
<<EOF
|
||||||
|
#include <stdio.h>
|
||||||
|
int
|
||||||
|
main (void)
|
||||||
|
{
|
||||||
|
printf ("hello\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
$CC hello.c
|
||||||
|
libc=$(ldd a.out \
|
||||||
|
| grep libc.so \
|
||||||
|
| awk '{print $3}')
|
||||||
|
if readelf -SW $libc \
|
||||||
|
| grep -q "\.gnu_debuglink"; then
|
||||||
|
cat \
|
||||||
|
> test.exp \
|
||||||
|
<<EOF
|
||||||
|
expect {
|
||||||
|
"(gdb) " {
|
||||||
|
puts "\nPASS: first prompt"
|
||||||
|
send "start\n"
|
||||||
|
}
|
||||||
|
default {
|
||||||
|
puts "\nFAIL: first prompt (eof or timeout)"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
expect {
|
||||||
|
-re {Missing separate debuginfos, use: zypper install glibc-debuginfo-.*\(gdb\) } {
|
||||||
|
puts "\nPASS: zypper install message"
|
||||||
|
send "quit\n"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
"(gdb) " {
|
||||||
|
puts "\nFAIL: zypper install message"
|
||||||
|
send "quit\n"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
default {
|
||||||
|
puts "\nFAIL: zypper install message (eof or timeout)"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
gdb="./gdb -q -nw -nx -data-directory $(pwd -P)/data-directory"
|
||||||
|
# Due to bsc#1146899 "gdb's zypper install message disappears with
|
||||||
|
# -batch", we need to use an expect test.
|
||||||
|
expect -c "spawn $gdb ./a.out" -f test.exp
|
||||||
|
rm ./test.exp
|
||||||
|
else
|
||||||
|
# If packages are not build with debuginfo, we cannot expect a zypper
|
||||||
|
# install message.
|
||||||
|
echo "UNSUPPORTED: zypper install message"
|
||||||
|
fi
|
||||||
|
rm ./hello.c ./a.out
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
done # fprofile
|
done # fprofile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user