From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 04 Nov 2022 20:13:13 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) 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 1or27s-00FDZv-Va for lore@lore.pengutronix.de; Fri, 04 Nov 2022 20:13:13 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1or27s-0006aZ-9o; Fri, 04 Nov 2022 20:13:12 +0100 Received: from mout.kundenserver.de ([212.227.126.134]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1or27F-0006aQ-6c for ptxdist@pengutronix.de; Fri, 04 Nov 2022 20:12:33 +0100 Received: from methusalix.internal.home.lespocky.de ([92.117.48.222]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MrQN5-1pL7sI3T1T-00oYBv; Fri, 04 Nov 2022 20:12:29 +0100 Received: from falbala.internal.home.lespocky.de ([192.168.243.94]) by methusalix.internal.home.lespocky.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1or274-0007yp-Di; Fri, 04 Nov 2022 20:12:28 +0100 Date: Fri, 4 Nov 2022 20:12:21 +0100 From: Alexander Dahl To: ptxdist@pengutronix.de Message-ID: Mail-Followup-To: ptxdist@pengutronix.de, "Gieseler, Christian" References: <75f0b7f568884d33af8f5c6bc23bd5dd@eks-engel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VosVOdzrsaVSGk30" Content-Disposition: inline In-Reply-To: <75f0b7f568884d33af8f5c6bc23bd5dd@eks-engel.de> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/2.0.5 (2021-01-21) X-Scan-Signature: 5c90b70f3d424fa9e0e0d920389857b9 X-Provags-ID: V03:K1:vUwiCb6N2KI1KCAfw63OdcNxOKScD60XXYtTBPE3JNN2wytH3sZ e8Vlw8eYdROzdktSYrYQbO2ToIsNPv5JPVExRZbJO3DdIbzMPjYa9xpetz/ytmtRKst7yQw 93vjsVY4220d2rANI/S4GLChikypa3oQ9gG3FQPbgxfZ6bo6snvesp8CCXAtKGFokD7YWe6 dOywiD+91xuHEvX5TRuUQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:FvMmNBcDKlA=:dWJp8q9Sbf2O3H0anhJsa7 tWq2UIx9AVfEXlTdWbykQ04VtfuTMM89Erw3j3+ecsWrcBpW6Gjg4GYBHP3e1e2+tSVyFPW9E JfSiCnfXnQcsR2G87Ef3bsybhw2IMYRk64kDkbPwTW2vTdt8UxzlboksSBNC4r2pcfa+LfcPq fNsZ2I7qqexgXfc4DL+IsgR3nH0LNhWREDTPv1+equT3RIfqemHhpwHnz44zpM1pPNnZDX1am tuYKhnu/0/D3LmGNCGBSy0SByZnNsBg1c9OJeK/cJiRJEq+2o1nllSEweLlGCBbj4BheMLSbA xIS9bfq3OErGt91G83E/llNt3Eksc979x1ZTSWi2JxKdyPFz0e/Do0csm2aCSMQ6fVa/H1DAT QotiwgalH+wgc3gFPHjljNDHOcg4G+mUI9X9IYUdZfL40LEF6VvniuDTG7nLjIU+B2vU+lXJo lruY9zG4m42HXPnDHBpw0Q8kzfdB8F4XMlgYG+AOgGLvoS59RoWrhOgvqvEOHkwBOloaB7Kfw HFa4vFZI2y7pfG+Wxp13UfBDd3akk3tWib9+6TCXNRJqxCX+MUd+VlikZMSioLZTyrMQw3zb9 khMgzMQRsHWKdQ4QENpN2MRLGQLINqHVCbQFeIAz2B91h2aPiAON79jAubBKpuM0tPKCdX/mp Q0iZob1vc89CzOoAJzDL8OfL1YcmH5a+8Hz/Eftq7HQ8zIcRBfcemYsfRqY1KECyDgjFPMAD+ qzVvKgnL/rg6w1rsxIHY6h/0O1yML+plCFMfETszYcb9ebugpt+QwsE7Pd0d7iYxUDSPGR3Ml Ms+jUIQ X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] Speed up targetinstall of certain 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: "Gieseler, Christian" 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.ext.pengutronix.de); SAEximRunCond expanded to false --VosVOdzrsaVSGk30 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Christian, Am Fri, Nov 04, 2022 at 03:37:02PM +0000 schrieb Gieseler, Christian: > Hello, >=20 > I have question regarding the speedup of daily work. >=20 > We have frontend and backend of our webgui deployed with separate package= s. Only task of these package is to deploy the files with=20 >=20 > @$(call install_tree, web-frontend, -, -, $(WEB_FRONTEND_DIR)/var-www/, /= var/www/,no) >=20 > Compile and install stages are empty. The just call targetinfo and touch = to skip the stages. >=20 > The frontend depends on the backend and the backend obviously depends on = our application which is called by the backend.=20 > So our web-frontend.in file looks like this: > ## SECTION=3Dproject_specific >=20 > config WEB_FRONTEND > bool > select APP_LAYER > select WEB_BACKEND > prompt "e-mode Web Frontend" > help >=20 > As expected if i clean and compile APP_LAYER the targetinstallstage of Ba= ckend and Frontend are executed again. However this is only a Run-Time only= dependency. It is a third-party archive and install_tree takes quite some = time even on fast build hosts. Even it if is just a minute it is annoying t= o spend the time waiting during image creation. Trying to solve that i foun= d "if RUNTIME" f=FCr Run-Time only Dependencys in the documentation here: >=20 > https://www.ptxdist.org/doc/daily_work_section.html#controlling-package-d= ependencies-in-more-detail >=20 > So my expectation would be that if i change the webfrontend.in file like = this: >=20 > config WEB_FRONTEND > bool > select APP_LAYER if RUNTIME > select WEB_BACKEND if RUNTIME > prompt "e-mode Web Frontend" > help That sounds reasonable and I would have done it the same. > The "if RUNTIME" would make sure that the targetinstall stage is not exec= uted again if i just execute a "ptxdist clean app-layer" followed by a "ptx= dist images". Same with ptxdist clean root; ptxdist images. It is clear tha= t all targetinstall stages are executed again, but i would expect that the = web-frontend is deployed earlier if no build dependency is given. >=20 > Am i missing something, oder is the "if RUNTIME" Switch not working prope= rly in my ptxdist-2018.12 version? Or does it have no effect on targetinsta= ll stages? Not sure how that should behave. However if you want to speed up the build: make sure you call ptxdist with -q or --quiet parameter. The output on screen takes suprisingly much time, even with modern terminals, and especially when doing targetinstall of many many files (as usually the case with web frontends. been there, done that.) Greets Alex >=20 > Thanks for any feedback. > BR, > Christian --=20 /"\ ASCII RIBBON | =BBWith the first link, the chain is forged. The first \ / CAMPAIGN | speech censured, the first thought forbidden, the X AGAINST | first freedom denied, chains us all irrevocably.=AB / \ HTML MAIL | (Jean-Luc Picard, quoting Judge Aaron Satie) --VosVOdzrsaVSGk30 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEwo7muQJjlc+Prwj6NK3NAHIhXMYFAmNlZBEACgkQNK3NAHIh XMZ34Q/9EpPU8r/LhHOlPsMJ0TmPFQDLq95AEjXraT+a/NoJggic/+bbxYVNKraU oojCXDpiwFupnSxp84biFU1it20XpkXMeKdUca3r355FAd5M+zU8Ouw3p1xM9e6q ClPqL2L3TTn7IfyMYrLVuu0P/XcimTJmG0q55ZE6cfv9W2czQvpukLu43jl86E9r xD4PgunwFZekqGS00usPB4oFyDnmBmoTJInT7ximKuVZeI6VUTXMRYAEqasgqJOO +EqvpPaVmENGE8nlNE/UVxrXe535Zf1OePvxZP0Ij5eTdh5OUEcgRXUYJYuM/OFp U41n4qLUbtPLOjKpKrtek+aHdCGXstjua6+FvQeLXM+1K2uWhurF7JNmkxamWWkA 1MjSOooZHLdn4/G2Z3vjUyv7+VwcTKS8PxAIT+NJ124mdfXGz9mv182P3xQE7U3m GOeyg8/zo+vFxYtbiZWlVlSvR0xXpCPDoH+EBWCvkXjW7Ifq/RfCaSv7FwztBL4r IJhHrKQQr0ghpqT8MdzCkRJqKKuA4hdY/9+a7P7YXIrEBOWSW9St5vsoC9smsqGl okYVYh0OEJPyYi1c84BcSk5VzGwKODZFkLVNLVZENZLGP1EZCetAPD6sJJbumH5e 6vXI7FfhTuUrYl+sPLuXUTfj7vWS3baJbW4Z3Jq8bisZ7ztgoWk= =ck6a -----END PGP SIGNATURE----- --VosVOdzrsaVSGk30--