NetBSD Problem Report #43945

From www@NetBSD.org  Tue Oct  5 13:00:18 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id CF86D63B8CF
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  5 Oct 2010 13:00:17 +0000 (UTC)
Message-Id: <20101005130017.9BCC363B8CD@www.NetBSD.org>
Date: Tue,  5 Oct 2010 13:00:17 +0000 (UTC)
From: sd4dfg2@hotmail.com
Reply-To: sd4dfg2@hotmail.com
To: gnats-bugs@NetBSD.org
Subject: pkg_add emacs leaves behind a trash file that stops pkg_delete
X-Send-Pr-Version: www-1.0

>Number:         43945
>Category:       pkg
>Synopsis:       pkg_add emacs leaves behind a trash file that stops pkg_delete
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    minskim
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 05 13:05:00 +0000 2010
>Closed-Date:    Fri May 12 08:46:49 +0000 2023
>Last-Modified:  Fri May 12 08:46:49 +0000 2023
>Originator:     Rob Quinn
>Release:        Solaris 10 pkgsrc-current
>Organization:
>Environment:
>Description:
I can build/install the emacs22 package on my Solaris machine without problems.  But if I remove and then pkg_add the resulting package a temp file is left behind in /var/db/pkg/emacs-22.3nb10/ that stops pkg_delete.


>How-To-Repeat:
dodecahedron:/usr/pkgsrc/packages/All #pkg_add emacs
emacs-22.3nb10: /var/games/emacs/snake-scores already exists
emacs-22.3nb10: /var/games/emacs/tetris-scores already exists
emacs-22.3nb10: setting permissions on /usr/pkg/libexec/emacs/22.3/sparc-sun-solaris2/update-game-score (o=games, g=games, m=2555)
===========================================================================
The following files are used by emacs-22.3nb10 and have
the wrong ownership and/or permissions:

        /var/games/emacs/tetris-scores (m=664, o=games, g=games)
        /var/games/emacs/snake-scores (m=664, o=games, g=games)

===========================================================================

dodecahedron:/usr/pkgsrc/packages/All #ls -la /var/db/pkg/emacs-22.3nb10/.*
/var/db/pkg/emacs-22.3nb10/.:
total 702
-r--r--r--   1 root     root        4682 Oct  5 08:53 +BUILD_INFO
-r--r--r--   1 root     root        2877 Oct  5 08:53 +BUILD_VERSION
-r--r--r--   1 root     root          28 Oct  5 08:53 +COMMENT
-rw-r--r--   1 root     root      234320 Oct  5 08:53 +CONTENTS
-r-xr-xr-x   1 root     root        4152 Oct  5 08:53 +DEINSTALL*
-r--r--r--   1 root     root         698 Oct  5 08:53 +DESC
-rwxr-xr-x   1 root     root        9172 Oct  5 08:53 +DIRS*
-rwxr-xr-x   1 root     root       11191 Oct  5 08:53 +FILES*
-rwxr-xr-x   1 root     root        3602 Oct  5 08:53 +INFO_FILES*
-r-xr-xr-x   1 root     root       46356 Oct  5 08:53 +INSTALL*
-rwxr-xr-x   1 root     root        1714 Oct  5 08:53 +PERMS*
-r--r--r--   1 root     root          10 Oct  5 08:53 +SIZE_ALL
-r--r--r--   1 root     root          10 Oct  5 08:53 +SIZE_PKG
-rwxr-xr-x   1 root     root       14066 Oct  5 08:53 +USERGROUP*
drwxr-xr-x   3 root     root         512 Oct  5 08:53 ./
drwxr-xr-x  78 root     root        6144 Oct  5 08:53 ../
drwx------   2 root     root         512 Oct  5 08:53 .pkginstall.11832/

dodecahedron:/var/db/pkg/emacs-22.3nb10/.pkginstall.11832 #la
total 6
   2 drwx------   2 root     root         512 Oct  5 08:53 ./
   2 drwxr-xr-x   3 root     root         512 Oct  5 08:53 ../
   2 -rw-rw-r--   1 root     root           1 Oct  5 08:53 file_perms
dodecahedron:/var/db/pkg/emacs-22.3nb10/.pkginstall.11832 #cat file_perms 


 It's a single blank line.


dodecahedron:/ #pkg_delete emacs
===========================================================================
The following users are no longer being used by emacs-22.3nb10,
and they can be removed if no other software is using them:

        games

===========================================================================
===========================================================================
The following files are no longer being used by emacs-22.3nb10,
and they can be removed if no other packages are using them:

        /var/games/emacs/tetris-scores
        /var/games/emacs/snake-scores

===========================================================================
pkg_delete: Couldn't remove package directory in `/var/db/pkg/emacs-22.3nb10'

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->minskim
Responsible-Changed-By: gls@NetBSD.org
Responsible-Changed-When: Tue, 05 Oct 2010 19:15:10 +0000
Responsible-Changed-Why:
Over to maintainer.


From: Rob Q <sd4dfg2@hotmail.com>
To: <gnats-bugs@netbsd.org>
Cc: 
Subject: RE: pkg/43945 (pkg_add emacs leaves behind a trash file that stops
 pkg_delete)
Date: Tue, 5 Oct 2010 17:05:03 -0400

 I should have mentioned that none of my other 100+ packages do this=2C just=
  emacs.

 sar-reston:/usr/pkgsrc/editors/emacs22 #bmake show-options
 Any of the following general options may be selected:
 =A0=A0=A0=A0=A0=A0=A0 x11=A0=A0=A0=A0=A0 Enable X11 support.
 At most one of the following toolkit options may be selected:
 =A0=A0=A0=A0=A0=A0=A0 gtk=A0=A0=A0=A0=A0 Enable support for GTK.
 =A0=A0=A0=A0=A0=A0=A0 motif=A0=A0=A0 Enable motif support.
 =A0=A0=A0=A0=A0=A0=A0 xaw=A0=A0=A0=A0=A0 Enable Xaw support.

 These options are enabled by default:
 =A0=A0=A0=A0=A0=A0=A0 x11

 These options are currently enabled:
 =A0=A0=A0=A0=A0=A0=A0 x11 xaw

 You can select which build options to use by setting PKG_DEFAULT_OPTIONS
 or PKG_OPTIONS.emacs.

 sar-reston:/usr/pkgsrc/editors/emacs22 #grep -i emacs /usr/pkg/etc/mk.conf
 EMACS_USE_POP=3Dno
 EMACS_TYPE=3Demacs22

  		 	   		  =

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 12 May 2023 08:46:49 +0000
State-Changed-Why:
emacs22 got removed a while back when we consolidated emacs versions.

(if this still happens with some other emacs version, which I doubt,
please write in or file a new PR)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.