From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MuuMd-00014I-BE for garchives@archives.gentoo.org; Mon, 05 Oct 2009 20:40:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DBDA7E085A; Mon, 5 Oct 2009 20:40:57 +0000 (UTC) Received: from amun.cheops.ods.org (amun.cheops.ods.org [82.95.138.191]) by pigeon.gentoo.org (Postfix) with ESMTP id A3EEFE085A for ; Mon, 5 Oct 2009 20:40:57 +0000 (UTC) Received: from tefnut.cheops.ods.org ([2001:888:1022:0:211:24ff:fe37:e46e] helo=gentoo.org) by amun.cheops.ods.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MuuMa-0004eg-5a for gentoo-dev@lists.gentoo.org; Mon, 05 Oct 2009 22:40:56 +0200 Date: Mon, 5 Oct 2009 22:40:24 +0200 From: Fabian Groffen To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: python-wrapper breaks init scripts Message-ID: <20091005204024.GV19056@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <200910042032.17789.hanno@gentoo.org> <200910042102.55750.Arfrever@gentoo.org> <4AC9A456.9000306@gentoo.org> <4ACA57FA.3040400@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4ACA57FA.3040400@gentoo.org> User-Agent: Mutt/1.5.20 (Darwin 8.11.0, VIM - Vi IMproved 7.2) Organization: Gentoo Foundation, Inc. X-Content-Scanned: by amun.cheops.ods.org (Exim Exiscan) using SpamAssassin and ClamAV X-Archives-Salt: a0e651cd-a03a-44f4-9aa9-43fcb58cbc80 X-Archives-Hash: 17c14b5406e902af8d5ace57e60105e0 On 05-10-2009 16:32:58 -0400, Jonathan Callen wrote: > Michael Haubenwallner wrote: > > The problem here IMO is that this wrapper executes python2.6 with argv0 set > > to python2.6, while it should be the argv0 from how the wrapper was executed. > > At least this is what init.d scripts expect (seen with ntlmaps too). > > Unfortunately, if argv[0] is *not* set to python2.6, it appears that > some python programs crash, thereby making this a lose-lose proposition. I think we need to see if we can identify those packages and what is the real problem then. Python does some awful processing during startup to determine its own prefix, pythonpath etc. We might be able to just patch our python to behave. -- Fabian Groffen Gentoo on a different level