Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752364AbaG1LL0 (ORCPT ); Mon, 28 Jul 2014 07:11:26 -0400 Received: from mailout1.zih.tu-dresden.de ([141.30.67.72]:41670 "EHLO mailout1.zih.tu-dresden.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751949AbaG1LLX (ORCPT ); Mon, 28 Jul 2014 07:11:23 -0400 Message-ID: <53D62FC9.2010404@tu-dresden.de> Date: Mon, 28 Jul 2014 13:11:05 +0200 From: Thomas Ilsche User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Namhyung Kim CC: Thomas Ilsche , Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Paul Mackerras , Namhyung Kim , LKML , Jiri Olsa Subject: Re: [PATCH 2/2] perf tools: Default to python version 2 References: <53D135F9.1070104@tu-dresden.de> <1406258045-25726-1-git-send-email-namhyung@kernel.org> <1406258045-25726-2-git-send-email-namhyung@kernel.org> <53D22357.9010005@tu-dresden.de> <87wqb1ivnb.fsf@sejong.aot.lge.com> <53D242DC.9070503@tu-dresden.de> <87silmibxd.fsf@sejong.aot.lge.com> In-Reply-To: <87silmibxd.fsf@sejong.aot.lge.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms090102070405060405050601" X-TUD-Virus-Scanned: mailout1.zih.tu-dresden.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a cryptographically signed message in MIME format. --------------ms090102070405060405050601 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Namhyung, >>> I'm thinking about something like below.. but sadly it doesn't work f= or >>> me.. hmm. >> >> Actually this appears to work for me (with 2.6.9 & 2.7.6) and I =20 >> find this solution more >> elegant. > > Thanks for testing. It was my fault on setting symlink to a > non-existing file for testing. It now works well for me too. > > Can I add your Tested-by then? Yes Tested-by: Thomas Ilsche Plase note that your patch requires the previous patch that just set the = default to python2. I tested in an Arch Linux VM with: A) no system install of python, source installation 2.6.9 in PATH B) no system install of python, source installation 2.7.6 in PATH C) python3 (as python) and python2 system installation In all cases it reports to build with libpython and perf script with a du= mmy Python script works. If no python whatsoever is in PATH it reports: config/Makefile:121: The path 'python' is not executable. sh: line 0: command: -c: invalid option command: usage: command [-pVv] command [arg ...] config/Makefile:122: The path '-config' is not executable. And the created perf executable does not work with the dummy script. If only pthon3 is in PATH I get the expected version error message (build= stops.) Note that for the manual old installations of python I had an issue with = linking order and a -Werror issue that I resolved manually. But this is fixed with the late= st system install of python. Best, Thomas > > Thanks, > Namhyung --------------ms090102070405060405050601 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIPhTCC BHQwggNcoAMCAQICCQCJkBEVWD6HmzANBgkqhkiG9w0BAQsFADBxMQswCQYDVQQGEwJERTEc MBoGA1UEChMTRGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0GA1UECxMWVC1UZWxlU2VjIFRydXN0 IENlbnRlcjEjMCEGA1UEAxMaRGV1dHNjaGUgVGVsZWtvbSBSb290IENBIDIwHhcNMTQwMjEx MTMxMTQ1WhcNMTkwNzA5MjM1OTAwWjBaMQswCQYDVQQGEwJERTETMBEGA1UEChMKREZOLVZl cmVpbjEQMA4GA1UECxMHREZOLVBLSTEkMCIGA1UEAxMbREZOLVZlcmVpbiBQQ0EgR2xvYmFs IC0gRzAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6ZvDZ4X5Da71jVTDllA1 PWLpbkztlNcAW5UidNQg6zSP1uzAMQQLmYHiphTSUqAoI4SLdIkEXlvg4njBeMsWyyg1OXst kEXQ7aAAeny/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9w0DAgIBKDCBogYJKwYBBAGCNxAEMYGUMIGRMIGFMQsw CQYDVQQGEwJERTEoMCYGA1UEChMfVGVjaG5pc2NoZSBVbml2ZXJzaXRhZXQgRHJlc2RlbjEM MAoGA1UECxMDWklIMRwwGgYDVQQDExNUVSBEcmVzZGVuIENBIC0gRzAyMSAwHgYJKoZIhvcN AQkBFhFwa2lAdHUtZHJlc2Rlbi5kZQIHFyxZ1i7USDCBpAYLKoZIhvcNAQkQAgsxgZSggZEw gYUxCzAJBgNVBAYTAkRFMSgwJgYDVQQKEx9UZWNobmlzY2hlIFVuaXZlcnNpdGFldCBEcmVz ZGVuMQwwCgYDVQQLEwNaSUgxHDAaBgNVBAMTE1RVIERyZXNkZW4gQ0EgLSBHMDIxIDAeBgkq hkiG9w0BCQEWEXBraUB0dS1kcmVzZGVuLmRlAgcXLFnWLtRIMA0GCSqGSIb3DQEBAQUABIIB ALDW3uHCmsT1nZ3t2s9mmHv3W0L9TUVMEaIILFX3SSfRn2gTX8NljNIXqwCcYXWuTXz5ENjs 1uRJMshwp7XdiOFG4nS1x/k8VzlYUzDwnIRm0L3Y1fS5Op8nclyPODfWXcAmzCXhYuZdQCzO 5vZb1lKh9xe7p8iYp3hK6TJlBWYt+Vv9or14ZP5PLtSHNFrI6AdCQBDsSPHBRaHT5Aa3O5Eh NpMYmqH6Ud6sH7GGnrlL7dLSJRm/AY9HttdWXQ0KkMZ4uon9XHVj07eDL/KgCMlJB2mRnzv0 SBx4DJa+X5I5wx/0GKkC6uissUoaWTlrQC/B+mjqEFSWSfdMVjqDOOwAAAAAAAA= --------------ms090102070405060405050601-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/