Wed Oct 7 04:34:01 2020 UTC ()
gdb: fix installation of gcore.1 on platforms that support gcore

Previously, gcore.1 was only installed on Linux due to an omission
in gdb/doc/Makefile.in. This caused file-check errors on Linux since
gcore.1 was not mentioned in PLIST.common.

To fix this, apply upstream commit [0] so that gcore.1 is installed
whenever gcore is.

[0] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=4b136f6f9aba2122868704bc18fd21e1d232392c


(mcf)
diff -r1.71 -r1.72 pkgsrc/devel/gdb/Makefile
diff -r1.15 -r1.16 pkgsrc/devel/gdb/PLIST.common
diff -r1.34 -r1.35 pkgsrc/devel/gdb/distinfo
diff -r0 -r1.3 pkgsrc/devel/gdb/patches/patch-gdb_doc_Makefile.in

cvs diff -r1.71 -r1.72 pkgsrc/devel/gdb/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/gdb/Makefile 2020/08/31 18:07:20 1.71
+++ pkgsrc/devel/gdb/Makefile 2020/10/07 04:34:01 1.72
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1# $NetBSD: Makefile,v 1.71 2020/08/31 18:07:20 wiz Exp $ 1# $NetBSD: Makefile,v 1.72 2020/10/07 04:34:01 mcf Exp $
2 2
3DISTNAME= gdb-8.3.1 3DISTNAME= gdb-8.3.1
4PKGREVISION= 1 4PKGREVISION= 2
5CATEGORIES= devel 5CATEGORIES= devel
6MASTER_SITES= ${MASTER_SITE_GNU:=gdb/} 6MASTER_SITES= ${MASTER_SITE_GNU:=gdb/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://www.gnu.org/software/gdb/gdb.html 9HOMEPAGE= https://www.gnu.org/software/gdb/gdb.html
10COMMENT= Symbolic debugger for multiple language frontends 10COMMENT= Symbolic debugger for multiple language frontends
11LICENSE= gnu-gpl-v3 11LICENSE= gnu-gpl-v3
12 12
13USE_LANGUAGES= c c++11 13USE_LANGUAGES= c c++11
14 14
15BROKEN_GETTEXT_DETECTION= yes 15BROKEN_GETTEXT_DETECTION= yes
16GNU_CONFIGURE= yes 16GNU_CONFIGURE= yes
17GNU_CONFIGURE_STRICT= no # has sub-configures 17GNU_CONFIGURE_STRICT= no # has sub-configures

cvs diff -r1.15 -r1.16 pkgsrc/devel/gdb/PLIST.common (expand / switch to unified diff)

--- pkgsrc/devel/gdb/PLIST.common 2020/10/06 21:13:38 1.15
+++ pkgsrc/devel/gdb/PLIST.common 2020/10/07 04:34:01 1.16
@@ -1,20 +1,22 @@ @@ -1,20 +1,22 @@
1@comment $NetBSD: PLIST.common,v 1.15 2020/10/06 21:13:38 mcf Exp $ 1@comment $NetBSD: PLIST.common,v 1.16 2020/10/07 04:34:01 mcf Exp $
 2${PLIST.gcore}bin/gcore
2bin/gdb 3bin/gdb
3bin/gdb-add-index 4bin/gdb-add-index
4include/gdb/jit-reader.h 5include/gdb/jit-reader.h
5info/annotate.info 6info/annotate.info
6info/gdb.info 7info/gdb.info
7info/stabs.info 8info/stabs.info
 9${PLIST.gcore}man/man1/gcore.1
8man/man1/gdb-add-index.1 10man/man1/gdb-add-index.1
9man/man1/gdb.1 11man/man1/gdb.1
10man/man1/gdbserver.1 12man/man1/gdbserver.1
11man/man5/gdbinit.5 13man/man5/gdbinit.5
12${PLIST.python}share/gdb/python/gdb/FrameDecorator.py 14${PLIST.python}share/gdb/python/gdb/FrameDecorator.py
13${PLIST.python}share/gdb/python/gdb/FrameIterator.py 15${PLIST.python}share/gdb/python/gdb/FrameIterator.py
14${PLIST.python}share/gdb/python/gdb/__init__.py 16${PLIST.python}share/gdb/python/gdb/__init__.py
15${PLIST.python}share/gdb/python/gdb/command/__init__.py 17${PLIST.python}share/gdb/python/gdb/command/__init__.py
16${PLIST.python}share/gdb/python/gdb/command/explore.py 18${PLIST.python}share/gdb/python/gdb/command/explore.py
17${PLIST.python}share/gdb/python/gdb/command/frame_filters.py 19${PLIST.python}share/gdb/python/gdb/command/frame_filters.py
18${PLIST.python}share/gdb/python/gdb/command/pretty_printers.py 20${PLIST.python}share/gdb/python/gdb/command/pretty_printers.py
19${PLIST.python}share/gdb/python/gdb/command/prompt.py 21${PLIST.python}share/gdb/python/gdb/command/prompt.py
20${PLIST.python}share/gdb/python/gdb/command/type_printers.py 22${PLIST.python}share/gdb/python/gdb/command/type_printers.py
@@ -39,14 +41,13 @@ share/gdb/syscalls/freebsd.xml @@ -39,14 +41,13 @@ share/gdb/syscalls/freebsd.xml
39share/gdb/syscalls/gdb-syscalls.dtd 41share/gdb/syscalls/gdb-syscalls.dtd
40share/gdb/syscalls/i386-linux.xml 42share/gdb/syscalls/i386-linux.xml
41share/gdb/syscalls/mips-n32-linux.xml 43share/gdb/syscalls/mips-n32-linux.xml
42share/gdb/syscalls/mips-n64-linux.xml 44share/gdb/syscalls/mips-n64-linux.xml
43share/gdb/syscalls/mips-o32-linux.xml 45share/gdb/syscalls/mips-o32-linux.xml
44share/gdb/syscalls/ppc-linux.xml 46share/gdb/syscalls/ppc-linux.xml
45share/gdb/syscalls/ppc64-linux.xml 47share/gdb/syscalls/ppc64-linux.xml
46share/gdb/syscalls/s390-linux.xml 48share/gdb/syscalls/s390-linux.xml
47share/gdb/syscalls/s390x-linux.xml 49share/gdb/syscalls/s390x-linux.xml
48share/gdb/syscalls/sparc-linux.xml 50share/gdb/syscalls/sparc-linux.xml
49share/gdb/syscalls/sparc64-linux.xml 51share/gdb/syscalls/sparc64-linux.xml
50share/gdb/system-gdbinit/elinos.py 52share/gdb/system-gdbinit/elinos.py
51share/gdb/system-gdbinit/wrs-linux.py 53share/gdb/system-gdbinit/wrs-linux.py
52${PLIST.gcore}bin/gcore 

cvs diff -r1.34 -r1.35 pkgsrc/devel/gdb/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/gdb/distinfo 2020/04/11 12:47:28 1.34
+++ pkgsrc/devel/gdb/distinfo 2020/10/07 04:34:01 1.35
@@ -1,10 +1,11 @@ @@ -1,10 +1,11 @@
1$NetBSD: distinfo,v 1.34 2020/04/11 12:47:28 bsiegert Exp $ 1$NetBSD: distinfo,v 1.35 2020/10/07 04:34:01 mcf Exp $
2 2
3SHA1 (gdb-8.3.1.tar.gz) = 8e68fc5d524caeb6684a8b6ed24e75396e40c471 3SHA1 (gdb-8.3.1.tar.gz) = 8e68fc5d524caeb6684a8b6ed24e75396e40c471
4RMD160 (gdb-8.3.1.tar.gz) = 82c6d7d2c96b4716f9f338b116122b7395b07e90 4RMD160 (gdb-8.3.1.tar.gz) = 82c6d7d2c96b4716f9f338b116122b7395b07e90
5SHA512 (gdb-8.3.1.tar.gz) = e81949fa011046b07ee6886a378bcbd420e4571367005035007dc70f0d28d975d08fb7d9062b49f0a3e6d2ca8149ea60f9ab485ea98a04198d1ca49d38dbd2fe 5SHA512 (gdb-8.3.1.tar.gz) = e81949fa011046b07ee6886a378bcbd420e4571367005035007dc70f0d28d975d08fb7d9062b49f0a3e6d2ca8149ea60f9ab485ea98a04198d1ca49d38dbd2fe
6Size (gdb-8.3.1.tar.gz) = 38130999 bytes 6Size (gdb-8.3.1.tar.gz) = 38130999 bytes
7SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7 7SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7
 8SHA1 (patch-gdb_doc_Makefile.in) = f7205fe715779e8aed05d230d43320286f74fdd0
8SHA1 (patch-gdb_testsuite_Makefile.in) = 295fa86f16e520a7df907743988cc3dbdb606c2a 9SHA1 (patch-gdb_testsuite_Makefile.in) = 295fa86f16e520a7df907743988cc3dbdb606c2a
9SHA1 (patch-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb 10SHA1 (patch-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb
10SHA1 (patch-sim_ppc_emul_netbsd.c) = 34fcb884c3c82e8eae6cd6f8c87ce42e9354c347 11SHA1 (patch-sim_ppc_emul_netbsd.c) = 34fcb884c3c82e8eae6cd6f8c87ce42e9354c347

File Added: pkgsrc/devel/gdb/patches/patch-gdb_doc_Makefile.in
$NetBSD: patch-gdb_doc_Makefile.in,v 1.3 2020/10/07 04:34:01 mcf Exp $

Add missing HAVE_NATIVE_GCORE_HOST variable so that gcore.1 gets
installed properly on non-Linux platforms.

--- gdb/doc/Makefile.in.orig	Tue Oct  6 09:03:59 2020
+++ gdb/doc/Makefile.in
@@ -179,6 +179,7 @@ MAN5S = gdbinit.5
 MANS = $(MAN1S) $(MAN5S)
 
 HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
+HAVE_NATIVE_GCORE_HOST = @HAVE_NATIVE_GCORE_HOST@
 
 ###