From baptiste.daroussin@gmail.com  Wed Jul  9 10:35:39 2008
Return-Path: <baptiste.daroussin@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D68E11065670
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Jul 2008 10:35:39 +0000 (UTC)
	(envelope-from baptiste.daroussin@gmail.com)
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152])
	by mx1.freebsd.org (Postfix) with ESMTP id 6721C8FC20
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Jul 2008 10:35:39 +0000 (UTC)
	(envelope-from baptiste.daroussin@gmail.com)
Received: by fg-out-1718.google.com with SMTP id l26so1600111fgb.35
        for <FreeBSD-gnats-submit@freebsd.org>; Wed, 09 Jul 2008 03:35:38 -0700 (PDT)
Received: by 10.86.54.3 with SMTP id c3mr6746949fga.55.1215599738007;
        Wed, 09 Jul 2008 03:35:38 -0700 (PDT)
Received: from wicklow.lan ( [82.245.249.89])
        by mx.google.com with ESMTPS id l12sm8016805fgb.6.2008.07.09.03.35.36
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Wed, 09 Jul 2008 03:35:36 -0700 (PDT)
Received: by wicklow.lan (Postfix, from userid 0)
	id 6489DF2E60; Wed,  9 Jul 2008 12:37:39 +0200 (CEST)
Message-Id: <20080709103739.6489DF2E60@wicklow.lan>
Date: Wed,  9 Jul 2008 12:37:39 +0200 (CEST)
From: Bapt <baptiste.daroussin@gmail.com>
Reply-To: Bapt <baptiste.daroussin@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: make portmaster ignore bsdpan packages instead of failing
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         125428
>Category:       ports
>Synopsis:       make ports-mgmt/portmaster ignore bsdpan packages instead of failing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 09 10:40:02 UTC 2008
>Closed-Date:    Mon Jul 28 21:27:39 UTC 2008
>Last-Modified:  Mon Jul 28 21:30:05 UTC 2008
>Originator:     Bapt
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD wicklow.lan 7.0-STABLE FreeBSD 7.0-STABLE #5: Sat Jun 21 19:11:53 CEST 2008 root@wicklow.lan:/usr/obj/usr/src/sys/WICKLOW i386


	
>Description:
	Currently when upgrading the while ports with portmaster -a for exemple, it fails becuase of bsdpan if you have some.
Here is a patch to just ignore bsdpan packages 
>How-To-Repeat:
	
>Fix:

	

--- portmaster-ignorebsdpan.patch begins here ---
--- portmaster.orig	2008-06-22 20:43:45.000000000 +0200
+++ /usr/local/sbin/portmaster	2008-07-09 12:33:46.000000000 +0200
@@ -1803,6 +1803,14 @@
 	fi
 fi
 
+case $upg_port in 
+	bsdpan*) 
+		echo ''
+		echo "====>>> ignoring $upg_port"
+		echo ''
+		safe_exit
+		;;
+esac
 if [ -n "$upg_port" -a -z "$REPLACE_ORIGIN" ]; then
 	portdir=`origin_from_pdb $upg_port`
 	[ -n "$portdir" ] || fail "No ORIGIN in $pdb/$upg_port/+CONTENTS"
--- portmaster-ignorebsdpan.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dougb 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Jul 9 11:31:28 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125428 
State-Changed-From-To: open->feedback 
State-Changed-By: dougb 
State-Changed-When: Sat Jul 19 06:30:36 UTC 2008 
State-Changed-Why:  

I'm afraid that just ignoring things is not really something that 
I'm comfortable with.  

Can you provide some more specifics? Such as, "I have these 
things installed, and I get this error when I run portmaster." 

Thanks, 

Doug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125428 
State-Changed-From-To: feedback->closed 
State-Changed-By: dougb 
State-Changed-When: Mon Jul 28 21:26:35 UTC 2008 
State-Changed-Why:  

Thanks for providing the feedback I needed to fix this problem. 

It turns out that a more thorough fix was required, which I 
have just committed in version 2.6. 

Thanks for bringing this to my attention in any case. 


Doug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125428 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/125428: commit references a PR
Date: Mon, 28 Jul 2008 21:25:02 +0000 (UTC)

 dougb       2008-07-28 21:24:53 UTC
 
   FreeBSD ports repository
 
   Modified files:
     ports-mgmt/portmaster/files portmaster.sh.in 
   Log:
   New Features
   ============
   1. You can now specify multiple globs for directories in /var/db/pkg on the
   command line (along with full names of directories/paths from /usr/ports
   and/or /var/db/pkg, as before)
   2. When calling check_interactive or update_port from check_for_updates
   tell the user what updated version is available. [1]
   
   Bug Fixes
   =========
   1. Don't set show_list to "all" for -a unless there is somthing to show
   2. Add K (don't postclean) to getopts [2]
   
   Other Improvements
   ==================
   1. In check_dependency_files() don't let ro_opd be empty for the purpose
   of the egrep expression. It works now, but it apparently violates the
   spec and could case problems down the road (e.g., for bsdgrep).
   2. Since the BSDPAN pseudo-ports do not exist in the ports tree there
   is nothing for portmaster to do with them. Therefore ignore them when
   appropriate, notifying the user when necessary. [3]
   
   Submitted by:   Geraint Edwards <gedge@yadn.org> [1]
   
   PR:             ports/126006 [2]
   Submitted by:   ahze [2]
   Pointy hat:     moi [2]
   
   Problem pointed out by: Bapt <baptiste.daroussin@gmail.com> [3]
   PR:                     ports/125428 [3]
   
   Revision  Changes    Path
   2.6       +78 -25    ports/ports-mgmt/portmaster/files/portmaster.sh.in
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
