Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Dec 2007 09:51:07 -0500
From:      Wesley Shields <wxs@atarininja.org>
To:        eculp <eculp@encontacto.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: portmaster ??
Message-ID:  <20071225145106.GH10557@atarininja.org>
In-Reply-To: <20071224101013.29114m1pkkqvckkk@intranet.encontacto.net>
References:  <14486949.post@talk.nabble.com> <20071224124848.GA42030@ted.stsp.lan> <14488594.post@talk.nabble.com> <20071224101013.29114m1pkkqvckkk@intranet.encontacto.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <unix.co@gmail.com>:
> 
>> 
>> Dear Stefan!
>> 
>> Thanks for your reply!
>> 
>>> touch /var/db/pkg/squid-<version>/+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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071225145106.GH10557>