ports/170197: [patch] net-mgmt/net-snmp fix leftovers for ports depending on net-snmp
Olli Hauer
ohauer at FreeBSD.org
Thu Jul 26 15:00:24 UTC 2012
>Number: 170197
>Category: ports
>Synopsis: [patch] net-mgmt/net-snmp fix leftovers for ports depending on net-snmp
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jul 26 15:00:23 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Olli Hauer <ohauer at FreeBSD.org>
>Release: FreeBSD 8.3-RELEASE-p3 amd64
>Organization:
>Environment:
>Description:
With pkgng there is a small issue for ports which are depending on net-snmp.
pkgng tracks during package build in tinderbox the directory etc/snmp but this directory is only created in pkg-plist
The following error will be displayed in the tinderbox log for net-snmp
===> Registering installation for net-snmp-5.7.1_7
pkg: lstat(/usr/local/etc/snmp/): No such file or directory
Installing net-snmp-5.7.1_7... done
All ports depending on net-snmp have status leftover because of the directory 'etc/snmp'
nrpe-2.13.log:
=== Checking filesystem state after all packages deleted
================================================================
list of extra files and directories in / (not present on clean system but present after everything was deinstalled)
122628 4 drwxr-xr-x 2 root wheel 512 Jul 23 06:21 usr/local/etc/snmp
nagios-plugins-1.4.15_1,1.log:
=== Checking filesystem state after all packages deleted
================================================================
list of extra files and directories in / (not present on clean system but present after everything was deinstalled)
52816 4 drwxr-xr-x 2 root wheel 512 Jul 23 06:00 usr/local/etc/snmp
>How-To-Repeat:
Build nrpe2 or any other port depending on net-snmp with tinderbox HEAD and pkgng support
$> cat tb/scripts/etc/env/build.8.3-amd64
WITH_PKGNG=yes
PKGSUFFIX=.txz
>Fix:
--- net-snmp.diff begins here ---
Index: net-snmp/Makefile
===================================================================
--- net-snmp/Makefile (revision 301561)
+++ net-snmp/Makefile (working copy)
@@ -315,6 +315,7 @@
post-install: strip-files install-config-files install-doc-files display-message
${MKDIR} /var/agentx
+ ${MKDIR} ${PREFIX}/etc/snmp
strip-files:
cd ${PREFIX}/bin; ${STRIP_CMD} ${BIN_FILES}
--- net-snmp.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list