From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 30 Jul 2026 09:19:26 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ej1-f61.google.com (mail-ej1-f61.google.com [209.85.218.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 66U7JPAa023055 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 30 Jul 2026 09:19:25 +0200 Received: by mail-ej1-f61.google.com with SMTP id a640c23a62f3a-c1c25c44d15sf210341866b.1 for ; Thu, 30 Jul 2026 00:19:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1785395960; cv=pass; d=google.com; s=arc-20260327; b=PCiK2I50upRNMAT1cePqHaQIbn8VaLgnuqs4gqnllxx2akcKJCYq1/y3fv7FYYIhze m08a2TIbN0VyWDeUqdiwpG1GNRaRf4T/A+Dutbc3L2AoAH8FOy11kWvgnLpc9OImC3an U6nFgM8wVE89fOQKJGnJEHBmOJ1UdQMKv1loekScLxVHkfY6LSOQd5gAnkd7mQbRberg PhkPRce+jIbXIY1KJ+p11CwuIo4TPDghWMHqcK1cFBOUYhsh0ZU4/nLwslWa77R7Jc93 abuRndtEupg1acYhztJBWztntF01a9uAyl3rUSdhufXjopQW0BZ2KHwllWG0wYgrqiRW hslQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=7MeqsYAY/aC6+A8oiXrBgVXz9Z0ZpklLkSnUR2/NARA=; fh=jm/MXXlm49qMDMr5a2UuTLQEqZ9UCOi5Vc6GpM206Uw=; b=QvFjFFR3Ofx6eEvA2SjRwpkza9QDV/aU2Sa7aux4Z6qXaT2h4hf/kT3Kfuw7QvbDdb AuTzy4h2ZA8SPOi/2T2kcBgjq0NLYS/cMOGrTC3XqTGu21EajQIjWVXTLO+p8t3SQX14 GOKLETHr/kSBrj1tNnSj/fAwNML8l+gR9hXMma/j/C5isPgf4ny80mJVL181oeWcJfl6 N/UOY2sy7D7Qvy9RweRrxdtR+QOil4JFFlY0884Dy523cbl+PzNb8lo+g2v+k2/wve52 RPSPBzivzipEPTVtZ6ADqBo/GYIuUuKMAdEJro+OpOX9vRONtEcnTCN2A0/Ea0P/Jcyg ehpQ==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=akarpovich@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1785395960; x=1786000760; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-type :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to:content-type; bh=7MeqsYAY/aC6+A8oiXrBgVXz9Z0ZpklLkSnUR2/NARA=; b=xWv1iVJ9r8dPVRLEUSXDi0XCEavRiJjYUyXgV2Rx3YfZwQz2jUYEkondwWJZR3qkfn kggh/rXl7EZjYTYwaDpBsmscpak+rE7psLWOzLWiE5eva5a2Nhi72vSe3pT2wuKKTocG 8UZiHugiBkl8NQTm1aSSPWzFqb+6MX1oHF9FGmllldVtRBeXKY+AmXPHUIDHMGKcHsya xd0BM40hk8YITAgPBG8hbCyyMoFE5elQZuM1ZQd5MyCrGX/oEfKPfEs+JLbrhrJ2l8aN IjvrfqmiwuZZuLElLB2D9gqn0do0Ied9F2sd/8n0nSjXiSuC4pSAZICo9X0qjXseeXmv zH/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785395960; x=1786000760; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :content-type:x-original-authentication-results:x-original-sender :mime-version:message-id:date:subject:cc:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to:content-type; bh=7MeqsYAY/aC6+A8oiXrBgVXz9Z0ZpklLkSnUR2/NARA=; b=YmjImp7bu83X8YRIi+H8eoK3jCIP4/TDTHNXvDR2SksRXxeTC/CrV2gMfM6JIOsvTR OXRUOodON/QNuKkXWrszAYOD/0g6utNrQjhIreGaXNprDDssJkxCiidJYy8Kktr7Xbgv wKfPAjT1K7f7G3DZvckFhZaS80KxnS847KNxZZDjOVXVOHA9A2Mu8QdUH5eUsetO5leZ Nk6DiY4YBRK8C8u3jMKm5wwDjkWVVcbIn1TqmF7hL0Ch7tJn6KtYpbiBx+vcXRL/5KGM IolnKNzC4t6snoYYBYK/lOvBDCnARuqmmb3vuR0bYMovjCr3u8ovW6Rkuh+SPV0ZNTBW zjpw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AHgh+RqD9DTJ3qYp6XveAxcfhNUqEmJmlR+Hd+L3wAsNnQzZ1rpKwxrce4AojX1WaxZgMpkDqHee@ilbers.de X-Gm-Message-State: AOJu0YyDzY1uOkZv/QGYHFA8P2Sybco5CCwaiI1zr3d7ZIMIcLsZNmpf t8j4qECveVBZm2nvRM3EiIbomkEf5OCPPOJKoPhlQzsW3pVyvMdMmnMM X-Received: by 2002:a05:6402:455b:b0:69f:b4f4:4ebb with SMTP id 4fb4d7f45d1cf-6a07b84ed37mr498075a12.36.1785395960185; Thu, 30 Jul 2026 00:19:20 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="Aa7YSPQlAmz7mIoiB6Ja81APi7d08HMvbbYnnrGMPbZOukizlA==" Received: by 2002:a05:6402:a2ce:10b0:697:59b1:5eb9 with SMTP id 4fb4d7f45d1cf-6a0794c9731ls750302a12.2.-pod-prod-03-eu; Thu, 30 Jul 2026 00:19:18 -0700 (PDT) X-Received: by 2002:a05:6402:159b:b0:6a0:7a06:3031 with SMTP id 4fb4d7f45d1cf-6a07b7c34camr651667a12.3.1785395958241; Thu, 30 Jul 2026 00:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1785395958; cv=none; d=google.com; s=arc-20260327; b=aQ0iEper75OB0vjRiYX7sxak/OAzeg18vPWrCDLxIl0Jp2f5higEe76qMm6suvi6Wx Ror+gGnC+0ltJwdit1CE6677uyIWnYTWtKDui1XKVlPKalWtTcsurLyoOZCUg3vt8Svd NoFc6SCOeLINuUF6fUJucEknHo48U1tTkCOu6c3pFLr/xjQz3Rl2zkEiVhQfmJcQBiqc PkbLIwOzq1wrGeNPyreRVdLq+HysmuKm+xqveYCNjKO53nkIS0KmwOihQML/zcdCWgzf oN4KsvGW8UfsdWgvrh0rWHhfuokpoMxB/+7ldCQS6RYp9ScbZy1/E8kjpZZGqMXeZB2+ 9OWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=u1vGG7se/4EvQ74VZwL1qat596omzv1HiISfLnEL460=; fh=u+3kXEMzY4uVhDBiujW2QUo7NnpMLrGEgMQBYpCTRN4=; b=KkiDXID+r4WIODQep/LGunjTjOrfwFMj0Ln2Dr6uD5zrH9AzPcKP8p/P/OKRzPtmEf GAjGG7hsQ0/bHyu71fDN1t3mnSeio0U9F60BS7kpnFe8UH+Bb+YOfK21aLHe6zv9Z1/Z 2ACbuAUNTDOEIGgPRRX7JblzSwOoXKY77iPdAmdFvTPhUCvSIyBa9gxGjvExL6Xmijtl Nvgp92SVFoNNli+pQjtzNQjuuG1/lUinhTVMqfM6WorpbPewPDAA2mqKRTCTIWkvpQKl blO7xO9mit2f1PuXDks3jLljjtiH2YGfUlBGI+hVifl7Iew2nDdUyvKpRIPiEBTr3F3F k7QA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=akarpovich@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 4fb4d7f45d1cf-6a07d3a2d99si16098a12.3.2026.07.30.00.19.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Jul 2026 00:19:18 -0700 (PDT) Received-SPF: pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from akarpovich-Victus-by-HP-Laptop-16-e0xxx.promwad.corp (62.122.174.6.serverel.net [62.122.174.6] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 66U7J2k2023044 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Jul 2026 09:19:17 +0200 From: Aliaksei Karpovich To: isar-users@googlegroups.com Cc: Aliaksei Karpovich Subject: [1/1] rootfs: Use curl instead of apt download Date: Thu, 30 Jul 2026 09:17:10 +0200 Message-ID: <20260730071848.2521390-1-akarpovich@ilbers.de> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: akarpovich@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=akarpovich@ilbers.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: JjbEAhBLLFuB It fixes two issues: 1) Current implementation extracts package name from URL and gets it along with percent-encoding which leads to following error: | DEBUG: Executing shell function rootfs_install_pkgs_isar_download | Starting pkgProblemResolver with broken count: 0 | Starting 2 pkgProblemResolver with broken count: 0 | Done | E: Unable to locate package libstdc%2b%2b-12-dev | E: Unable to locate package g%2b%2b-12 | E: Unable to locate package g%2b%2b To fix it the second field (extracted by sed) will be used as deb file name. 2) In case of cross compile the arch of package is lost. F.e. the gcc-14-base_14.2.0-19_arm64.deb will be transformed in gcc-14-base name and amd64 version will be downloaded instead of arm64. With this fix the specified version of deb package will be downloaded as the URL is used for download. Signed-off-by: Aliaksei Karpovich --- meta/classes-recipe/rootfs.bbclass | 5 +++-- meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/meta/classes-recipe/rootfs.bbclass b/meta/classes-recipe/rootfs.bbclass index 77e6aefc..2a2dead8 100644 --- a/meta/classes-recipe/rootfs.bbclass +++ b/meta/classes-recipe/rootfs.bbclass @@ -370,14 +370,15 @@ rootfs_install_pkgs_isar_download() { # Command apt-get install do not cache packages from local repos # We can obtain non cached package URIs by recalling install command here # No need in export those files to dl_dir, so we can run it right after + # Sed below extracts URL and name of deb packages for curl to download. rootfs_cmd --bind "${ROOTFSDIR}/var/cache/apt/archives" /var/cache/apt/archives \ --bind "${WORKDIR}/dpkg/lock" /var/lib/dpkg/lock \ --bind "${WORKDIR}/dpkg/lock-frontend" /var/lib/dpkg/lock-frontend \ --chdir "/var/cache/apt/archives" \ ${ROOTFSDIR} \ -- /usr/bin/sh -c "apt-get ${ROOTFS_APT_ARGS} --print-uris ${ROOTFS_PACKAGES} | \ - sed -n \"s|^.*/\\(.*\\)_[^_]*_[^_]*\\.deb'.*|\\1|p\" | \ - xargs -r apt-get download" + sed -En \"s/^'([^']+\.deb)' ([^ ]+).*/\1 -o \2/p\" | \ + xargs -r -L1 curl" } ROOTFS_INSTALL_COMMAND += "${@ 'rootfs_install_clean_files' if (d.getVar('ROOTFS_CLEAN_FILES') or '').strip() else ''}" diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc index 994da174..a8afb0a6 100644 --- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc +++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc @@ -9,7 +9,7 @@ inherit bootstrap inherit compat inherit deb-dl-dir -DISTRO_BOOTSTRAP_BASE_PACKAGES += "locales apt" +DISTRO_BOOTSTRAP_BASE_PACKAGES += "locales apt curl" DISTRO_BOOTSTRAP_BASE_PACKAGES:append:https-support = " ca-certificates" BOOTSTRAP_TMPDIR = "${WORKDIR}/tempdir" -- 2.43.0 -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260730071848.2521390-1-akarpovich%40ilbers.de.