NetBSD Problem Report #6232
Received: (qmail 29592 invoked from network); 2 Oct 1998 22:30:31 -0000
Message-Id: <m0zPDiM-0009LiC@most.weird.com>
Date: Fri, 2 Oct 1998 18:30:18 -0400 (EDT)
From: woods@mail.weird.com
Reply-To: woods@planix.com
To: gnats-bugs@gnats.netbsd.org
Subject: emacs PLIST will cause pkg_delete to delete files it doesn't own
X-Send-Pr-Version: 3.95
>Number: 6232
>Category: pkg
>Synopsis: emacs PLIST will cause pkg_delete to delete files it doesn't own
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: gnats-admin
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Oct 02 15:35:00 +0000 1998
>Closed-Date: Sat Oct 03 02:47:03 +0000 1998
>Last-Modified: Sat Oct 03 02:48:08 +0000 1998
>Originator: Greg A. Woods
>Release: pkgsrc sup 907328973
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD most 1.3.2 NetBSD 1.3.2 (MOST) #0: Sun Sep 20 01:28:07 EDT 1998 woods@most:/usr/src-1.3.2/sys/arch/sparc/compile/MOST sparc
>Description:
The PLIST for the editors/emacs package includes "dangerous"
@unexecs that will cause files which are not part of the emacs
package to be deleted.
(Otherwise I'm much more satisfied with the new and improved
emacs-20.3 package!)
>How-To-Repeat:
run "pkg_delete emacs-20.3", re-install emacs, and then wonder
why the heck none of the local elisp packages work.
luckily the only file I lost was my rather short and simple
"default.el":
;; The real stuff is in /usr/local (unless installed here from a pkg)...
(setq local-site-lisp-dir "/usr/local/share/emacs/site-lisp")
(setq load-path (cons local-site-lisp-dir load-path))
(load-file (concat local-site-lisp-dir "/default.el"))
otherwise I'd be a much less happy little camper....
(Yeah, I've read all the warnings in the manual pages!)
>Fix:
Apply the following patch:
Index: PLIST
===================================================================
RCS file: /cvs/NetBSD/pkgsrc/editors/emacs/pkg/PLIST,v
retrieving revision 1.1.1.6
diff -c -r1.1.1.6 PLIST
*** PLIST 1998/09/08 01:32:38 1.1.1.6
--- PLIST 1998/10/02 22:25:17
***************
*** 1374,1380 ****
@dirrm share/emacs/20.3/lisp/emulation
@dirrm share/emacs/20.3/lisp/emacs-lisp
@exec mkdir -p %D/share/emacs/20.3/site-lisp
! @unexec rm -rf %D/share/emacs/20.3/site-lisp
@exec mkdir -p %D/share/emacs/20.3/leim
@dirrm share/emacs/20.3/leim
@dirrm share/emacs/20.3/lisp
--- 1374,1380 ----
@dirrm share/emacs/20.3/lisp/emulation
@dirrm share/emacs/20.3/lisp/emacs-lisp
@exec mkdir -p %D/share/emacs/20.3/site-lisp
! @dirrm share/emacs/20.3/site-lisp
@exec mkdir -p %D/share/emacs/20.3/leim
@dirrm share/emacs/20.3/leim
@dirrm share/emacs/20.3/lisp
***************
*** 1382,1388 ****
@dirrm share/emacs/20.3/etc
@dirrm share/emacs/20.3
@exec mkdir -p %D/share/emacs/site-lisp
! @unexec rm -rf %D/share/emacs/site-lisp
@dirrm share/emacs
@dirrm libexec/emacs/20.3/${MACHINE_GNU_ARCH}--netbsd
@dirrm libexec/emacs/20.3
--- 1382,1388 ----
@dirrm share/emacs/20.3/etc
@dirrm share/emacs/20.3
@exec mkdir -p %D/share/emacs/site-lisp
! @dirrm share/emacs/site-lisp
@dirrm share/emacs
@dirrm libexec/emacs/20.3/${MACHINE_GNU_ARCH}--netbsd
@dirrm libexec/emacs/20.3
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tv
State-Changed-When: Fri Oct 2 19:47:03 PDT 1998
State-Changed-Why:
Fixed, but instead used two luines of the form:
@unexec rmdir %D/dir/name 2>/dev/null || true
...so that it won't even spew a vague error on delete. This is how the aclocal
directory, which quite a few pkgs install stuff into, os gracefully created and
deleted automatically.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.