pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gdb gdb: fix installation of gcore.1 on platform...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9ee8cf5a20f9
branches:  trunk
changeset: 440359:9ee8cf5a20f9
user:      mcf <mcf%pkgsrc.org@localhost>
date:      Wed Oct 07 04:34:01 2020 +0000

description:
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

diffstat:

 devel/gdb/Makefile                          |   4 ++--
 devel/gdb/PLIST.common                      |   5 +++--
 devel/gdb/distinfo                          |   3 ++-
 devel/gdb/patches/patch-gdb_doc_Makefile.in |  15 +++++++++++++++
 4 files changed, 22 insertions(+), 5 deletions(-)

diffs (70 lines):

diff -r 6c856e429c3f -r 9ee8cf5a20f9 devel/gdb/Makefile
--- a/devel/gdb/Makefile        Wed Oct 07 00:44:37 2020 +0000
+++ b/devel/gdb/Makefile        Wed Oct 07 04:34:01 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.71 2020/08/31 18:07:20 wiz Exp $
+# $NetBSD: Makefile,v 1.72 2020/10/07 04:34:01 mcf Exp $
 
 DISTNAME=      gdb-8.3.1
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GNU:=gdb/}
 
diff -r 6c856e429c3f -r 9ee8cf5a20f9 devel/gdb/PLIST.common
--- a/devel/gdb/PLIST.common    Wed Oct 07 00:44:37 2020 +0000
+++ b/devel/gdb/PLIST.common    Wed Oct 07 04:34:01 2020 +0000
@@ -1,10 +1,12 @@
-@comment $NetBSD: PLIST.common,v 1.15 2020/10/06 21:13:38 mcf Exp $
+@comment $NetBSD: PLIST.common,v 1.16 2020/10/07 04:34:01 mcf Exp $
+${PLIST.gcore}bin/gcore
 bin/gdb
 bin/gdb-add-index
 include/gdb/jit-reader.h
 info/annotate.info
 info/gdb.info
 info/stabs.info
+${PLIST.gcore}man/man1/gcore.1
 man/man1/gdb-add-index.1
 man/man1/gdb.1
 man/man1/gdbserver.1
@@ -49,4 +51,3 @@
 share/gdb/syscalls/sparc64-linux.xml
 share/gdb/system-gdbinit/elinos.py
 share/gdb/system-gdbinit/wrs-linux.py
-${PLIST.gcore}bin/gcore
diff -r 6c856e429c3f -r 9ee8cf5a20f9 devel/gdb/distinfo
--- a/devel/gdb/distinfo        Wed Oct 07 00:44:37 2020 +0000
+++ b/devel/gdb/distinfo        Wed Oct 07 04:34:01 2020 +0000
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.34 2020/04/11 12:47:28 bsiegert Exp $
+$NetBSD: distinfo,v 1.35 2020/10/07 04:34:01 mcf Exp $
 
 SHA1 (gdb-8.3.1.tar.gz) = 8e68fc5d524caeb6684a8b6ed24e75396e40c471
 RMD160 (gdb-8.3.1.tar.gz) = 82c6d7d2c96b4716f9f338b116122b7395b07e90
 SHA512 (gdb-8.3.1.tar.gz) = e81949fa011046b07ee6886a378bcbd420e4571367005035007dc70f0d28d975d08fb7d9062b49f0a3e6d2ca8149ea60f9ab485ea98a04198d1ca49d38dbd2fe
 Size (gdb-8.3.1.tar.gz) = 38130999 bytes
 SHA1 (patch-Makefile.in) = 48f65798f96fdda2a35eb8b18a7cc2993023bcc7
+SHA1 (patch-gdb_doc_Makefile.in) = f7205fe715779e8aed05d230d43320286f74fdd0
 SHA1 (patch-gdb_testsuite_Makefile.in) = 295fa86f16e520a7df907743988cc3dbdb606c2a
 SHA1 (patch-opcodes_i386-dis_c) = 57b2b2ce85567faf112ec9f435b9aed0ffc943fb
 SHA1 (patch-sim_ppc_emul_netbsd.c) = 34fcb884c3c82e8eae6cd6f8c87ce42e9354c347
diff -r 6c856e429c3f -r 9ee8cf5a20f9 devel/gdb/patches/patch-gdb_doc_Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb/patches/patch-gdb_doc_Makefile.in       Wed Oct 07 04:34:01 2020 +0000
@@ -0,0 +1,15 @@
+$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@
+ 
+ ###
+ 



Home | Main Index | Thread Index | Old Index