Bug 200639 - net-mgmt/ocsinventory-agent should depend on www/p5-libwww
Summary: net-mgmt/ocsinventory-agent should depend on www/p5-libwww
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-04 15:38 UTC by Gennady Proskurin
Modified: 2015-06-21 14:00 UTC (History)
0 users

See Also:


Attachments
Patch, which fixes problem (634 bytes, patch)
2015-06-18 09:15 UTC, Gennady Proskurin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gennady Proskurin 2015-06-04 15:38:01 UTC
net-mgmt/ocsinventory-agent should depend on www/p5-libwww
If p5-libwww is not installed, the following message is printed:

% ocsinventory-agent
Failed to load Ocsinventory::Agent, Can't locate LWP/UserAgent.pm in @INC (you may need to install the LWP::UserAgent module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.20 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.20/mach /usr/local/lib/perl5/5.20 /usr/local/lib/perl5/site_perl/5.20 /usr/local/lib/perl5/site_perl/5.20/mach .) at /usr/local/lib/perl5/site_perl/Ocsinventory/Agent/Network.pm line 7.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Ocsinventory/Agent/Network.pm line 7.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Ocsinventory/Agent.pm line 33.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Ocsinventory/Agent.pm line 33.
Compilation failed in require at (eval 1) line 1.
BEGIN failed--compilation aborted at (eval 1) line 1.

you can run the agent directly for its source directory with --devlib
Exit 1
Comment 1 Gennady Proskurin 2015-06-18 09:15:25 UTC
Created attachment 157858 [details]
Patch, which fixes problem
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-06-21 13:55:36 UTC
A commit references this bug:

Author: sunpoet
Date: Sun Jun 21 13:55:20 UTC 2015
New revision: 390227
URL: https://svnweb.freebsd.org/changeset/ports/390227

Log:
  - Fix RUN_DEPENDS: LWP::UserAgent (www/p5-libwww) is required
  - While I'm here:
    - Update MASTER_SITES
    - Fix and sort RUN_DEPENDS: Digest::MD5 is already in all supported Perl releases
  - Bump PORTREVISION for dependency change

  PR:		200639
  Submitted by:	Gennady Proskurin <gpr@mail.ru>

Changes:
  head/net-mgmt/ocsinventory-agent/Makefile
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2015-06-21 14:00:33 UTC
Committed. Thanks!