From owner-freebsd-ruby@FreeBSD.ORG Mon Aug 31 02:37:05 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 EA2271065698; Mon, 31 Aug 2009 02:37:05 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C22518FC1D; Mon, 31 Aug 2009 02:37:05 +0000 (UTC) Received: from freefall.freebsd.org (edwin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7V2b5LX013630; Mon, 31 Aug 2009 02:37:05 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7V2b5Ia013626; Mon, 31 Aug 2009 02:37:05 GMT (envelope-from edwin) Date: Mon, 31 Aug 2009 02:37:05 GMT Message-Id: <200908310237.n7V2b5Ia013626@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, ruby@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/138356: ports-mgmt/portupgrade: pkgdb -F + ALT_PKGDEP => broken logic X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Aug 2009 02:37:06 -0000 Synopsis: ports-mgmt/portupgrade: pkgdb -F + ALT_PKGDEP => broken logic Responsible-Changed-From-To: freebsd-ports-bugs->ruby Responsible-Changed-By: edwin Responsible-Changed-When: Mon Aug 31 02:37:05 UTC 2009 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=138356 From owner-freebsd-ruby@FreeBSD.ORG Mon Aug 31 11:08:48 2009 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61E89106568D for ; Mon, 31 Aug 2009 11:08:48 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 373E58FC1B for ; Mon, 31 Aug 2009 11:08:48 +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 n7VB8mIf072101 for ; Mon, 31 Aug 2009 11:08:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7VB8kor072097 for ruby@FreeBSD.org; Mon, 31 Aug 2009 11:08:46 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 31 Aug 2009 11:08:46 GMT Message-Id: <200908311108.n7VB8kor072097@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: ruby@FreeBSD.org Cc: Subject: Current problem reports assigned to ruby@FreeBSD.org X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Aug 2009 11:08:48 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/138356 ruby ports-mgmt/portupgrade: pkgdb -F + ALT_PKGDEP => broke o ports/137958 ruby ports-mgmt/portupgrade fails with recursive dependency o ports/137708 ruby ports-mgmt/portupgrade: portupgrade -cRn is broken o ports/136722 ruby ports-mgmt/portupgrade - portversion issues Stale lock o ports/136056 ruby ports-mgmt/portupgrade 2009-06-25 breaks textproc/meld o ports/135691 ruby ports-mgmt/portupgrade Wrong example in man page of pk o ports/135466 ruby ports-mgmt/portupgrade leaves orphaned lock files sinc o ports/135201 ruby ports-mgmt/portupgrade: doesn't upgrade lang/tcc s ports/134714 ruby ports-mgmt/portupgrade deletes user data without quest o ports/134182 ruby ports-mgmt/portupgrade incorrectly handles manual reje o ports/131111 ruby ports-mgmt/portupgrade-devel: completely removes packa o ports/129930 ruby ports-mgmt/portupgrade - portinstall tries to install o ports/129891 ruby ports-mgmt/portupgrade fails to recognize variations o o ports/128881 ruby ports-mgmt/portupgrade backtrace o ports/127889 ruby ports-mgmt/portupgrade detects spurious failures and s o ports/127019 ruby ports-mgmt/portupgrade does not recognize fail conditi o ports/126140 ruby ports-mgmt/portupgrade runtime error o ports/125936 ruby ports-mgmt/portupgrade -R fails if BUILD_DEP's are not o ports/125823 ruby [PATCH] ports-mgmt/portupgrade does not use custom ECH o ports/112818 ruby ports-mgmt/portupgrade -a fails with database error o ports/100776 ruby ports-mgmt/portupgrade: Failure to update devel/mico b 21 problems total. From owner-freebsd-ruby@FreeBSD.ORG Mon Aug 31 19:01:05 2009 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8508210656A4; Mon, 31 Aug 2009 19:01:05 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 337198FC1D; Mon, 31 Aug 2009 19:01:05 +0000 (UTC) Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 85A4D59996; Mon, 31 Aug 2009 14:43:50 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 31 Aug 2009 14:43:50 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:mime-version:to:subject:content-type; s=smtpout; bh=atbAZ0b2KF/ud1gL9nE9QFaBrYY=; b=dZQnYlkqFvI6hSibPFABWptYfJ76YYReviPWZRZQoNIVwqcfLzKxseR8uGf+rcBwZTnWbZ540R6m9yeYiVLyx0TKjMbpv776dzpUnyxcTjWdjHVZAiJv+bf9Ny2/tcpasV4LaFZnBfjwOHTWcwZvExSKUwmy8s4zOgfui+Bdt0k= X-Sasl-enc: QP9UZM3thlzp92DZGqy4u0c9OrxFhvd9/4Ed1fzcysIb 1251744230 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id AA9B83EC90; Mon, 31 Aug 2009 14:43:49 -0400 (EDT) Message-ID: <4A9C19E2.2090200@incunabulum.net> Date: Mon, 31 Aug 2009 19:43:46 +0100 From: Bruce Simpson User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: ruby@FreeBSD.org, Akinori MUSHA , Sergey Matveychuk Content-Type: multipart/mixed; boundary="------------040500000601030903010103" Cc: Subject: portupgrade not passing BATCH? [Fwd: Re: ports/mail/nullmailer: nudge re BATCH] X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Aug 2009 19:01:05 -0000 This is a multi-part message in MIME format. --------------040500000601030903010103 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi guys, I noticed nullmailer's deinstall script was prompting for input, during a portupgrade -a. Greg looked at the issue and found that portupgrade wasn't even passing BATCH in the environment, during deinstallation. Are you already aware of the issue? Do any patches exist? thanks, BMS --------------040500000601030903010103 Content-Type: message/rfc822; name="Re: ports/mail/nullmailer: nudge re BATCH.eml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Re: ports/mail/nullmailer: nudge re BATCH.eml" Received: from compute1.internal (compute1.internal [10.202.2.41]) by store75m.internal (Cyrus v2.3.14-fmsvn20249-7d77aea6) with LMTPA; Mon, 31 Aug 2009 14:38:15 -0400 X-Sieve: CMU Sieve 2.3 X-Spam-score: 0.0 X-Spam-source: IP='72.32.213.11', Host='113901-app1.sourcehosting.net', Country='US', FromHeader='org', MailFrom='org' X-Spam-charsets: plain='ISO-8859-1' X-Delivered-to: bms@incunabulum.net Received: from mx1.messagingengine.com ([10.202.2.200]) by compute1.internal (LMTPProxy); Mon, 31 Aug 2009 14:38:15 -0400 Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.messagingengine.com (Postfix) with ESMTPS id 50832123 for ; Mon, 31 Aug 2009 14:38:14 -0400 (EDT) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MiBlW-0000YG-8Q for bms@incunabulum.net; Mon, 31 Aug 2009 14:38:11 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 5735B33E753B for ; Mon, 31 Aug 2009 14:38:06 -0400 (EDT) Message-ID: <4A9C188B.3090601@FreeBSD.org> Date: Mon, 31 Aug 2009 14:38:03 -0400 From: Greg Larkin Reply-To: glarkin@FreeBSD.org Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Bruce Simpson Subject: Re: ports/mail/nullmailer: nudge re BATCH References: <4A965D25.3040409@incunabulum.net> <4A982562.2050503@FreeBSD.org> <4A98FFF3.6060608@incunabulum.net> In-Reply-To: <4A98FFF3.6060608@incunabulum.net> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Remote-Spam-Score: -0.4 (/) X-Truedomain-DKIM: None X-Truedomain: Neutral -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bruce Simpson wrote: > Greg Larkin wrote: >> I just tried "make BATCH=yes install clean", and I was not prompted for >> any input. Can you send me the command that you're using to install the >> port so I can try to reproduce the problem here? >> > > If I have nullmailer installed on a system, and I do 'portupgrade -a > --batch', then during the deinstall step, the pkg-deinstall script seems > to prompt for input even though portupgrade has set BATCH=yes in the > environment. > > cheers, > BMS Hi Bruce, Thanks for the clarification on that. I haven't tried using portupgrade in batch mode much, but looking at its source code, it turns out that this is a bug in portupgrade itself. For some reason, the --batch flag only sets BATCH=yes for port installation. When it calls pkg_deinstall, it does not set the variable. You can see this in lines 1967->1974 of the portupgrade script (version 2.4.6,2). I would create a patch for the script and open a PR against it. It should be pretty easy for the maintainer to verify that feature and commit it, unless there is some other reason that he has chosen not to implement it that way. Best regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFKnBiL0sRouByUApARAgKNAJ9zxk+BIfEWEwKy1oEtXa0aSC7vZgCeIvSl KP7jjepGoiK/rRwKERXg4/Q= =lwAC -----END PGP SIGNATURE----- --------------040500000601030903010103--