Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jun 2005 14:05:00 +0100 (BST)
From:      Steven Hartland <killing@multiplay.co.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/82269: cpan modules cause pkg_add spam
Message-ID:  <200506151305.j5FD50mp027636@yoda.multiplay.co.uk>
Resent-Message-ID: <200506151310.j5FDAEog049469@freefall.freebsd.org>

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

>Number:         82269
>Category:       bin
>Synopsis:       cpan modules cause pkg_add spam
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 15 13:10:13 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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