Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 15:45:47 +1300 (NZDT)
From:      Jonathan Chen <jonathan.chen@itouch.co.nz>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/31182: pkg_delete doesn't always remove symbolic links in packages
Message-ID:  <200110100245.f9A2jli11192@jonc.itouch>

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

>Number:         31182
>Category:       ports
>Synopsis:       pkg_delete doesn't always remove symbolic links in packages
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 09 19:50:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Chen
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD jonc.itouch 4.4-STABLE FreeBSD 4.4-STABLE #0: Mon Oct 8 06:47:45 NZDT 2001 root@jonc.itouch:/usr/obj/usr/src/sys/JONC i386

>Description:

pkg_delete doesn't deinstall a package cleanly if the package list has a
symbolic link that points to a file that has been removed by pkg_delete
earlier in the same run.

>How-To-Repeat:

install linux-base
pkg_delete linux-base

>Fix:

Cause:
       pkg_delete refuses to remove them if the file that it points
       to is already gone, as the md5 checksum doesn't match.

Two possible solutions:

    1. change pkg_delete to *always* remove symbolic links, regardless
       of checksum.

or 2.  Update the Porter's Handbook to mention that it's better to
       list symbolic links in the pkg-plist prior to real files.

>Release-Note:
>Audit-Trail:
>Unformatted:

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




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