bin/82269: cpan modules cause pkg_add spam

Steven Hartland killing at multiplay.co.uk
Wed Jun 15 13:10:14 GMT 2005


>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 at 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:


More information about the freebsd-bugs mailing list