From owner-freebsd-ports Tue Oct 9 19:50: 9 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E5F2A37B408 for ; Tue, 9 Oct 2001 19:50:00 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9A2o0w26044; Tue, 9 Oct 2001 19:50:00 -0700 (PDT) (envelope-from gnats) Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id 38C6E37B40A for ; Tue, 9 Oct 2001 19:45:51 -0700 (PDT) Received: from jonc.itouch ([192.168.2.21]) by itouch.co.nz with esmtp (Exim 3.33 #1) id 15r9NU-0008wg-00 for FreeBSD-gnats-submit@freebsd.org; Wed, 10 Oct 2001 15:45:48 +1300 Received: (from jonc@localhost) by jonc.itouch (8.11.6/8.11.6) id f9A2jli11192; Wed, 10 Oct 2001 15:45:47 +1300 (NZDT) (envelope-from jonc) Message-Id: <200110100245.f9A2jli11192@jonc.itouch> Date: Wed, 10 Oct 2001 15:45:47 +1300 (NZDT) From: Jonathan Chen Reply-To: Jonathan Chen To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/31182: pkg_delete doesn't always remove symbolic links in packages Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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