From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jan 25 10:00:03 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6DFB359F for ; Fri, 25 Jan 2013 10:00:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 54FF7AF6 for ; Fri, 25 Jan 2013 10:00:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0PA03kL053074 for ; Fri, 25 Jan 2013 10:00:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0PA03K6053073; Fri, 25 Jan 2013 10:00:03 GMT (envelope-from gnats) Resent-Date: Fri, 25 Jan 2013 10:00:03 GMT Resent-Message-Id: <201301251000.r0PA03K6053073@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, Daniel Walrond Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CC6A5595 for ; Fri, 25 Jan 2013 09:59:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id A59E4AEE for ; Fri, 25 Jan 2013 09:59:33 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0P9xWWh012792 for ; Fri, 25 Jan 2013 09:59:32 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r0P9xWln012791; Fri, 25 Jan 2013 09:59:32 GMT (envelope-from nobody) Message-Id: <201301250959.r0P9xWln012791@red.freebsd.org> Date: Fri, 25 Jan 2013 09:59:32 GMT From: Daniel Walrond To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/175558: port installation via puppet X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2013 10:00:03 -0000 >Number: 175558 >Category: ports >Synopsis: port installation via puppet >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 25 10:00:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Daniel Walrond >Release: 9.1 >Organization: >Environment: FreeBSD store03 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: I have done a fresh ZFS install of 9.1 using http://mfsbsd.vx.sk/. Then... # portsnap fetch # portsnap extract # cd /usr/ports/sysutils/puppet # make install clean Which installs puppet version 3.0.2. On the FreeBSD host I ran: # puppet agent --test On the Puppetmaster I sign the key generated from the previous command. On the FreeBSD host I ran: # puppet agent --test --noop Everything looked sane, then running # puppet agent --test I get the following errors: Info: Retrieving plugin Info: Caching catalog for store03.navetas.com Info: Applying configuration version '1359052122' Error: Could not set 'present' on ensure: uninitialized class variable @@lock in Object at 8:/etc/puppet/modules/ssmtp/manifests/freebsd.pp Error: Could not set 'present' on ensure: uninitialized class variable @@lock in Object at 8:/etc/puppet/modules/ssmtp/manifests/freebsd.pp Wrapped exception: uninitialized class variable @@lock in Object Error: /Stage[main]/Ssmtp::Freebsd/Package[mail/ssmtp]/ensure: change from absent to present failed: Could not set 'present' on ensure: uninitialized class variable @@lock in Object at 8:/etc/puppet/modules/ssmtp/manifests/freebsd.pp Notice: /Stage[main]/Ssmtp::Freebsd/File[/usr/local/etc/ssmtp/ssmtp.conf]: Dependency Package[mail/ssmtp] has failures: true Warning: /Stage[main]/Ssmtp::Freebsd/File[/usr/local/etc/ssmtp/ssmtp.conf]: Skipping because of failed dependencies Notice: /Stage[main]/Ssmtp::Freebsd/File[/etc/mail/mailer.conf]: Dependency Package[mail/ssmtp] has failures: true Warning: /Stage[main]/Ssmtp::Freebsd/File[/etc/mail/mailer.conf]: Skipping because of failed dependencies Notice: Finished catalog run in 0.36 seconds If I then install the port mail/ssmtp and rerun puppet and install items which depend on the port being install and completes normally. # cd /usr/ports/mail/ssmtp/ # make install clean # puppet agent --test Compared with a very similar host running FreeBSD 9.0 and Puppet 3.0.1, I do not have this problem. >How-To-Repeat: The puppet code to recreate this node store03 { include test } class test { package 'editors/nano': ensure => installed; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: