From owner-freebsd-ports@FreeBSD.ORG Tue Dec 25 14:45:05 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E8BC16A417 for ; Tue, 25 Dec 2007 14:45:05 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.60.158]) by mx1.freebsd.org (Postfix) with ESMTP id 6EA0713C455 for ; Tue, 25 Dec 2007 14:45:05 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: by syn.atarininja.org (Postfix, from userid 1001) id 09DFF5C34; Tue, 25 Dec 2007 09:51:07 -0500 (EST) Date: Tue, 25 Dec 2007 09:51:07 -0500 From: Wesley Shields To: eculp Message-ID: <20071225145106.GH10557@atarininja.org> References: <14486949.post@talk.nabble.com> <20071224124848.GA42030@ted.stsp.lan> <14488594.post@talk.nabble.com> <20071224101013.29114m1pkkqvckkk@intranet.encontacto.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="lEGEL1/lMxI0MVQ2" Content-Disposition: inline In-Reply-To: <20071224101013.29114m1pkkqvckkk@intranet.encontacto.net> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-ports@freebsd.org Subject: Re: portmaster ?? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2007 14:45:05 -0000 --lEGEL1/lMxI0MVQ2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 24, 2007 at 10:10:13AM -0600, eculp wrote: > Quoting Umar : > >> >> Dear Stefan! >> >> Thanks for your reply! >> >>> touch /var/db/pkg/squid-/+IGNOREME. >> >> I already done that. But its not working, here is the error message. >> >> ===>>> The www/squid25 port has been deleted: Has expired: This version is >> no longer supported by the developers >> ===>>> Aborting update >> ===>>> Child process 36682: >> ===>>> Child process 31343: >> ===>>> Child process 37217: >> ===>>> Child process 37718: >> ===>>> Child process 38414: >> >> so what should i do? > > I didn't realize that 2.5 had been deleted so then I would have to suggest > that you try the -o option of portmaster maybe something like > > portmaster -o www/squid30 [current installed version from /var/db/pkg] > > of course you will then be upgraded to 3.0 that works fine here. And if you don't want to upgrade, but would rather have portmaster ignore deleted ports, try the attached patch (relative to ports-mgmt/portmaster). I've sent this to Doug a week or so ago but have not heard a response yet - I imagine he's busy with real life during the holidays. I developed this so portmaster would not complain about the deletion of ion-3 recently (there is no suitable replacement to use with -o for me). > Have a great Christmas, You too! -- WXS --lEGEL1/lMxI0MVQ2 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="portmaster-ignore-deleted-ports.diff" Index: files/portmaster.sh.in =================================================================== RCS file: /home/ncvs/ports/ports-mgmt/portmaster/files/portmaster.sh.in,v retrieving revision 1.26 diff -u -r1.26 portmaster.sh.in --- files/portmaster.sh.in 12 Dec 2007 21:50:59 -0000 1.26 +++ files/portmaster.sh.in 14 Dec 2007 17:34:10 -0000 @@ -518,7 +518,13 @@ ' for l in `grep "^$sf" $pd/MOVED`; do case "$l" in - ${sf}\|\|*) fail "The $sf port has been deleted: ${l##*|}" + ${sf}\|\|*) + if [ -z "$IGNORE_DELETED" ]; then + fail "The $sf port has been deleted: ${l##*|}" + else + echo "===> The $sf port has been deleted: ${l##*|}" + echo "===> Ignoring deleted port." + fi ;; ${sf}\|*) newportdir=${l#*\|} newportdir=${newportdir%%\|*} @@ -997,7 +1003,7 @@ fi # Save switches for potential child processes -while getopts 'BCDGLRabde:fghilm:nop:r:stuvwx:' COMMAND_LINE_ARGUMENT ; do +while getopts 'BCDGLRabde:fghiIlm:nop:r:stuvwx:' COMMAND_LINE_ARGUMENT ; do case "${COMMAND_LINE_ARGUMENT}" in B) NO_BACKUP=yes; ARGS="-B $ARGS" ;; C) DONT_PRE_CLEAN=yes; ARGS="-C $ARGS" ;; @@ -1016,6 +1022,7 @@ g) MAKE_PACKAGE=yes; ARGS="-g $ARGS" ;; h) usage 0 ;; i) INTERACTIVE_UPDATE=yes; ARGS="-i $ARGS" ;; + I) IGNORE_DELETED=yes ;; l) LIST=yes ;; m) PM_MAKE_ARGS=$OPTARG export PM_MAKE_ARGS # For 'make checksum' --lEGEL1/lMxI0MVQ2--