From owner-freebsd-ruby@FreeBSD.ORG Tue Oct 27 15:20:03 2009 Return-Path: Delivered-To: ruby@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D40E31065670 for ; Tue, 27 Oct 2009 15:20:03 +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 C2D978FC0C for ; Tue, 27 Oct 2009 15:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9RFK37F052702 for ; Tue, 27 Oct 2009 15:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9RFK3Ur052701; Tue, 27 Oct 2009 15:20:03 GMT (envelope-from gnats) Date: Tue, 27 Oct 2009 15:20:03 GMT Message-Id: <200910271520.n9RFK3Ur052701@freefall.freebsd.org> To: ruby@FreeBSD.org From: Stanislav Sedov Cc: Subject: Re: ports/125936: ports-mgmt/portupgrade -R fails if BUILD_DEP's are not installed. X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Stanislav Sedov List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2009 15:20:03 -0000 The following reply was made to PR ports/125936; it has been noted by GNATS. From: Stanislav Sedov To: Bryan Drewery Cc: Michael Schout , bug-followup@FreeBSD.org Subject: Re: ports/125936: ports-mgmt/portupgrade -R fails if BUILD_DEP's are not installed. Date: Tue, 27 Oct 2009 18:10:42 +0300 On Tue, 27 Oct 2009 09:57:21 -0500 Bryan Drewery mentioned: > Try force deleting a build dependency, like libtool, then portupgrading > a port which needs it. > Yeah, I tried that but I can't reproduce the failure. Anyway, I committed the patch just now that may be able to fix this problem. If you can reproduce this can you, plese, test the patch attached? Thanks! --- bin/portupgrade 26 Oct 2009 14:47:49 -0000 1.62 +++ bin/portupgrade 27 Oct 2009 14:59:37 -0000 1.63 @@ -631,7 +631,10 @@ if $upward_recursive || $config dep = [] get_all_depends(origin).each do |d| - dep << $pkgdb.deorigin(d).to_s + newdep = $pkgdb.deorigin(d) + unless newdep.nil? then + dep << newdep.to_s + end end depends |= dep if $upward_recursive end -- Stanislav Sedov ST4096-RIPE