Date: Tue, 19 Aug 2003 10:27:17 +0400 (MSD) From: Dmitry Sivachenko <mitya@demos.su> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/55721: "Checking if XXX already installed" does not work Message-ID: <200308190627.h7J6RHRp034659@tear.demos.su> Resent-Message-ID: <200308200940.h7K9eC4i089841@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 55721 >Category: ports >Synopsis: "Checking if XXX already installed" does not work >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 20 02:40:11 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Dmitry Sivachenko >Release: FreeBSD 4.8-STABLE i386 >Organization: Demos-Internet >Environment: System: FreeBSD tear.demos.su 4.8-STABLE FreeBSD 4.8-STABLE #0: Tue Jul 22 10:49:22 MSD 2003 mitya@tear.demos.su:/usr/src/sys/compile/TEAR i386 bsd.port.mk rev 1.462 >Description: Though $found_package variable is properly populated, it is checked for non-zero length ( -n "$${found_package}" ) in another shell process where it does not exist. >How-To-Repeat: Install a port of your choice. Increase PORTVERSION and try to install the same port again. It will be installed, instead of displaying expected warning. >Fix: --- bsd.port.mk.old Tue Aug 19 10:20:01 2003 +++ bsd.port.mk Tue Aug 19 10:20:31 2003 @@ -3040,8 +3040,8 @@ fi; \ fi; \ done; \ - fi; - @if [ -d ${PKG_DBDIR}/${PKGNAME} -o -n "$${found_package}" ]; then \ + fi; \ + if [ -d ${PKG_DBDIR}/${PKGNAME} -o -n "$${found_package}" ]; then \ if [ -d ${PKG_DBDIR}/${PKGNAME} ]; then \ ${ECHO_CMD} "===> ${PKGNAME} is already installed"; \ else \ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308190627.h7J6RHRp034659>