NetBSD Problem Report #5366
Received: (qmail 23474 invoked from network); 27 Apr 1998 03:20:20 -0000
Message-Id: <199804270320.FAA02196@saruman.ics.muni.cz>
Date: Mon, 27 Apr 1998 05:20:25 +0200 (MEST)
From: Jaromir Dolecek <dolecek@ics.muni.cz>
Reply-To: dolecek@ics.muni.cz
To: gnats-bugs@gnats.netbsd.org
Subject: py-Numeric PLIST has unnecessary dirrm entry
X-Send-Pr-Version: 3.95
>Number: 5366
>Category: pkg
>Synopsis: py-Numeric PLIST has unnecessary dirrm entry
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Apr 26 20:35:00 +0000 1998
>Closed-Date: Mon Apr 27 07:58:18 +0000 1998
>Last-Modified: Mon Apr 27 07:58:47 +0000 1998
>Originator: Jaromir Dolecek
>Release: 1.3.1
>Organization:
ICS MU, Brno, Czech Republic
>Environment:
System: NetBSD saruman.ics.muni.cz 1.3.1 NetBSD 1.3.1 (SARUMAN) #0: Sun Apr 19 16:15:24 MEST 1998 dolecek@saruman.ics.muni.cz:/usr/home/dolecek/N131/usr/src/sys/arch/i386/compile/SARUMAN i386
>Description:
The PLIST contains directive
@dirrm lib/python1.5/site-packages
This directory is used to install all site-specific python modules.
If you try to pkg_delete py-Numeric package and there are some
other modules installed besides py-Numeric, the directory wouldn't
be empty and pkg_delete issues a warning it can't delete it.
>How-To-Repeat:
cd /usr/pkgsrc/math/py-Numeric
make install
pkg_delete py-Numeric-1.1
watch the warning
>Fix:
--- pkg/PLIST.orig Mon Apr 27 05:03:40 1998
+++ pkg/PLIST Mon Apr 27 05:03:47 1998
@@ -33,7 +33,7 @@
lib/python1.5/site-packages/UserArray.py
lib/python1.5/site-packages/UserArray.pyc
lib/python1.5/site-packages/UserArray.pyo
-@dirrm lib/python1.5/site-packages
+@comment dirrm lib/python1.5/site-packages
share/doc/py-Numeric/doc.html
share/doc/py-Numeric/home.html
@dirrm share/doc/py-Numeric
>Release-Note:
>Audit-Trail:
From: Ty Sarna <tsarna@endicor.com>
To: dolecek@ics.muni.cz
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: pkg/5366: py-Numeric PLIST has unnecessary dirrm entry
Date: Sun, 26 Apr 1998 23:41:17 -0500 (CDT)
This extraneous dirrm is indeed errouneous, and was not in the package
as I submitted it. I don't know where it came from.
State-Changed-From-To: open->closed
State-Changed-By: tron
State-Changed-When: Mon Apr 27 00:58:18 PDT 1998
State-Changed-Why:
Patch applied, thanks.
From: Hubert Feyrer <hubert.feyrer@rrzc1.rz.uni-regensburg.de>
To: Jaromir Dolecek <dolecek@ics.muni.cz>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/5366: py-Numeric PLIST has unnecessary dirrm entry
Date: Mon, 27 Apr 1998 11:22:55 +0200 (MET DST)
On Mon, 27 Apr 1998, Jaromir Dolecek wrote:
> If you try to pkg_delete py-Numeric package and there are some
> other modules installed besides py-Numeric, the directory wouldn't
> be empty and pkg_delete issues a warning it can't delete it.
IMHO that's perfectly well behaviour - do the job if the user hasn't done
anything there, and warn him that he's got to clean up for himself if he
did so. By removing that dirrm, things keep flying around, that would
have to be removed manually.
- Hubert
--
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
From: Jaromir Dolecek <dolecek@ics.muni.cz>
To: hubert.feyrer@rrzc1.rz.uni-regensburg.de (Hubert Feyrer)
Cc: dolecek@ics.muni.cz, gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/5366: py-Numeric PLIST has unnecessary dirrm entry
Date: Mon, 27 Apr 1998 12:12:28 +0200 (MEST)
Hubert Feyrer wrote:
> On Mon, 27 Apr 1998, Jaromir Dolecek wrote:
> > If you try to pkg_delete py-Numeric package and there are some
> > other modules installed besides py-Numeric, the directory wouldn't
> > be empty and pkg_delete issues a warning it can't delete it.
>
> IMHO that's perfectly well behaviour - do the job if the user hasn't done
> anything there, and warn him that he's got to clean up for himself if he
> did so. By removing that dirrm, things keep flying around, that would
> have to be removed manually.
Problem is that _multiple_ modules can be installed in that directory.
It's ... annoying to see the warning when removing each module. That
@dirrm should be in python package maybe (the directory has to be
created on install of course then), but definitely not
in each module package's PLIST.
Matthias Scheler pointed out the @unexec rm -rf %D/lib/python1.5
hack in python's PLIST-md.* is clumsy. The more I think about it
the less I like it. It's good as it "magically" cleens up
all, but it can clean even things someone forgot to move.
We should maybe play safe and remove it. A few @dirrm directives
have to be added to python/pkg/PLIST-mi, but it shouldn't be too hard
(they are in my new python151 package, though @comment'ed).
Jaromir
P.S: Just as a side note -- what I mean by module and package:
module == Python module (NumPy, readline, Tkinter, ...)
package == NetBSD package (py-Numeric, py-readline, py-Tkinter, ...)
--
Jaromir Dolecek <dolecek@ics.muni.cz> http://www.ics.muni.cz/~dolecek/
-------------------------------------------------------------------------
It is better never to have been born. But who among us has such luck?
One in a million, perhaps.
>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.