From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Aug 3 22:00:47 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC6AE16A4D0 for ; Tue, 3 Aug 2004 22:00:46 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A896943D60 for ; Tue, 3 Aug 2004 22:00:45 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i73M0j8k035235 for ; Tue, 3 Aug 2004 22:00:45 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i73M0jkr035232; Tue, 3 Aug 2004 22:00:45 GMT (envelope-from gnats) Resent-Date: Tue, 3 Aug 2004 22:00:45 GMT Resent-Message-Id: <200408032200.i73M0jkr035232@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dancho Penev Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2651816A4CE for ; Tue, 3 Aug 2004 21:51:21 +0000 (GMT) Received: from home.mnet.bg (home.mnet.bg [193.110.223.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8598543D62 for ; Tue, 3 Aug 2004 21:51:20 +0000 (GMT) (envelope-from dpenev@mnet.bg) Received: from localhost (home [127.0.0.1]) by home.mnet.bg (Postfix) with ESMTP id D45FC3B318 for ; Wed, 4 Aug 2004 00:51:18 +0300 (EEST) Received: from venus.dpsca.bg (ip220-81.mnet.bg [193.110.220.81]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by home.mnet.bg (Postfix) with ESMTP id 1EE603B30B for ; Wed, 4 Aug 2004 00:51:18 +0300 (EEST) Received: from earth.dpsca.bg (earth.dpsca.bg [192.168.1.1]) by venus.dpsca.bg (8.12.11/8.12.11) with ESMTP id i73LrpDM021117 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 4 Aug 2004 00:53:52 +0300 (EEST) Received: (from dpenev@localhost) by earth.dpsca.bg (8.12.11/8.12.11/Submit) id i73LsqvE026731; Wed, 4 Aug 2004 00:54:52 +0300 (EEST) (envelope-from dpenev) Message-Id: <200408032154.i73LsqvE026731@earth.dpsca.bg> Date: Wed, 4 Aug 2004 00:54:52 +0300 (EEST) From: Dancho Penev To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/69965: check for moved ports in "make deinstall-all" X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dancho Penev List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 22:00:47 -0000 >Number: 69965 >Category: ports >Synopsis: check for moved ports in "make deinstall-all" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 03 22:00:45 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Dancho Penev >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD earth.dpsca.bg 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu Jul 29 14:30:05 EEST 2004 root@earth.dpsca.bg:/usr/obj/usr/src/sys/EARTH i386 >Description: When deinstalling all installations with the same ${PKGORIGIN} check also if there are previous installations of already moved port. >How-To-Repeat: >Fix: --- bsd.port.mk.orig Fri Jul 23 22:10:05 2004 +++ bsd.port.mk Wed Aug 4 00:41:47 2004 @@ -3748,6 +3748,9 @@ .else @${ECHO_MSG} "===> Deinstalling for ${PKGORIGIN}" @deinstall_names=`${PKG_INFO} -q -O ${PKGORIGIN}`; \ + for oldpkgorigin in $$(${GREP} "|${PKGORIGIN}|" ${PORTSDIR}/MOVED | ${CUT} -f 1 -d '|' | ${SORT} -u); do \ + deinstall_names="$${deinstall_names} $$(${PKG_INFO} -q -O $${oldpkgorigin})"; \ + done; \ if [ -n "$${deinstall_names}" ]; then \ for d in $${deinstall_names}; do \ ${ECHO_MSG} "===> Deinstalling $${d}"; \ >Release-Note: >Audit-Trail: >Unformatted: