From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 12 Aug 2026 07:48:24 +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.96) (envelope-from ) id 1wu1p9-002EX2-2c for lore@lore.pengutronix.de; Wed, 12 Aug 2026 07:48:24 +0200 Received: from [127.0.0.1] (helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wu1p8-0005ts-9O; Wed, 12 Aug 2026 07:48:22 +0200 Received: from mx1.white.stw.pengutronix.de ([185.203.200.13]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wu1ob-0005tG-VE for ptxdist@pengutronix.de; Wed, 12 Aug 2026 07:47:50 +0200 Received: from drehscheibe.grey.stw.pengutronix.de (drehscheibe.grey.stw.pengutronix.de [IPv6:2a0a:edc0:0:c01:1d::a2]) (Authenticated sender: relay-from-drehscheibe.grey.stw.pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id A8302201D1C; Wed, 12 Aug 2026 07:47:49 +0200 (CEST) Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wu1ob-0014Ej-1o; Wed, 12 Aug 2026 07:47:49 +0200 Received: from mol by pty.whiteo.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1wu1ob-0000000DuUI-1v6M; Wed, 12 Aug 2026 07:47:49 +0200 Date: Wed, 12 Aug 2026 07:47:49 +0200 From: Michael Olbrich To: Artur Wiebe via ptxdist Message-ID: Mail-Followup-To: Artur Wiebe via ptxdist , Artur Wiebe References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-IRC: #ptxdist @freenode 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.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] 'ptxdist cargosync' cannot download missing crates since 2026.06.0 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: Artur Wiebe 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 Hi, On Sat, Jul 18, 2026 at 09:24:34PM +0200, Artur Wiebe via ptxdist wrote: > ptxdist cargosync iceoryx2 > > -------------------------- > target: iceoryx2.cargosync > -------------------------- > > > Reading Cargo.lock... > > Processing addr2line 0.25.1 ... > Downloading $(call ptx/mirror, CRATESIO, addr2line/0.25.1/download) ... This should be fixed now in master. Thanks for the report. Michael > > > Unknown URL Type! > URL: $(call > > make: *** [/usr/local/lib/ptxdist-2026.06.0/rules/post/ptxd_make_world_cargo.make:15: /home/dev/demo/root/platform-raspi4b/state/iceoryx2.cargosync] Error 1 > > > Here's the problem (according to Claude): > What broke: ptxdist cargosync downloads each crate from Cargo.lock into SRCDIR while generating iceoryx2.cargo.make. In ptxdist 2026.06.0, upstream commit ee282ffe7 ("setup: add mirror for crates.io", May 2026) changed the URL that cargosync uses for each crate from a real URL (https://crates.io/api/v1/crates///download) to the make expression $(call ptx/mirror, CRATESIO, //download). > Why that fails: that expression is only meaningful when make evaluates it — which happens later, in the normal get stage, when the generated .cargo.make is parsed. But cargosync itself runs as a shell script (ptxd_make_world_cargo_sync_package in scripts/lib/ptxd_make_world_cargo.sh) and passes the string unexpanded to ptxd_make_get, which only understands real URL schemes (http://, git://, …). It splits the string on spaces, sees $(call as the "URL", and dies with exactly your error — Unknown URL Type! URL: $(call. > The download is only attempted when the .crate file is missing from SRCDIR (if [ ! -e "${path}" ]), so upstream's own websocat.cargo.make etc. were regenerated on machines that already had all crates cached — that's presumably why the regression went unnoticed. I checked upstream git: there's no fix yet > > I hope it helps! > Artur > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |