From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 26 15:00:24 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1FC751065672 for ; Thu, 26 Jul 2012 15:00:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E24DC8FC0A for ; Thu, 26 Jul 2012 15:00:23 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6QF0NGt051601 for ; Thu, 26 Jul 2012 15:00:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6QF0NBS051600; Thu, 26 Jul 2012 15:00:23 GMT (envelope-from gnats) Resent-Date: Thu, 26 Jul 2012 15:00:23 GMT Resent-Message-Id: <201207261500.q6QF0NBS051600@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Olli Hauer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 990051065673; Thu, 26 Jul 2012 14:50:14 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 69A128FC16; Thu, 26 Jul 2012 14:50:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6QEoE6K051286; Thu, 26 Jul 2012 14:50:14 GMT (envelope-from ohauer@freefall.freebsd.org) Received: (from ohauer@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6QEoEla051285; Thu, 26 Jul 2012 14:50:14 GMT (envelope-from ohauer) Message-Id: <201207261450.q6QEoEla051285@freefall.freebsd.org> Date: Thu, 26 Jul 2012 14:50:14 GMT From: Olli Hauer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: zi@FreeBSD.org Subject: ports/170197: [patch] net-mgmt/net-snmp fix leftovers for ports depending on net-snmp X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Olli Hauer List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2012 15:00:24 -0000 >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 >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: