From patchwork Fri Mar 27 23:07:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?S=C3=A9bastien_Royen?= X-Patchwork-Id: 455605 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 54B5914015A for ; Sat, 28 Mar 2015 11:25:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 77C778B749; Sat, 28 Mar 2015 00:25:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UeLbIPwcRr-j; Sat, 28 Mar 2015 00:25:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 998B38B741; Sat, 28 Mar 2015 00:25:53 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 49C5A1C1EA4 for ; Sat, 28 Mar 2015 00:25:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 44DFB8B741 for ; Sat, 28 Mar 2015 00:25:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uyhrbC7gZpio for ; Sat, 28 Mar 2015 00:25:50 +0000 (UTC) X-Greylist: delayed 00:40:00 by SQLgrey-1.7.6 Received: from 5.mo2.mail-out.ovh.net (5.mo2.mail-out.ovh.net [87.98.181.248]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4B02E8B6BC for ; Sat, 28 Mar 2015 00:25:50 +0000 (UTC) Received: from mail637.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo2.mail-out.ovh.net (Postfix) with SMTP id 246DEFFC268 for ; Sat, 28 Mar 2015 00:07:26 +0100 (CET) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 28 Mar 2015 01:07:26 +0200 Received: from val90-3-78-208-196-132.fbx.proxad.net (HELO ?192.168.0.42?) (sebastien.royen%armadeus.com@78.208.196.132) by ns0.ovh.net with SMTP; 28 Mar 2015 01:07:25 +0200 Message-ID: <5515E2AC.3010100@armadeus.com> Date: Sat, 28 Mar 2015 00:07:24 +0100 From: =?UTF-8?B?U8OpYmFzdGllbiBSb3llbg==?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: buildroot@busybox.net X-Ovh-Tracer-Id: 16333711424394434774 X-Ovh-Remote: 78.208.196.132 (val90-3-78-208-196-132.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: 0 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeektddrtdekucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecu X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeektddrtdekucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecu Subject: [Buildroot] [PATCH] python modules search in non english locale (zlib, ...) X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" setup.py: do not add crosscompile header locations if language is not english With buildroot toolchain, gcc can be multi language. Python package setup.py need gcc english output to work fine. (find zlib for example) We force language to en_US for the need of output parsing. Signed-off-by: Sebastien Royen in_incdirs = False inc_dirs = [] Index: b/setup.py =================================================================== --- a/setup.py 2015-03-27 23:55:53.738987211 +0100 +++ b/setup.py 2015-03-27 23:44:48.482968892 +0100 @@ -414,7 +414,7 @@ tmpfile = os.path.join(self.build_temp, 'gccpaths') if not os.path.exists(self.build_temp): os.makedirs(self.build_temp) - ret = os.system('%s -E -v - %s 1>/dev/null' % (gcc, tmpfile)) + ret = os.system('LANGUAGE=en_US %s -E -v - %s 1>/dev/null' % (gcc, tmpfile)) is_gcc = False