From root@yoda.multiplay.co.uk  Wed Jun 15 13:04:40 2005
Return-Path: <root@yoda.multiplay.co.uk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0FCCD16A41C
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Jun 2005 13:04:40 +0000 (GMT)
	(envelope-from root@yoda.multiplay.co.uk)
Received: from yoda.multiplay.co.uk (yoda.multiplay.co.uk [212.135.219.178])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9A37543D48
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Jun 2005 13:04:39 +0000 (GMT)
	(envelope-from root@yoda.multiplay.co.uk)
Received: from yoda.multiplay.co.uk (localhost [127.0.0.1])
	by yoda.multiplay.co.uk (8.13.1/8.13.1) with ESMTP id j5FD55Vt027640
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Jun 2005 14:05:05 +0100 (BST)
	(envelope-from root@yoda.multiplay.co.uk)
Received: (from root@localhost)
	by yoda.multiplay.co.uk (8.13.1/8.13.1/Submit) id j5FD50mp027636;
	Wed, 15 Jun 2005 14:05:00 +0100 (BST)
	(envelope-from root)
Message-Id: <200506151305.j5FD50mp027636@yoda.multiplay.co.uk>
Date: Wed, 15 Jun 2005 14:05:00 +0100 (BST)
From: Steven Hartland <killing@multiplay.co.uk>
Reply-To: Steven Hartland <killing@multiplay.co.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: cpan modules cause pkg_add spam
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         82269
>Category:       bin
>Synopsis:       [patch] cpan modules cause pkg_add spam
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    krion
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 15 13:10:13 GMT 2005
>Closed-Date:    Sat Sep 24 21:42:02 GMT 2005
>Last-Modified:  Sat Sep 24 21:42:02 GMT 2005
>Originator:     Steven Hartland
>Release:        FreeBSD 5.4-RELEASE-p2 i386
>Organization:
Multiplay UK
>Environment:
System: FreeBSD yoda.multiplay.co.uk 5.4-RELEASE-p2 FreeBSD 5.4-RELEASE-p2 #1: Mon May 2 03:44:34 BST 2005 root@yoda.multiplay.co.uk:/usr/5.4/src/sys/i386/compile/YODA i386

>Description:
	After install perl modules using cpan and they are installed with no origin
	when you have a number of these installed using pkg_add produces a huge
	amount of spam about missing origins. As this is always the case for
	packages auto created by cpan the patch below would be usefull.
	The patch prevents this warning if its a bsdpan package and its not in verbose.

>How-To-Repeat:
	Install a few perl cpan modules and then use pkg_add to add a new package.

>Fix:
The patch below was created against 5.4-RELEASE-p2 source
[patch=match.c]
--- match.c.orig        Tue Jun 14 20:06:22 2005
+++ match.c     Wed Jun 15 13:56:00 2005
@@ -296,5 +296,5 @@
            }
        }
-       if (cmd != PLIST_ORIGIN)
+       if (cmd != PLIST_ORIGIN && ( Verbose || 0 != strncmp( "bsdpan", installed[i], 6 ) ) )
            warnx("package %s has no origin recorded", installed[i]);
        fclose(fp);
[/patch]


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->krion 
Responsible-Changed-By: flz 
Responsible-Changed-When: Fri Aug 19 12:21:18 GMT 2005 
Responsible-Changed-Why:  
Bug krion with pkg_install PRs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82269 
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Sat Sep 24 21:41:52 GMT 2005 
State-Changed-Why:  
A similar patch was committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82269 
>Unformatted:
