Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 1998 19:00:42 -0800 (PST)
From:      rv@fore.com
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   bin/9005: pkg_delete is insufficient. no post-remove script functionality present
Message-ID:  <199812080300.TAA26785@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         9005
>Category:       bin
>Synopsis:       pkg_delete is insufficient. no post-remove script functionality present
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec  7 19:10:00 PST 1998
>Last-Modified:
>Originator:     Rajesh Vaidheeswarran
>Organization:
>Release:        3.0-CURRENT
>Environment:
FreeBSD freebsd.eng.fore.com 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Thu Nov 12 10:4
6:44 EST 1998     rv@freebsd.eng.fore.com:/usr/src/sys/compile/FB30  i386

>Description:
pkg_add in freebsd provides both preinstall and postinstall 
scripting functionality but the equivalent functionality is absent
in pkg_delete (preremove and postremove).

pkg_delete provides only preremove funcionality which is 
insufficient.

Ideally, all packaging scripts should be separate (i.e., without
the need to pass keywords to scripts like PRE-INSTALL POST-INSTALL
DEINSTALL, and such. Solaris pkg* utilities provide an interface
such as that.)

I would, however be happy with keyword passing if atleast all the
required functionality is provided. What is still required is a
POST-DEINSTALL functionality.

>How-To-Repeat:

>Fix:
I have included a patch for this. If the maintainers are
interested in the idea of creating a pkg_* utility package that
uses multiple install scripts, I'd be more than glad to provide
a patch to the current package that does just that.

The patch has been uploaded to 
ftp.freebsd.org/pub/FreeBSD/incoming/pkg_install.patch

-rw-rw----  1 801  207  9060 Dec  8 02:57 pkg_install.patch

Unfortunately, the permissions seem to be set so that it cannot be
downloaded by anyone other than users of the machine it is on.

So, if you are unable to retrieve it and want to get hold of a copy
of the patch, e-mail me.

Thanks

rv

(PS: I'm using a Windoze NuT machine to send this PR, which is 
why cut and paste of the patch into this windows gets messed up).

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812080300.TAA26785>