Subject: pkgsrc 2007Q2 issues with net/net-snmp
To: None <tech-pkg@netbsd.org>
From: Malcolm Herbert <mjch@mjch.net>
List: tech-pkg
Date: 10/08/2007 11:24:19
net/net-snmp (version 5.4nb1) appears to build OK, but fails package
registration and binary packaging as /usr/pkg/share/snmp/snmp_perl.pl is
apparently missing but specified in the +CONTENTS file:

|dogbert[...pkgsrc/net/net-snmp] 69v>: bmake package
|=> Required installed package digest>=20010302: digest-20060826 found
|===> Skipping vulnerability checks.
|WARNING: No /store/mjch/pkgsrc/pkgsrc/distfiles/pkg-vulnerabilities file found.
|WARNING: To fix, install the pkgsrc/security/audit-packages
|WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
|===> Installing for net-snmp-5.4nb1
|=> Becoming ``root'' to make su-install-all (/usr/local/bin/sudo)
|=> Creating installation directories
|=> Running PRE-INSTALL script actions
:
:
|=> Automatic manual page handling
|=> Running POST-INSTALL script actions
:
:
|pkg_create: can't stat `/usr/pkg/share/snmp/snmp_perl.pl'
|=> Registering installation for net-snmp-5.4nb1
|pkg_admin: net-snmp-5.4nb1: File `/usr/pkg/share/snmp/snmp_perl.pl' is in +CONTENTS but not on filesystem!
|net-snmp-5.4nb1 requires installed package perl-5.8.8nb4
|net-snmp-5.4nb1 requires installed package tcp_wrappers-7.6.1nb4
|=> Dropping ``root'' privileges.
|===> Building binary package for net-snmp-5.4nb1
|=> Becoming ``root'' to make su-package-all (/usr/local/bin/sudo)
|Creating package /store/mjch/pkgsrc/pkgsrc/packages/All/net-snmp-5.4nb1.tgz
|Using SrcDir value of /usr/pkg
|Registering conflicts: ucd-snmp-[0-9]* nocol-[0-9]*.
|pkg_create: can't stat `/usr/pkg/share/snmp/snmp_perl.pl'
|tar: Unable to access share/snmp/snmp_perl.pl (No such file or directory)
|tar: WARNING! These file names were not selected:
|share/snmp/snmp_perl.pl
|pkg_create: /usr/pkg/bin/tar command failed with code 1
|ERROR: pkg_create -K pkg failed (2)
|*** Error code 1
|
|Stop.
|bmake: stopped in /usr/pkgsrc/net/net-snmp
|*** Error code 1
|
|Stop.
|bmake: stopped in /usr/pkgsrc/net/net-snmp
|*** Error code 1
|
|Stop.
|bmake: stopped in /usr/pkgsrc/net/net-snmp

... and yet:

|dogbert[...pkgsrc/net/net-snmp] 70v>: find work -name snmp_perl.pl
|work/net-snmp-5.4/agent/snmp_perl.pl

although I have no idea whether that's the correct file ... 

What can I do to help fix this issue?

Regards,
Malcolm

-- 
Malcolm Herbert                                This brain intentionally
mjch@mjch.net                                                left blank