NetBSD Problem Report #50223
From paul@pokey.whooppee.com Wed Sep 9 23:05:34 2015
Return-Path: <paul@pokey.whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id B383EA65C4
for <gnats-bugs@gnats.NetBSD.org>; Wed, 9 Sep 2015 23:05:34 +0000 (UTC)
Message-Id: <20150909120555.B700216E65@pokey.whooppee.com>
Date: Wed, 9 Sep 2015 20:05:55 +0800 (PHT)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: misc/libreoffice leaves files around after pkg_delete
X-Send-Pr-Version: 3.95
>Number: 50223
>Category: pkg
>Synopsis: misc/libreoffice leaves files around after pkg_delete
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: ryoon
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 09 23:10:06 +0000 2015
>Last-Modified: Thu Sep 10 09:50:01 +0000 2015
>Originator: paul@whooppee.com
>Release: NetBSD 7.99.21
>Organization:
+------------------+--------------------------+-------------------------+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
+------------------+--------------------------+-------------------------+
>Environment:
System: NetBSD pokey.whooppee.com 7.99.21 NetBSD 7.99.21 (POKEY 2015-08-23 23:01:08) #0: Mon Aug 24 16:17:24 PHT 2015 paul@pokey.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/POKEY amd64
Architecture: x86_64
Machine: amd64
>Description:
The libreoffice package does not clean up completely during a
pkg_delete. The contents of $PKGDIR/libreoffice-$VERSION are
not deleted, and thus the directory itself is not deleted.
If the directory is empty, then it is deleted properly.
>How-To-Repeat:
* install libreoffice
* use libreoffice to do something, which causes the named
directory to be populated
* pkg_delete libreoffice
>Fix:
Per Email thread on pkgsrc-users, perhaps the contents of this
directory should be created and installed as part of the package
installation itself? At least then the files would be listed in
the PLIST, and would be properly removed during pkg_delete.
At the very least, if the directory cannot be deleted (due to
not being empty), pkg_delete should generate a message similar
to the following
===========================================================================
The following directories are no longer being used by dbus-1.10.0,
and they can be removed if no other packages are using them:
/var/db/dbus
===========================================================================
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 10 Sep 2015 06:25:43 +0000
Responsible-Changed-Why:
Over to maintainer.
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/50223: misc/libreoffice leaves files around after pkg_delete
Date: Thu, 10 Sep 2015 08:25:31 +0200
On Wed, Sep 09, 2015 at 11:10:06PM +0000, Paul Goyette wrote:
> >How-To-Repeat:
> * install libreoffice
> * use libreoffice to do something, which causes the named
> directory to be populated
> * pkg_delete libreoffice
This only happens if the user who runs it has rights to write below
/usr/pkg/libreoffice*.
Another detail from the discussion on the mailing list: The extra
files are *.pyc files.
So one solution would be to create the .pyc files as part of the
build/install process and add them to the PLIST.
Thomas
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: ryoon@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
paul@whooppee.com
Subject: Re: pkg/50223: misc/libreoffice leaves files around after pkg_delete
Date: Thu, 10 Sep 2015 11:47:22 +0200
On Thu, Sep 10, 2015 at 06:30:01AM +0000, Thomas Klausner wrote:
> So one solution would be to create the .pyc files as part of the
> build/install process and add them to the PLIST.
Run ${PY_COMPILE_ALL} and ${PY_COMPILE_O_ALL} explicitly on them.
Joerg
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.