From owner-svn-src-user@FreeBSD.ORG Mon May 10 22:21:08 2010 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B5AD31065673; Mon, 10 May 2010 22:21:08 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [69.147.83.44]) by mx1.freebsd.org (Postfix) with ESMTP id A6F898FC0A; Mon, 10 May 2010 22:21:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o4AML8MY085394; Mon, 10 May 2010 22:21:08 GMT (envelope-from dougb@svn.freebsd.org) Received: (from dougb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o4AML8Nx085392; Mon, 10 May 2010 22:21:08 GMT (envelope-from dougb@svn.freebsd.org) Message-Id: <201005102221.o4AML8Nx085392@svn.freebsd.org> From: Doug Barton Date: Mon, 10 May 2010 22:21:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r207904 - user/dougb/portmaster X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2010 22:21:08 -0000 Author: dougb Date: Mon May 10 22:21:08 2010 New Revision: 207904 URL: http://svn.freebsd.org/changeset/base/207904 Log: LOCALBASE_COMPAT is only ever used in combination with /pkg at the end, so fold that into the variable to start with. Modified: user/dougb/portmaster/portmaster Modified: user/dougb/portmaster/portmaster ============================================================================== --- user/dougb/portmaster/portmaster Mon May 10 21:57:34 2010 (r207903) +++ user/dougb/portmaster/portmaster Mon May 10 22:21:08 2010 (r207904) @@ -2441,15 +2441,15 @@ if [ "$$" -eq "$PM_PARENT_PID" -a -z "$S export CUR_DEPS DISPLAY_LIST INSTALLED_LIST PM_DEPTH IPC_SAVE if [ -n "$LOCALBASE" ]; then - LOCALBASE_COMPAT="$LOCALBASE/lib/compat" + LOCALBASE_COMPAT="$LOCALBASE/lib/compat/pkg" else PLB=`pm_make_b -f/usr/share/mk/bsd.port.mk -V LOCALBASE 2>/dev/null` if [ -n "$PLB" ]; then - LOCALBASE_COMPAT="$PLB/lib/compat" + LOCALBASE_COMPAT="$PLB/lib/compat/pkg" else - PLB=`head -1 $PM_INDEX | cut -f 3 -d\|` + PLB=`head -1 $PM_INDEX | cut -f 3 -d\| 2>/dev/null` if [ -d "$PLB" ]; then - LOCALBASE_COMPAT="${PLB}/lib/compat" + LOCALBASE_COMPAT="${PLB}/lib/compat/pkg" else fail 'The value of LOCALBASE cannot be empty' fi @@ -3254,13 +3254,13 @@ if [ -n "$upg_port" -o -n "$ro_upg_port" temp="${temp}$file " done if [ -n "$temp" ]; then - if [ ! -d "$LOCALBASE_COMPAT/pkg" ]; then - pm_sv Creating $LOCALBASE_COMPAT/pkg for -w - pm_mkdir_s $LOCALBASE_COMPAT/pkg + if [ ! -d "$LOCALBASE_COMPAT" ]; then + pm_sv Creating $LOCALBASE_COMPAT for -w + pm_mkdir_s $LOCALBASE_COMPAT fi pm_sv Copying old shared libraries for -w - $PM_SU_CMD cp -p $temp $LOCALBASE_COMPAT/pkg/ + $PM_SU_CMD cp -p $temp ${LOCALBASE_COMPAT}/ fi pm_unlink $ldconfig_out ; unset ldconfig_out temp file @@ -3335,12 +3335,12 @@ echo '' # Remove saved libs that match newly installed files -temp=`find $LOCALBASE_COMPAT/pkg -type d -empty 2>/dev/null` -if [ -z "$temp" -a -d "$LOCALBASE_COMPAT/pkg" ]; then +temp=`find $LOCALBASE_COMPAT -type d -empty 2>/dev/null` +if [ -z "$temp" -a -d "$LOCALBASE_COMPAT" ]; then unset files for file in `pkg_info -q -L $new_port`; do - [ -f "$LOCALBASE_COMPAT/pkg/${file##*/}" ] && { - files="${files}$LOCALBASE_COMPAT/pkg/${file##*/} "; } + [ -f "${LOCALBASE_COMPAT}/${file##*/}" ] && { + files="${files}${LOCALBASE_COMPAT}/${file##*/} "; } done if [ -n "$files" ]; then @@ -3351,9 +3351,9 @@ if [ -z "$temp" -a -d "$LOCALBASE_COMPAT unset temp file files fi -[ -z "$temp" ] && temp=`find $LOCALBASE_COMPAT/pkg -type d -empty 2>/dev/null` +[ -z "$temp" ] && temp=`find $LOCALBASE_COMPAT -type d -empty 2>/dev/null` if [ -d "$temp" ]; then - pm_sv Deleting the empty $LOCALBASE_COMPAT/pkg + pm_sv Deleting the empty $LOCALBASE_COMPAT pm_rmdir_s $temp fi unset temp