Subject: pkg/18714: fix to devel/autoconf so "make clean" doesn't have to run as root
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 10/19/2002 15:22:59
>Number:         18714
>Category:       pkg
>Synopsis:       fix to devel/autoconf so "make clean" doesn't have to run as root
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 19 12:24:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Greg A. Woods
>Release:        pkgsrc-current 2002/10/18
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD

>Description:

	the way '--without-lispdir' is implemented causes a root-owned
	directory to be left in the package WRKSRC directory which makes
	the "make clean" as a non-root user fail.

>How-To-Repeat:

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

>Fix:

Index: devel/autoconf/Makefile
===================================================================
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/devel/autoconf/Makefile,v
retrieving revision 1.34
diff -c -r1.34 Makefile
*** devel/autoconf/Makefile	3 Oct 2002 19:30:58 -0000	1.34
--- devel/autoconf/Makefile	4 Oct 2002 14:25:55 -0000
***************
*** 26,31 ****
--- 26,36 ----
  PERL5_REQD=		5.6
  TEXINFO_REQD=		4.0
  
+ # undo a rather stupid hack in the install step when --without-lispdir is used
+ #
+ post-install:
+ 	${RM} -rf ${WRKSRC}/lib/emacs/no
+ 
  .include "../../lang/perl5/buildlink2.mk"
  .include "../../mk/texinfo.mk"
  .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: