Subject: pkg/18715: fix to make devel/gdb build and install cleanly as non-root
To: None <>
From: Greg A. Woods <>
List: netbsd-bugs
Date: 10/19/2002 15:26:11
>Number:         18715
>Category:       pkg
>Synopsis:       fix to make devel/gdb build and install cleanly as non-root
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 19 12:27:00 PDT 2002
>Originator:     Greg A. Woods
>Release:        pkgsrc-current 2002/10/18
Planix, Inc.; Toronto, Ontario; Canada
System: NetBSD proven 1.5W NetBSD 1.5W (PROVEN) #1: Sat Aug 25 21:25:26 EDT 2001 woods@proven:/work/woods/NetBSD-src/sys/arch/i386/compile/PROVEN i386
Architecture: i386
Machine: i386

	the default "build" of gdb doesn't update the files and
	so they get created as root during "make install"

	adding a post-build target to build them during "make build" is
	the best fix

	also note that this package installs a file that more properly
	comes from devel/autoconf (no fix provided to avoid this yet)


	run "make install && make clean" as a non-root user


Index: devel/gdb/Makefile
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/devel/gdb/Makefile,v
retrieving revision 1.5
diff -c -r1.5 Makefile
*** devel/gdb/Makefile	7 Aug 2002 14:18:26 -0000	1.5
--- devel/gdb/Makefile	13 Sep 2002 20:36:48 -0000
*** 11,21 ****
--- 11,26 ----
+ # WARNING: conflicts with the more authoritative one in
+ # autoconf-2.53
  INSTALL_TARGET=	install install-info
  	cd ${WRKSRC}; ./configure --prefix=${PREFIX}
+ post-build:
+ 	cd ${WRKSRC}/bfd/doc; ${MAKE}
  .include "../../mk/"
  .include "../../mk/"