Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-07-28 10:18:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and      /work/SRC/openSUSE:Factory/.gdb.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gdb"

Sun Jul 28 10:18:30 2019 rev:128 rq:717937 version:8.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-06-22 11:23:41.585355430 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.4126/gdb.changes        2019-07-28 
10:18:36.928601501 +0200
@@ -1,0 +2,77 @@
+Mon Jul 22 16:58:16 UTC 2019 - Tom de Vries <[email protected]>
+
+- Add Wno-error=odr to work around swo#24835
+- Add BuildRequires xz-devel
+
+-------------------------------------------------------------------
+Wed Jul  3 11:38:05 UTC 2019 - Tom de Vries <[email protected]>
+
+- Add BuildRequires valgrind for make check
+
+-------------------------------------------------------------------
+Wed Jul  3 11:02:06 UTC 2019 - Tom de Vries <[email protected]>
+
+- Move BuildRequires gcc-go and fpc to %{with testsuite} portion
+
+-------------------------------------------------------------------
+Wed Jul  3 10:53:05 UTC 2019 - Tom de Vries <[email protected]>
+
+- Copy %ada_arch from gcc9 and use it to fix 'unresolvable: nothing
+  provides gcc-ada' for openSUSE_Leap_42.3_Ports/SLE-12 ppc64le.
+
+-------------------------------------------------------------------
+Wed Jul  3 08:37:30 UTC 2019 - Tom de Vries <[email protected]>
+
+- Drop ppc64le for fpc
+
+-------------------------------------------------------------------
+Wed Jul  3 08:27:11 UTC 2019 - Tom de Vries <[email protected]>
+
+- Add missing %endif
+
+-------------------------------------------------------------------
+Wed Jul  3 08:15:33 UTC 2019 - Tom de Vries <[email protected]>
+
+- Add BuildRequire fpc for make check
+
+-------------------------------------------------------------------
+Wed Jul  3 06:47:49 UTC 2019 - Tom de Vries <[email protected]>
+
+- Add comment explaining why guile support has been disabled for
+  newer distro versions.
+
+-------------------------------------------------------------------
+Tue Jul  2 17:46:53 UTC 2019 - Tom de Vries <[email protected]>
+
+- Add BuildRequire gcc-go to get gccgo command for make check
+
+-------------------------------------------------------------------
+Tue Jul  2 13:48:51 UTC 2019 - Tom de Vries <[email protected]>
+
+- Copy gdbinit from fedora master @ 25caf28.  Add
+  gdbinit.without-python, and use it for --without=python.
+
+-------------------------------------------------------------------
+Mon Jul  1 06:28:27 UTC 2019 - Tom de Vries <[email protected]>
+
+- Remove unused code: gdbtui support
+
+-------------------------------------------------------------------
+Mon Jun 24 07:00:28 UTC 2019 - Tom de Vries <[email protected]>
+
+- Add comments to "patches to upstream" specifying when they can be
+  dropped.
+
+-------------------------------------------------------------------
+Thu Jun 20 15:19:35 UTC 2019 - Tom de Vries <[email protected]>
+
+- Remove -Wno-implicit-fallthrough, -Wno-error=cast-function-type
+  and -Wno-error=stringop-truncation
+
+-------------------------------------------------------------------
+Wed Jun 19 06:54:23 UTC 2019 - Tom de Vries <[email protected]>
+
+- Remove gdb-fix-buf-overflow.diff, which is a workaround for
+  swo#24698, which has been fixed since gdb 7.12.
+
+-------------------------------------------------------------------

Old:
----
  gdb-fix-buf-overflow.diff
  gdbtui

New:
----
  gdbinit.without-python

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gdb.spec ++++++
--- /var/tmp/diff_new_pack.gcJUin/_old  2019-07-28 10:18:42.256601509 +0200
+++ /var/tmp/diff_new_pack.gcJUin/_new  2019-07-28 10:18:42.256601509 +0200
@@ -83,9 +83,7 @@
 # /etc/gdbinit (from Debian but with Fedora compliant location).
 #=fedora
 Source4:        gdbinit
-
-# Provide gdbtui for RHEL-5 and RHEL-6 as it is removed upstream (BZ 797664).
-Source6:        gdbtui
+Source5:        gdbinit.without-python
 
 # libipt: Intel Processor Trace Decoder Library
 %global libipt_version 2.0
@@ -221,8 +219,12 @@
 
 # Patches to upstream
 
