Bug 194881

Summary: net-mgmt/net-snmp undeclared dependency on libpci
Product: Ports & Packages Reporter: Kurt Lidl <lidl>
Component: Individual Port(s)Assignee: Ryan Steinmetz <zi>
Status: Closed FIXED    
Severity: Affects Only Me Flags: lidl: maintainer-feedback? (zi)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Kurt Lidl freebsd_committer freebsd_triage 2014-11-07 15:53:06 UTC
On my 9.2-ish system, I see:

root@stable9-170: pkg info -d net-snmp
net-snmp-5.7.2_16:
	openssl-1.0.1_16
	perl5-5.16.3_11

Yet 'ldd' tells me it is linked against libpci.so:

root@stable9-171: ldd /usr/local/sbin/snmpd | grep libpci
	libpci.so => /usr/local/lib/libpci.so (0x801104000)

And if I install just the binary pkg onto a different machine
with a very limited set of packages, I see:

pkg-static: (net-snmp-5.7.2_16) /usr/local/bin/agentxtrap - required shared library libpci.so not found
pkg-static: (net-snmp-5.7.2_16) /usr/local/sbin/snmpd - required shared library libpci.so not found
pkg-static: (net-snmp-5.7.2_16) /usr/local/sbin/snmptrapd - required shared library libpci.so not found
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-11-07 15:53:06 UTC
Auto-assigned to maintainer zi@FreeBSD.org
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-01-29 02:03:49 UTC
A commit references this bug:

Author: zi
Date: Thu Jan 29 02:03:10 UTC 2015
New revision: 378098
URL: https://svnweb.freebsd.org/changeset/ports/378098

Log:
  - Never link against libpci
  - Fix build under 11
  - Bump PORTREVISION

  PR:		196904, 194881

Changes:
  head/net-mgmt/net-snmp/Makefile
  head/net-mgmt/net-snmp/files/patch-agent_mibgroup_mibII_icmp.h