puppet-3.0.1_1 and portupgrade-2.4.10.1,2 Trying to install any port, but get errors. My example: ======================== # cat ./iperf.pp package { 'benchmarks/iperf': ensure => 'installed', provider => 'ports', } # puppet apply iperf.pp Error: Execution of '/usr/local/sbin/portupgrade -N -M BATCH=yes benchmarks/iperf' returned 1: /usr/local/sbin/portupgrade:569:in `chdir': HOME/LOGDIR not set (ArgumentError) from /usr/local/sbin/portupgrade:569:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize' from /usr/local/sbin/portupgrade:237:in `new' from /usr/local/sbin/portupgrade:237:in `main' from /usr/local/sbin/portupgrade:2371 Error: /Stage[main]//Package[benchmarks/iperf]/ensure: change from absent to present failed: Execution of '/usr/local/sbin/portupgrade -N -M BATCH=yes benchmarks/iperf' returned 1: /usr/local/sbin/portupgrade:569:in `chdir': HOME/LOGDIR not set (ArgumentError) from /usr/local/sbin/portupgrade:569:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize' from /usr/local/sbin/portupgrade:237:in `new' from /usr/local/sbin/portupgrade:237:in `main' from /usr/local/sbin/portupgrade:2371 ======================== If I run "/usr/local/sbin/portupgrade -N -M BATCH=yes benchmarks/iperf" from the command line, there are no errors. Then I dounraded portupgrade to version 2.4.9.3, then there is no error. Whith portupgrade-2.4.10.3 the error occurs. Checked on some servers. Fix: Downgrade portupgrade to version 2.4.9.3 How-To-Repeat: Install puppet-3.0.1_1 and portupgrade-2.4.10.1,2. Create some examle like: # cat ./iperf.pp package { 'benchmarks/iperf': ensure => 'installed', provider => 'ports', } and after run "puppet apply iperf.pp"
Responsible Changed From-To: freebsd-ports-bugs->swills Over to maintainer (via the GNATS Auto Assign Tool)
Responsible Changed From-To: swills->bdrewery This is a portupgrade problem. I'll take it.
Author: bdrewery Date: Mon Jan 14 16:46:55 2013 New Revision: 310396 URL: http://svnweb.freebsd.org/changeset/ports/310396 Log: - Update to checkin fb8519c Changes: - Fix crash when HOME is not set in the environment, which breaks some cases of puppet usage PR: ports/175281 Reported by: Vladimir <v.chernyadev@tradesoft.ru> Modified: head/ports-mgmt/portupgrade-devel/Makefile head/ports-mgmt/portupgrade-devel/distinfo Modified: head/ports-mgmt/portupgrade-devel/Makefile ============================================================================== --- head/ports-mgmt/portupgrade-devel/Makefile Mon Jan 14 16:39:46 2013 (r310395) +++ head/ports-mgmt/portupgrade-devel/Makefile Mon Jan 14 16:46:55 2013 (r310396) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= portupgrade -PORTVERSION= 20121206 +PORTVERSION= 20130114 PORTEPOCH= 3 CATEGORIES= ports-mgmt MASTER_SITES= GH \ @@ -22,7 +22,7 @@ CONFLICTS_INSTALL= portupgrade-[0-9]* USE_GITHUB= yes GH_ACCOUNT= pkgtools GH_PROJECT= pkgtools -GH_COMMIT= 312c71a +GH_COMMIT= fb8519c GH_TAGNAME= ${GH_COMMIT} DIST_SUBDIR= ${PORTNAME} Modified: head/ports-mgmt/portupgrade-devel/distinfo ============================================================================== --- head/ports-mgmt/portupgrade-devel/distinfo Mon Jan 14 16:39:46 2013 (r310395) +++ head/ports-mgmt/portupgrade-devel/distinfo Mon Jan 14 16:46:55 2013 (r310396) @@ -1,2 +1,2 @@ -SHA256 (portupgrade/pkgtools-pkgtools-20121206-0-g312c71a.tar.gz) = c95e244670a60cb25ae4c5af2c89baa8a4697af1ce9e02552f487c3a76b976dd -SIZE (portupgrade/pkgtools-pkgtools-20121206-0-g312c71a.tar.gz) = 105431 +SHA256 (portupgrade/pkgtools-pkgtools-20130114-0-gfb8519c.tar.gz) = b7130eca78a8493e37d158c5ad52f5ccf9ccdaa700c2b26b0afc63e81f8ecaa4 +SIZE (portupgrade/pkgtools-pkgtools-20130114-0-gfb8519c.tar.gz) = 105460 _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Can you please try with the latest ports-mgmt/portupgrade-devel version 20130114,3? Thanks, Bryan Drewery
State Changed From-To: open->closed Fixed!
Author: bdrewery Date: Tue Jan 15 06:01:57 2013 New Revision: 310426 URL: http://svnweb.freebsd.org/changeset/ports/310426 Log: - Update to 2.4.10.4 Changes: - Fixes crash when HOME is not set in the environment, which fixes some cases of puppet usage [1] PR: ports/175281 [1] Reported by: Vladimir <v.chernyadev@tradesoft.ru> [1] Modified: head/ports-mgmt/portupgrade/Makefile head/ports-mgmt/portupgrade/distinfo Modified: head/ports-mgmt/portupgrade/Makefile ============================================================================== --- head/ports-mgmt/portupgrade/Makefile Tue Jan 15 05:31:50 2013 (r310425) +++ head/ports-mgmt/portupgrade/Makefile Tue Jan 15 06:01:57 2013 (r310426) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= portupgrade -PORTVERSION= 2.4.10.3 +PORTVERSION= 2.4.10.4 PORTEPOCH= 2 CATEGORIES= ports-mgmt MASTER_SITES= SF/portupgrade/pkgtools/dist/ \ Modified: head/ports-mgmt/portupgrade/distinfo ============================================================================== --- head/ports-mgmt/portupgrade/distinfo Tue Jan 15 05:31:50 2013 (r310425) +++ head/ports-mgmt/portupgrade/distinfo Tue Jan 15 06:01:57 2013 (r310426) @@ -1,2 +1,2 @@ -SHA256 (portupgrade/pkgtools-2.4.10.3.tar.bz2) = b1ffbc410846349115a4caefee2289b248285f4b7fdae4a1cf79868a962afdb1 -SIZE (portupgrade/pkgtools-2.4.10.3.tar.bz2) = 85025 +SHA256 (portupgrade/pkgtools-2.4.10.4.tar.bz2) = 9f97855698e737df2917ad78ba20d92f20d64fff56521a718a6002170fdec408 +SIZE (portupgrade/pkgtools-2.4.10.4.tar.bz2) = 85019 _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"