-Patch1004:      gdb-fix-buf-overflow.diff
+# Fixed upstream Wed, 29 May 2019, 4330d61dfb "Fix crash in
+# cp_print_value_fields".  We should be able to drop this in 8.4.
 Patch1005:      gdb-7.10-swo18929.patch
+
+# Fixed upstream Sat, Jun 22 2019, 47e3f47487 "[gdb] Fix s390x -m31 build".
+# We should be able to drop this in 8.4.
 Patch1007:      gdb-fix-s390-build.diff
 
 # Backports from master
@@ -252,6 +254,8 @@
 BuildRequires:  gettext
 BuildRequires:  glibc-devel
 %if 0%{suse_version} > 1110 && 0%{suse_version} < 1330
+# GDB supports guile 2.0, but not guile 2.2 (swo#21104).  Disable guile
+# support for newer distro versions in anticipation of a move to guile 2.2.
 BuildRequires:  guile-devel
 %endif
 BuildRequires:  ncurses-devel
@@ -266,6 +270,7 @@
 BuildRequires:  readline-devel
 BuildRequires:  rpm-devel
 BuildRequires:  zlib-devel
+BuildRequires:  xz-devel
 %if 0%{!?_without_python:1}
 %if 0%{suse_version} > 1000
 Requires:       %{python}-base
@@ -288,6 +293,20 @@
 
 %if %{with testsuite}
 
+# Copied from gcc9/gcc.spec.in
+# Ada currently fails to build on a few platforms, enable it only
+# on those that work
+%if %{suse_version} >= 1310
+%if %{suse_version} >= 1330
+%define ada_arch %ix86 x86_64 ppc ppc64 ppc64le s390 s390x ia64 aarch64 riscv64
+%else
+%define ada_arch %ix86 x86_64 ppc ppc64 s390 ia64
+%endif
+%else
+%define ada_arch %ix86 x86_64 ppc s390 ia64
+%endif
+
+
 # Ensure the devel libraries are installed for both multilib arches.
 %global bits_local %{?_isa}
 %global bits_other %{?_isa}
@@ -313,15 +332,9 @@
 BuildRequires:  %{gcc}-java
 %endif
 BuildRequires:  %{gcc}-objc
-# Copied from gcc-4.1.2-32.
-%ifarch %{ix86} x86_64 ia64 ppc ppc64 ppc64le riscv64 s390 alpha
-BuildRequires:  %{gcc}-ada
-%endif
-%ifarch aarch64
-%if 0%{suse_version} >= 1330
+%ifarch %ada_arch
 BuildRequires:  %{gcc}-ada
 %endif
-%endif
 %if 0%{!?disable_32bit:1}
 # openSUSE for s390x doesn't build 32bit libs
 %if 0%{suse_version} > 1110
@@ -341,6 +354,21 @@
 %if 0%{suse_version} >= 1210
 BuildRequires:  glibc-devel-static
 %endif
+%if 0%{?suse_version} > 1500
+# The gccgo command is used by make check for some gdb.go test-cases, so we
+# need the gcc-go package.  However, the gccgo command was missing from the
+# gcc-go package (bsc#1096677), so we only require it for known fixed
+# versions.
+BuildRequires:  gcc-go
+%endif
+%if 0%{?suse_version} >= 1500 && 0%{?is_opensuse}
+%ifarch %{ix86} x86_64 aarch64 armv7l
+BuildRequires:  fpc
+%endif
+%endif
+%if 0%{?suse_version} >= 1200
+BuildRequires:  valgrind
+%endif
 
 %endif # %%{with testsuite}
 
@@ -532,7 +560,6 @@
 %patch1000 -p1
 %patch1002 -p1
 
-%patch1004 -p1
 %patch1005 -p1
 %patch1007 -p1
 
@@ -588,20 +615,12 @@
 export CXX
 export CFLAGS="$RPM_OPT_FLAGS"
 
