ports/69965: check for moved ports in "make deinstall-all"
Dancho Penev
dpenev at mnet.bg
Tue Aug 3 22:00:47 UTC 2004
>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 at 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:
More information about the freebsd-ports-bugs
mailing list