From patchwork Wed Jul 5 10:28:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Grandegger X-Patchwork-Id: 784512 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x2cXR75Vcz9rvt for ; Wed, 5 Jul 2017 20:28:23 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7357287691; Wed, 5 Jul 2017 10:28:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E3EpCokpLM9C; Wed, 5 Jul 2017 10:28:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 34D29855AC; Wed, 5 Jul 2017 10:28:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 913491C0D51 for ; Wed, 5 Jul 2017 10:28:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8961230946 for ; Wed, 5 Jul 2017 10:28:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CEgOOkJBi4UA for ; Wed, 5 Jul 2017 10:28:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailproxy02.manitu.net (mailproxy02.manitu.net [217.11.48.66]) by silver.osuosl.org (Postfix) with ESMTPS id C06D42476A for ; Wed, 5 Jul 2017 10:28:16 +0000 (UTC) Received: from [192.168.178.20] (aftr-88-217-180-23.dynamic.mnet-online.de [88.217.180.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wg@grandegger.com) by mailproxy02.manitu.net (Postfix) with ESMTPSA id 992B2102016A; Wed, 5 Jul 2017 12:28:14 +0200 (CEST) From: Wolfgang Grandegger To: Arnout Vandecappelle , buildroot@buildroot.org References: <1499185359-8293-1-git-send-email-wg@grandegger.com> <1499185359-8293-11-git-send-email-wg@grandegger.com> Message-ID: <57657dbc-eca2-a352-ae7c-902a01c9ce73@grandegger.com> Date: Wed, 5 Jul 2017 12:28:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB Cc: Peter Seiderer Subject: Re: [Buildroot] [PATCH v6 10/10] package/qt5base: provide "qt.conf" to make "qmake" relocatable 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" Am 05.07.2017 um 11:30 schrieb Wolfgang Grandegger: > Hello Arnout, > > Am 05.07.2017 um 10:59 schrieb Arnout Vandecappelle: >> Hi Wolfgang, >> >> On 04-07-17 18:22, Wolfgang Grandegger wrote: >>> The file "qt.conf" can be used to override the hard-coded paths that are >>> compiled into the Qt library. We need it to make "qmake" relocatable. >> >> All qt5 packages are failing because of this, e.g. >> http://autobuild.buildroot.net/results/33e/33eb7b7ef7d232bed2432d1d44fd80a4fc8c4e2d >> >> >> qt5serialport: installs files in >> /accts/mlweber1/instance-2/output/host/usr/x86_64-buildroot-linux-uclibc/sysroot//accts/mlweber1/instance-2/output >> >> >> >> Can you have a look? > > I know the problem! The patched used an old version (from an old series) > of "qt.conf.in"..., sorry! The patch is reverted now. So just for the records, the patch below fixes the problem. I'm going to provide a proper patch with my next series. This also shows, that if "qt.conf" is in place, it's active and will always overwrite the pathes compiled into qmake... which will break the idea of "make sdk" somehow. From 934dce2df02f26a894140b70991680e0797f11cd Mon Sep 17 00:00:00 2001 From: Wolfgang Grandegger Date: Wed, 5 Jul 2017 11:33:04 +0200 Subject: [PATCH] package/qt5base: provide proper "qt.conf.in" to make "qmake" relocatable We need to specify all variables to overwrite the compiled in values. Signed-off-by: Wolfgang Grandegger --- package/qt5/qt5base/qt.conf.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/package/qt5/qt5base/qt.conf.in b/package/qt5/qt5base/qt.conf.in index 48e4b92..67ae04d 100644 --- a/package/qt5/qt5base/qt.conf.in +++ b/package/qt5/qt5base/qt.conf.in @@ -2,5 +2,18 @@ Prefix=@@HOST_DIR@@/usr Sysroot=@@STAGING_DIR@@ Headers=/usr/include/qt5 +Libraries=/usr/lib +LibraryExecutables=/usr/libexec +Binaries=/usr/bin Plugins=/usr/lib/qt/plugins Examples=/usr/lib/qt/examples +Qml2Imports=/usr/qml +Imports=/usr/imports +Translations=/usr/translations +Examples=/usr/lib/qt/examples +Demos=/usr/lib/qt/examples +Tests=/usr/tests +Settings=/usr +Documentation=/usr/doc +ArchData=/usr +Data=/usr