-# FIXME: gcc-7 compatibility.
-# checking for acceptance of -Wno-foo is a bit wieldy: GCC doesn't 
-# warn about unknown -Wno- flags, _except_ if there are other
-# diagnostics as well, so let's force an uninitialized use warning
-# and grep for the diagnostic about the -Wno flag:
-# -Wno-error=cast-function-type:
-# FIXME: gcc-8.0:
-# ./elf32-target.h:215:4: error: cast between incompatible function types from 
'void * (*)(bfd *)' {aka 'void * (*)(struct bfd *)'} to 'asymbol * (*)(bfd *, 
void *, long unsigned int)' {aka 'struct bfd_symbol * (*)(struc t bfd *, void 
*, long unsigned int)'} [-Werror=cast-function-type]
-#    ((asymbol * (*) (bfd *, void *, unsigned long)) bfd_nullvoidptr)
-# -Wno-error=stringop-truncation:
-# FIXME: gcc-8.0:
-# linux-tdep.c:1767:11: error: ‘char* strncpy(char*, const char*, size_t)’ 
specified bound 17 equals destination size [-Werror=stringop-truncation]
-#    strncpy (p->pr_fname, basename, sizeof (p->pr_fname));
-for opt in -Wno-implicit-fallthrough -Wno-error=cast-function-type 
-Wno-error=stringop-truncation; do
+# Add your -Wno-x/-Wno-error=y options here:
+for opt in -Wno-error=odr; do
+  # checking for acceptance of -Wno-foo is a bit wieldy: GCC doesn't 
+  # warn about unknown -Wno- flags, _except_ if there are other
+  # diagnostics as well, so let's force an uninitialized use warning
+  # and grep for the diagnostic about the -Wno flag:
   if ! echo "int foo(void) { int a; return a;} " | \
      $CC  -x c -c - -o /dev/null -W ${opt} 2>&1 | \
      grep -E "Wno|no option" >/dev/null; then
@@ -903,17 +922,16 @@
 
 make %{?_smp_mflags} install DESTDIR=$RPM_BUILD_ROOT
 
-# Provide gdbtui for RHEL-5 and RHEL-6 as it is removed upstream (BZ 797664).
-%if 0%{?rhel:1} && 0%{?rhel} <= 6
-test ! -e $RPM_BUILD_ROOT%{_prefix}/bin/gdbtui
-install -m 755 %{SOURCE6} $RPM_BUILD_ROOT%{_prefix}/bin/gdbtui
-ln -sf gdb.1 $RPM_BUILD_ROOT%{_mandir}/man1/gdbtui.1
-%endif # 0%{?rhel:1} && 0%{?rhel} <= 6
-
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d
 touch -r %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d
+
+%if 0%{!?_without_python:1}
 sed 's#%%{_sysconfdir}#%{_sysconfdir}#g' <%{SOURCE4} 
>$RPM_BUILD_ROOT%{_sysconfdir}/gdbinit
 touch -r %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit
+%else
+sed 's#%%{_sysconfdir}#%{_sysconfdir}#g' <%{SOURCE5} 
>$RPM_BUILD_ROOT%{_sysconfdir}/gdbinit
+touch -r %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit
+%endif
 
 for i in `find $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb -name "*.py"`
 do
@@ -1060,11 +1078,6 @@
 %{_mandir}/*/gdb.1*
 %{_bindir}/gstack
 %{_mandir}/*/gstack.1*
-# Provide gdbtui for RHEL-5 and RHEL-6 as it is removed upstream (BZ 797664).
-%if 0%{?rhel:1} && 0%{?rhel} <= 6
-%{_bindir}/gdbtui
-%{_mandir}/*/gdbtui.1*
-%endif # 0%{?rhel:1} && 0%{?rhel} <= 6
 %{_bindir}/gdb-add-index
 %{_mandir}/*/gdb-add-index.1*
 %{_mandir}/*/gdbinit.5*

++++++ gdbinit ++++++
--- /var/tmp/diff_new_pack.gcJUin/_old  2019-07-28 10:18:42.592601509 +0200
+++ /var/tmp/diff_new_pack.gcJUin/_new  2019-07-28 10:18:42.592601509 +0200
@@ -1,3 +1,8 @@
 # System-wide GDB initialization file.
-
-# FIXME: provide a wildcard for sourcing files in /etc/gdbinit.d/
+python
+import glob
+for f in glob.glob('%{_sysconfdir}/gdbinit.d/*.gdb'):
+  gdb.execute('source %s' % f)
+for f in glob.glob('%{_sysconfdir}/gdbinit.d/*.py'):
+  gdb.execute('source %s' % f)
+end

++++++ gdbinit.without-python ++++++
# System-wide GDB initialization file.

# FIXME: Source /etc/gdbinit.d/*.gdb
# Without python support, there's currently no way to do this.  See also
# swo#13578 - "source command file globbing".

Reply via email to