From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20192 invoked by alias); 23 Feb 2015 16:26:19 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 20179 invoked by uid 89); 23 Feb 2015 16:26:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 23 Feb 2015 16:26:18 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1NGQF6H026149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 23 Feb 2015 11:26:16 -0500 Received: from t540p.usersys.redhat.com (vpn-51-141.rdu2.redhat.com [10.10.51.141]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t1NGQE74013616 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 23 Feb 2015 11:26:15 -0500 Message-ID: <54EB54A5.2010801@redhat.com> Date: Mon, 23 Feb 2015 16:26:00 -0000 From: David Smith User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "Frank Ch. Eigler" , Nathan Scott CC: systemtap Subject: Re: [PATCH] python3 support for /usr/bin/dtrace References: <452908795.11130378.1424394762756.JavaMail.zimbra@redhat.com> <1605218776.11202792.1424408969495.JavaMail.zimbra@redhat.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-q1/txt/msg00192.txt.bz2 On 02/21/2015 02:31 PM, Frank Ch. Eigler wrote: > > Hi - > >> Came across a few syntax issues when building PCP with static >> probes enabled on a system where python3 was default. [...] > > By default, meaning /usr/bin/python mapping to python3? Or do you > mean just that /usr/bin/python may be missing, so we should consider > hash-banging /usr/bin/python3 instead? > > >> [...] The downside to this change is that python versions before >> 2.6 may no longer work, but that seems to be a fairly common minimum >> python version these days. > > RHEL5 ships with python 2.4.*. Is there a solution that lets that > work too? I tested this patch and found it didn't work on python 2.4. I took out the failing part (the new exception handling) and checked in the rest as commit d576100. I think I may have an idea of how to fix the exception handling to handle python 2.4+. -- David Smith dsmith@redhat.com Red Hat http://www.redhat.com 256.217.0141 (direct) 256.837.0057 (fax)