Bug 193015 - net-mgmt/p5-SNMP-Info: packaging error, missing SNMP/Info/Layer2/Ubiquiti.pm
Summary: net-mgmt/p5-SNMP-Info: packaging error, missing SNMP/Info/Layer2/Ubiquiti.pm
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Philippe Audeoud
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-26 14:17 UTC by neovortex
Modified: 2014-09-10 08:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description neovortex 2014-08-26 14:17:09 UTC
p5-SNMP-Info as installed from the pkgng repo appears to be missing the file SNMP/Info/Layer2/Ubiquiti.pm (http://sourceforge.net/p/snmp-info/code/ci/master/tree/Info/Layer2/Ubiquiti.pm) that is present in upstream.

This can result in the following error:

ERROR - SNMP::Info::specify() Loading SNMP::Info::Layer2::Ubiquiti Failed. Can't locate SNMP/Info/Layer2/Ubiquiti.pm in @INC

p5-SNMP-Info-3.19
Name           : p5-SNMP-Info
Version        : 3.19
Installed on   : Tue Aug 26 22:55:50 EST 2014
Origin         : net-mgmt/p5-SNMP-Info
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : perl5 net-mgmt
Licenses       : BSD3CLAUSE
Maintainer     : jadawin@FreeBSD.org
WWW            : http://snmp-info.sourceforge.net/
Comment        : Perl5 module for gathering information from network devices
Annotations    :
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 1.71MiB
Comment 1 John Marino freebsd_committer freebsd_triage 2014-08-26 15:35:01 UTC
over to maintainer
Comment 2 Philippe Audeoud freebsd_committer freebsd_triage 2014-09-08 12:22:41 UTC
Hello,

Thank you for your reporting but I can't reproduce your bug. Please, have a look to http://people.freebsd.org/~jadawin/p5-SNMP-Info-3.19.log. Can you provide me your logs, if you have, or arch and uname -a, please?

Regards,
Comment 3 neovortex 2014-09-08 12:39:51 UTC
Hi,

I didn't build the package from ports so I have no build log, I installed it with pkgng using the official binary packages.

Steps to reproduce:

root@netdot:~> pkg update
Updating FreeBSD repository catalogue...
[netdot] Fetching meta.txz: 100%   944 B   0.9k/s    00:01
[netdot] Fetching digests.txz: 100%    2 MB 508.9k/s    00:04
[netdot] Fetching packagesite.txz: 100%    5 MB 882.2k/s    00:06
Removing expired repository entries: 100%
Processing new repository entries: 100%
FreeBSD repository update completed. 23409 packages processed:
  9710 updated, 91 removed and 117 added.
root@netdot:~> pkg install -f p5-SNMP-Info
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 1 packages will be affected (of 0 checked):

Installed packages to be REINSTALLED:
        p5-SNMP-Info-3.19

553 KB to be downloaded.

Proceed with this action? [y/N]: y
[netdot] Fetching p5-SNMP-Info-3.19.txz: 100%  553 KB 283.2k/s    00:02
Checking integrity... done (0 conflicting)
[netdot] [1/1] Reinstalling p5-SNMP-Info-3.19: 100%
root@netdot:~> pkg info -l p5-SNMP-Info | grep Layer2
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::Airespace.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::Aironet.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::Allied.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::Baystack.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::C1900.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::C2900.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::Catalyst.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::Centillion.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::Cisco.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::CiscoSB.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::HP.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::HP4000.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::HPVC.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::Kentrox.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::N2270.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::NAP222x.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::NWSS2300.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::Netgear.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::Orinoco.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::Trapeze.3.gz
        /usr/local/lib/perl5/5.16/man/man3/SNMP::Info::Layer2::ZyXEL_DSLAM.3.gz
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/Airespace.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/Aironet.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/Allied.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/Baystack.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/C1900.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/C2900.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/Catalyst.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/Centillion.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/Cisco.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/CiscoSB.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/HP.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/HP4000.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/HPVC.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/Kentrox.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/N2270.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/NAP222x.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/NWSS2300.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/Netgear.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/Orinoco.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/Trapeze.pm
        /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/ZyXEL_DSLAM.pm
root@netdot:~> uname -a
FreeBSD netdot 10.0-RELEASE-p6 FreeBSD 10.0-RELEASE-p6 #0: Tue Jun 24 07:47:37 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
root@netdot:~>

Notice the absence of /usr/local/lib/perl5/site_perl/5.16/SNMP/Info/Layer2/Ubiquiti.pm

Looking at pkg-plist from the port I notice that the Ubiquiti.pm file is missing there as well. Digging deeper I checked the source tarball and it's missing there as well, despite references in Info.pm from the same tarball and the git version implying that Ubiquiti.pm should be in 3.19:

root@netdot:/tmp/SNMP-Info-3.19> find . | grep -i ubiquiti
root@netdot:/tmp/SNMP-Info-3.19> grep -r Ubiquiti .
./Info.pm:=item SNMP::Info::Layer2::Ubiquiti
./Info.pm:SNMP Interface to Ubiquiti Access Points
./Info.pm:See documentation in L<SNMP::Info::Layer2::Ubiquiti> for details.
./Info.pm:        10002 => 'SNMP::Info::Layer2::Ubiquiti',
./README:        SNMP::Info::Layer2::Ubiquiti
./README:            SNMP Interface to Ubiquiti Access Points
./README:            See documentation in SNMP::Info::Layer2::Ubiquiti for details.
./ChangeLog:    * Support for Ubiquiti Access Points in new class L2::Ubiquiti (begemot)
root@netdot:/tmp/SNMP-Info-3.19>

By the looks of it this appears to be an upstream bug missing the inclusion of Ubiquiti.pm in the tarball distribution. I will file a bug report in CPAN referencing this issue.
Comment 4 Philippe Audeoud freebsd_committer freebsd_triage 2014-09-09 08:09:02 UTC
Ok, so we found the same root cause. I will keep this ticket opened since a new upstream update.

Thanks for reporting.
Comment 5 neovortex 2014-09-09 08:14:11 UTC
A short term solution could be manually including the Ubiquiti.pm but I'm not sure how difficult that would be to achieve (I did this as a workaround - I simply fetched that file and put it in the right location which made everything happy). That said it might be worth seeing if upstream is going to release a fixed version in the near future at which point it just becomes a simple case of bumping the version to the fixed release..
Comment 6 Philippe Audeoud freebsd_committer freebsd_triage 2014-09-10 08:11:57 UTC
Hello,

Update to 3.20 done. Ubiquiti.pm is added with this new release. Thanks for your report.

Regards,