From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1iOr2L-0007QE-KL for ptxdist@pengutronix.de; Sun, 27 Oct 2019 23:29:26 +0100 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23991633AbfJ0W3Xea17s (ORCPT ); Sun, 27 Oct 2019 23:29:23 +0100 Date: Sun, 27 Oct 2019 23:29:10 +0100 From: Ladislav Michl Message-ID: <20191027222910.GB9169@lenoch> References: <20191025073326.GB26830@lenoch> <20191025073553.GD26830@lenoch> <20191025081637.GG30823@pengutronix.de> <20191025131736.GA9062@lenoch> <20191025133848.oinewy6sjixwelod@pengutronix.de> <20191025231353.GB30150@lenoch> <20191027162539.GH30823@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191027162539.GH30823@pengutronix.de> Subject: Re: [ptxdist] [PATCH v3] gpsd: version bump 2.39 -> 3.19 List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Hi Michael, thanks for suggestions (and before you notice, there's more to fix than those undefined symbols - dependencies are missing as well, so it is easy to produce configuration which does not make much sense :)) Meanwhile I looked into gpsd's SConstruct file: https://gitlab.com/gpsd/gpsd/blob/master/SConstruct#L1191 As I'm passing CROSS_PYTHON3 as target_python and CROSS_PYTHON3 is a script, sys.executable returns path to host-python and all that configuration queried later using host-python is wrong. Simply dropping this line fixes it. https://gitlab.com/gpsd/gpsd/blob/master/SConstruct#L1705 Here our cross-python wrapper returns INCLUDEPY = "/usr/include/python3.7m" which is of course wrong for cross-compilation. Above two changes are enough to cross-compile package... _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de