Bug 175281 - sysutils/puppet does not install the port if portupgrade version 2.4.10.X
sysutils/puppet does not install the port if portupgrade version 2.4.10.X
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Bryan Drewery
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-14 08:30 UTC by v.chernyadev
Modified: 2013-01-15 06:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description v.chernyadev 2013-01-14 08:30:00 UTC
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"
Comment 1 Edwin Groothuis freebsd_committer 2013-01-14 08:49:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->swills

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Bryan Drewery freebsd_committer 2013-01-14 16:39:22 UTC
Responsible Changed
From-To: swills->bdrewery

This is a portupgrade problem. I'll take it.
Comment 3 dfilter freebsd_committer 2013-01-14 16:47:03 UTC
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"
Comment 4 Bryan Drewery freebsd_committer 2013-01-14 16:55:48 UTC
Can you please try with the latest ports-mgmt/portupgrade-devel version
20130114,3?

Thanks,
Bryan Drewery
Comment 5 Bryan Drewery freebsd_committer 2013-01-15 06:02:07 UTC
State Changed
From-To: open->closed

Fixed!
Comment 6 dfilter freebsd_committer 2013-01-15 06:02:09 UTC
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"