From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 17 Oct 2023 13:36:36 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsiNI-00BiRz-Cg for lore@lore.pengutronix.de; Tue, 17 Oct 2023 13:36:35 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qsiNH-0007Mb-Ju; Tue, 17 Oct 2023 13:36:35 +0200 Received: from mail.thorsis.com ([92.198.35.195]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qsiMx-0007Lw-S9 for ptxdist@pengutronix.de; Tue, 17 Oct 2023 13:36:16 +0200 Received: from adahl by ada.ifak-system.com with local (Exim 4.94.2) (envelope-from ) id 1qsiLz-001emB-2M; Tue, 17 Oct 2023 13:35:15 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=default; t=1697542575; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-transfer-encoding:content-transfer-encoding; bh=fm5wAB2aq8lJE66VujmgTQqg/IP7MGiqWznoxO0yW4g=; b=ct/mKLk3w2QhoUtewTRXc0ZJRfpyrLALdrip9NlJpFinW+FVWJZwJAGT+ijj9JAs9OgUBy bK4mIsp9XJa+VWf7bkCl0uCdVCv3bQ3ahu+QKl31YSlZ0YSHKxYKGvBVxU1BK9CdWX2A3c 8bgo21bmUeH8MSppkESEPbEgWshHduNABE6nE/QJEqOLOObISps+CqDQHKLghjYsPHqlhx Qn7RLl/n4/t5ZAg339M7oiGDuew8zrp5nRowZcg0c5YvVVCm6QZZJXFOBu+4XXnXKmYYHf Zz0TjXYKonIEJ/5BCY9JNNrqoAQv3hP709aSKCcN8dVwpPkPbzgXtmDeHq7q6A== From: Alexander Dahl To: ptxdist@pengutronix.de Date: Tue, 17 Oct 2023 13:35:14 +0200 Message-Id: <20231017113515.395026-1-ada@thorsis.com> Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [RFC PATCH 0/1] building qmake based target packages X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roelf-Erik Carsjens Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Hello everyone, I currently have some kind of weird requirement: building a target package with qmake, but not linking against Qt. It's a fork of RTKlib which is itself a university project (with hand written makefiles, but not for the part I'm interested in): https://github.com/rtklibexplorer/RTKLIB/releases/tag/b34h I actually achieved building it with the attached make rule. Note it has a dependency to QT5, but I had to manually add the Qt mkspec file ptxdist creates as an option to the _CONF_OPT variable. Two things are bad about this: 1.) I don't think it should be necessary to let the make rule set the correct mkspec file. There is only one and IMHO ptxdist should handle this internally if CONF_TOOL is qmake? 2.) rather large Qt libraries are installed to the target now. I guess I might be able to avoid this by setting 'select QT5 if BUILDTIME' in the in rule, but I would have expected HOST_QT5 to be sufficient. This does not work however for two reasons: a) ptxdist complains it needs QT5 if CONF_TOOL is qmake and b) if I only select HOST_QT5 that mkspec is not generated. I saw ptxdist having nearly zero packages selecting QT5, and none requiring HOST_QT5 (?) so it's difficult to learn from examples here. Maybe this usecase is quite esoteric? Don't know. In the end I would only need qmake, nothing more. That one generates a Makefile which is then used to compile the package. Would take directions to improve ptxdist for qmake based packages. Greets Alex Alexander Dahl (1): WIP: rtklib-demo5: Add new package rules/rtklib-demo5.in | 23 ++++++++++++++++ rules/rtklib-demo5.make | 58 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 rules/rtklib-demo5.in create mode 100644 rules/rtklib-demo5.make base-commit: 90875f8af4f6f1dd9f8eda71df8e8a90866f9839 -- 2.30.2