Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-06-22 11:23:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and      /work/SRC/openSUSE:Factory/.gdb.new.4615 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gdb"

Sat Jun 22 11:23:40 2019 rev:127 rq:710355 version:8.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-06-07 18:01:47.549789573 
+0200
+++ /work/SRC/openSUSE:Factory/.gdb.new.4615/gdb.changes        2019-06-22 
11:23:41.585355430 +0200
@@ -1,0 +2,22 @@
+Fri Jun 14 11:39:56 UTC 2019 - Tom de Vries <[email protected]>
+
+- Fix rpmlint macro-in-comment errors
+
+-------------------------------------------------------------------
+Fri Jun 14 11:27:41 UTC 2019 - Tom de Vries <[email protected]>
+
+- Fix rpmlint error "deprecated-grep ['egrep']" .
+
+-------------------------------------------------------------------
+Fri Jun 14 11:22:54 UTC 2019 - Tom de Vries <[email protected]>
+
+- gdb-gcore-bash.patch: Fix rpmlint error env-script-interpreter by
+  replacing "/usr/bin/env bash" with "/bin/bash" in gcore.
+
+-------------------------------------------------------------------
+Thu Jun 13 17:51:04 UTC 2019 - Tom de Vries <[email protected]>
+
+- Rewrite gdbserver.1 workaround for riscv64 to avoid
+  %define _unpackaged_files_terminate_build 0
+
+-------------------------------------------------------------------

New:
----
  gdb-gcore-bash.patch

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

Other differences:
------------------
++++++ gdb.spec ++++++
--- /var/tmp/diff_new_pack.5b80QE/_old  2019-06-22 11:23:43.569357505 +0200
+++ /var/tmp/diff_new_pack.5b80QE/_new  2019-06-22 11:23:43.569357505 +0200
@@ -51,7 +51,7 @@
 %global have_inproctrace 0
 %ifarch %{ix86} x86_64
 %global have_inproctrace 1
-%endif # %{ix86} x86_64
+%endif # %%{ix86} x86_64
 
 # Choose python version
 %if 0%{?suse_version} >= 1320
@@ -214,8 +214,13 @@
 Patch115:       gdb-rhbz1371380-gcore-elf-headers.patch
 #Fedora Packages end
 
-# Upstream patch to fix gcc -Werror
+# openSUSE specific
+
+Patch1000:      gdb-gcore-bash.patch
 Patch1002:      gdb-6.6-buildid-locate-rpm-suse.patch
+
+# Patches to upstream
+
 Patch1004:      gdb-fix-buf-overflow.diff
 Patch1005:      gdb-7.10-swo18929.patch
 Patch1007:      gdb-fix-s390-build.diff
@@ -337,7 +342,7 @@
 BuildRequires:  glibc-devel-static
 %endif
 
-%endif # %{with testsuite}
+%endif # %%{with testsuite}
 
 %ifarch ia64
 BuildRequires:  libunwind-devel
@@ -349,17 +354,6 @@
 Java, and other languages, by executing them in a controlled fashion
 and printing their data.
 
-%ifarch riscv64
-# Work around RPM build error:
-# ...
-#   Installed (but unpackaged) file(s) found:
-#   /usr/share/man/man1/gdbserver.1.gz
-# ...
-# Filed at PR24575 - "gdbserver.1 should only be installed if gdbserver was
-# build" ( https://sourceware.org/bugzilla/show_bug.cgi?id=24575 ).
-%define _unpackaged_files_terminate_build 0
-%endif
-
 %ifnarch riscv64
 %if %{suse_version} > 1010
 %package -n gdbserver
@@ -415,7 +409,7 @@
 rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc-exp.c gdb/p-exp.c gdb/go-exp.c
 
 # *.info* is needlessly split in the distro tar; also it would not get used as
-# we build in %{gdb_build}, just to be sure.
+# we build in %%{gdb_build}, just to be sure.
 find -name "*.info*"|xargs rm -f
 
 #Fedora patching start
@@ -535,7 +529,9 @@
 %patch115 -p1
 #Fedora patching end
 
+%patch1000 -p1
 %patch1002 -p1
+
 %patch1004 -p1
 %patch1005 -p1
 %patch1007 -p1
@@ -573,7 +569,7 @@
 # Identify the build directory with the version of gdb as well as the
 # architecture, to allow for mutliple versions to be installed and
 # built.
-# Initially we're in the %{gdb_src} directory.
+# Initially we're in the %%{gdb_src} directory.
 
 for fprofile in %{?_with_profile:-fprofile} ""
 do
@@ -608,7 +604,7 @@
 for opt in -Wno-implicit-fallthrough -Wno-error=cast-function-type 
-Wno-error=stringop-truncation; do
   if ! echo "int foo(void) { int a; return a;} " | \
      $CC  -x c -c - -o /dev/null -W ${opt} 2>&1 | \
-     egrep "Wno|no option" >/dev/null; then
+     grep -E "Wno|no option" >/dev/null; then
     CFLAGS="$CFLAGS ${opt}"
   fi
 done
@@ -796,7 +792,7 @@
 cp $RPM_BUILD_DIR/%{gdb_src}/gdb/NEWS $RPM_BUILD_DIR/%{gdb_src}
 
 %check
-# Initially we're in the %{gdb_src} directory.
+# Initially we're in the %%{gdb_src} directory.
 cd %{gdb_build}
 
 %if %{without testsuite}
@@ -890,8 +886,8 @@
   done
 done
 # `tar | bzip2 | uuencode' may have some piping problems in Brew.
-#tar cjf gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}*.{sum,log}
-#uuencode gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}.tar.bz2
+#tar cjf gdb-%%{_target_platform}.tar.bz2 gdb-%%{_target_platform}*.{sum,log}
+#uuencode gdb-%%{_target_platform}.tar.bz2 gdb-%%{_target_platform}.tar.bz2
 # Strip dates and completion times from the log to make build-compare happy
 sed -i -e '/Test Run By abuild on/d' -e 's/completed in [0-9]* seconds//' 
*.{sum,log}
 cd ../..
@@ -899,7 +895,7 @@
 %endif
 
 %install
-# Initially we're in the %{gdb_src} directory.
+# Initially we're in the %%{gdb_src} directory.
 cd %{gdb_build}
 
 # It would break RHEL-5 by leaving excessive files for the doc subpackage.
@@ -1015,6 +1011,17 @@
 
 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
 
+%ifarch riscv64
+# Work around RPM build error:
+# ...
+#   Installed (but unpackaged) file(s) found:
+#   /usr/share/man/man1/gdbserver.1.gz
+# ...
+# Filed at PR24575 - "gdbserver.1 should only be installed if gdbserver was
+# build" ( https://sourceware.org/bugzilla/show_bug.cgi?id=24575 ).
+rm %{buildroot}/usr/share/man/man1/gdbserver.1
+%endif
+
 %post
 # This step is part of the installation of the RPM. Not to be confused
 # with the 'make install ' of the build (rpmbuild) process.
@@ -1093,7 +1100,7 @@
 %{_mandir}/*/gdbserver.1*
 %if %{have_inproctrace}
 %{_libdir}/libinproctrace.so
-%endif # %{have_inproctrace}
+%endif # %%{have_inproctrace}
 %endif
 %endif
 %endif

++++++ gdb-gcore-bash.patch ++++++
diff --git a/gdb/gcore.in b/gdb/gcore.in
index b9770ea415..3149f6e1fe 100644
--- a/gdb/gcore.in
+++ b/gdb/gcore.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/bash
 
 #   Copyright (C) 2003-2019 Free Software Foundation, Inc.
 

Reply via email to