Date: Sun, 21 Aug 2011 14:18:00 -0400 From: Steve Wills <swills@FreeBSD.org> To: Fabian Wenk <fabian@wenks.ch> Cc: ruby@FreeBSD.org, bug-followup@FreeBSD.org Subject: Re: ports/140273: ports-mgmt/portupgrade-devel chokes on bsdpan pkgs Message-ID: <4E514BD8.4000603@FreeBSD.org> In-Reply-To: <201108211730.p7LHUB0Y082104@freefall.freebsd.org> References: <201108211730.p7LHUB0Y082104@freefall.freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 08/21/11 13:30, Fabian Wenk wrote:
> The following reply was made to PR ports/140273; it has been noted by GNATS.
>
> From: Fabian Wenk <fabian@wenks.ch>
> To: bug-followup@FreeBSD.org
> Cc: dokas@oitsec.umn.edu
> Subject: Re: ports/140273: ports-mgmt/portupgrade-devel chokes on bsdpan pkgs
> Date: Sun, 21 Aug 2011 19:21:47 +0200
>
> Hello
>
> This is still not fixed even with portupgrade-2.4.9,2 and gives
> the same error. I'm running on FreeBSD 7.3-RELEASE-p4 amd64. All
> Ports are current as of today.
>
> root@batman:/usr/ports# portupgrade -an
> ---> Session started at: Sun, 21 Aug 2011 18:24:39 +0200
> ---> Skipping 'bsdpan-Bot-Pastebot-0.52' because it is held by
> user (specify -f to force)
> ---> Session ended at: Sun, 21 Aug 2011 18:25:21 +0200 (consumed
> 00:00:41)
> /usr/local/lib/ruby/site_ruby/1.9/pkgtools.rb:953:in `initialize':
> ArgumentError (ArgumentError)
> from /usr/local/sbin/portupgrade:1004:in `new'
> from /usr/local/sbin/portupgrade:1004:in `rescue in do_upgrade'
> from /usr/local/sbin/portupgrade:1007:in `do_upgrade'
> from /usr/local/sbin/portupgrade:814:in `block (2 levels) in main'
> from /usr/local/sbin/portupgrade:810:in `each'
> from /usr/local/sbin/portupgrade:810:in `block in main'
> from /usr/local/lib/ruby/1.9/optparse.rb:799:in `initialize'
> from /usr/local/sbin/portupgrade:231:in `new'
> from /usr/local/sbin/portupgrade:231:in `main'
> from /usr/local/sbin/portupgrade:2219:in `<main>'
> root@batman:/usr/ports#
>
If you're using Ruby 1.9, give this patch a try.
Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)
iQEcBAEBAgAGBQJOUUvYAAoJEPXPYrMgexuh/iEH+gO4wKP1OaLsH0cjM/6DUwMJ
EaMsYcBude/U2F6zH6bWxq7zYFO0P489CSCNXELGlfHsdsqww/f59F6PFsHSyA1a
GVNwrq5tUB5LqCthXlx78WSn7Qtk0xl7CXAplU+PUje/RXzwYvlv9mD1/ozNRrSV
sA2IqZaGZIBxoHDwaIJ+k84AcMGaSrnJH8elyO7KSXdlBAUxJnmUfgCBAqtrn4St
rnOc5brWpU0rcjnoJr++7cBlhrhFH33cPJj8rP0DUbkIlN7AdE61lifngIx76OjP
LdpOE19nX1AJk717Ojr6pvHNmLt37ze7Z3FIWIRKf0KWSmpqxHGozW6BiVvgxRI=
=YJEr
-----END PGP SIGNATURE-----
[-- Attachment #2 --]
--- lib/pkgmisc.rb.orig 2011-08-21 10:15:39.000000000 +0000
+++ lib/pkgmisc.rb 2011-08-21 10:15:45.000000000 +0000
@@ -28,8 +28,8 @@
# $FreeBSD: projects/pkgtools/lib/pkgmisc.rb,v 1.12 2011-07-25 12:34:43 swills Exp $
begin
- require 'features/ruby18/dir' # for Dir.chdir(dir) { ... }
- require 'features/ruby18/enum' # Enumerable#any?, etc.
+ require 'features/ruby19/dir' # for Dir.chdir(dir) { ... }
+ require 'features/ruby19/enum' # Enumerable#any?, etc.
rescue LoadError
end
@@ -100,12 +100,6 @@
}.join(' ')
end
-class File
- def File.realpath(path)
- return File.expand_path(path)
- end
-end
-
def init_tmpdir
if ! $tmpdir.nil? && $tmpdir != "" then
return
--- bin/portupgrade.orig 2011-08-21 11:46:59.000000000 +0000
+++ bin/portupgrade 2011-08-21 11:47:06.000000000 +0000
@@ -634,7 +634,7 @@
get_all_depends(origin).each do |d|
newdep = $pkgdb.deorigin(d)
unless newdep.nil? then
- dep << newdep.to_s
+ dep << newdep.join
end
end
depends |= dep if $upward_recursive
@@ -995,6 +995,10 @@
$package_tasks << key if deps.include?(pkgname)
end
end
+ else
+ # maybe held?
+ upgraded = false
+ return false
end
$results << PkgResult.new(origin, result ? :done : :ignored, pkgname)
[-- Attachment #3 --]
NQK
b {|'D@đaj {\ulZ/$,y+[B5q=5h{~H)s$'/u7qOlHmBF+D-u~>wϗ٭d>mqm/4Qgte5zK2D~+ɨt ;6duA>
QPQj<pa&WկW1Κ8;k ?ŷ y )YOr2e@t/
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E514BD8.4000603>
