From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7142831999020957696 X-Received: by 2002:aa7:9218:0:b0:560:f3f1:d2d4 with SMTP id 24-20020aa79218000000b00560f3f1d2d4mr565360pfo.14.1664665841428; Sat, 01 Oct 2022 16:10:41 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a63:90c8:0:b0:439:398f:2004 with SMTP id a191-20020a6390c8000000b00439398f2004ls4335479pge.6.-pod-prod-gmail; Sat, 01 Oct 2022 16:10:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7froS1IneF8WPzBEDsA2Ijyg69dzVAUSxTJ3UJQdA8JZEz7vYyjf8k5/Njl82eS6JW7OoT X-Received: by 2002:a63:4e18:0:b0:43c:2fc7:2eea with SMTP id c24-20020a634e18000000b0043c2fc72eeamr13370851pgb.119.1664665840445; Sat, 01 Oct 2022 16:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664665840; cv=none; d=google.com; s=arc-20160816; b=y9r7FOM2QlfQffwEzSUah8RSnu8DrmCfs4VSR76nu8CW2rFUGFVKiUMJUOSIoCoAVI a+49HaV2u9E4IJRD6nLX7wwlEZFUVO6SXquGAWSC5asu7Jg5Au3NbEMJwi3e52ub1+qE yMs9NAgN4jGu17UPYXbKsf9VMG5QOq99FEoVbo6SA0UlIDgRbiK+ZNosGNEiaj+0GqSe JugBhrhYa5N7qvum1Yl1sUu8VO38AaMYmEuCn75B6FTFV+GnOHdFrcQVxnY4pbU6yxxS rCji4+LYJdpSUWVx3osceJHUKiq893I89YpzzoVfgl6AnVLjsSVFPTD87gDt8aYi7Owz HFZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=dhK+kL6hzeamzUA6x/49OAwb7BGDqyQYfjCqVgiRpls=; b=PAqmkQhzDH1mMnuPeWfIpOm6F9GLWRsmFDHA0pEEu+bK7uyTPbKMRE5kczvZ+yF25V 8btOq+pJUHndb4Evmch3AOPVChN8rdKu4d8akj9xkq3CP6kDRnhnEQpIEHkE8F9acD11 wqH4bAjoo7/0F4cWM1ztf/uqPFJB2yjvCaDTpKNZPy++6p9h/B4oVBhvcHCmMmkY68dL GX0y2JVzZR5FWXxlVGgufSDA2wvwGOFBgst7YlGAmNEGBhpT1Kbtj4qyIOpj0wUz+aGU 7Tj6iOYpD2QBtdKBMD/i5W3nUNp3MbcSZRel6UJWI7UgPLTOXou3PQvxluogAVs1yWsM Wp1Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SDyCCRYf; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d2c as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com. [2607:f8b0:4864:20::d2c]) by gmr-mx.google.com with ESMTPS id x14-20020a170902ec8e00b0017848b6f590si299544plg.6.2022.10.01.16.10.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 01 Oct 2022 16:10:40 -0700 (PDT) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d2c as permitted sender) client-ip=2607:f8b0:4864:20::d2c; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SDyCCRYf; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d2c as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-io1-xd2c.google.com with SMTP id 138so5819034iou.9 for ; Sat, 01 Oct 2022 16:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=dhK+kL6hzeamzUA6x/49OAwb7BGDqyQYfjCqVgiRpls=; b=SDyCCRYfy8NpxjrVIbP3ibUcUDHpk8rZdxuiS6Fk1/wLArdMq31+08o/dQJd9sG1ob WMMmiA6+3OPOLavhuG1UMvNLP5PsgtOO811nb/ij6jZ0/hnA9MB78UZoxBBzs+ZYxaay noxPVjVofTMGAM6udu8Jeq2vxAvHI2WJW35nJ1qY8vjcevXyh5AzoNj5JfUoHR1yUsBX 6qZEfbaK0yrxSu8zrwmt8t4vqEVWTgOav+XqPTrr1UzhvdN+YSDLyiZgec+9Dtcvr9J/ zeXN9a0hAiCUp/xP+KEqKRH03nmlzmv88bQh5WT86nktnoGtSFwEvKGY9EBL9WRZeAeN QVfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=dhK+kL6hzeamzUA6x/49OAwb7BGDqyQYfjCqVgiRpls=; b=rQvgZfF33d0Ld9OOB4Tu/ww68lXNpnFPBdmV48BtLnSJYAJTs13WBx06SyHb8aw4DC wGn8hF0dO8NOTt9R2JhHHpSJXxf6uhQXbvsC/p3eSoZgRMiDRQIqsHTkw07IIXSa01mW 35bSIgGBIValWvizk7Ux9W4Ix2xGwrG3/BSXMR2kCuTyzQgfZJmj5sEMl6EbPDzg4ibQ 6HrMnJkEwQ+TIDg3IrmZL2NnCNj9WlsVF6/Su5jwX0+F9KKPtqWvRQf2Yq0Wgw1g/BSN Xg1dazJa+z86VckhnpcG/iPPFWp9aPC3KdtNWfeI4GJgYKh6f2NWwLtUythZJjSCk5PM 3ipw== X-Gm-Message-State: ACrzQf3CaG4jQ5qK1DRIyhVudEkq7DryCk3w3/NUf/xC8l+daqQBLTKv W780Da7VgwvBVW7uxXl8JxoxtQHfRhV/73kMFlujPs702ef7 X-Received: by 2002:a05:6638:3043:b0:341:d8a4:73e8 with SMTP id u3-20020a056638304300b00341d8a473e8mr7629998jak.239.1664665839860; Sat, 01 Oct 2022 16:10:39 -0700 (PDT) MIME-Version: 1.0 References: <4717535.OV4Wx5bFTl@home> <20220913155324.1425d13a@md1za8fc.ad001.siemens.net> <20220914103442.6de4288e@md1za8fc.ad001.siemens.net> In-Reply-To: From: "Roberto A. Foglietta" Date: Sun, 2 Oct 2022 01:10:03 +0200 Message-ID: Subject: Re: Ignore a dependency To: Henning Schild Cc: Uladzimir Bely , isar-users@googlegroups.com Content-Type: multipart/alternative; boundary="0000000000000dff6405ea013871" X-TUID: f6KZfbW0Y+K/ --0000000000000dff6405ea013871 Content-Type: text/plain; charset="UTF-8" Il giorno dom 2 ott 2022 alle ore 00:14 Roberto A. Foglietta < roberto.foglietta@gmail.com> ha scritto: > > Il giorno mer 14 set 2022 alle ore 10:34 Henning Schild < henning.schild@siemens.com> ha scritto: > > > > You can always use dpkg-prebuilt where you download that package, > > binary patch it and later installed the modified copy with isar. > > However if you have a sources.list entry and that package can > > potentially get updated, you will not be able to make that hack stable. > > > > That is a pattern for a broken binary package which i had to get into > > a layer. > > > > do_binary_patch[cleandirs] += "${WORKDIR}/blabla-package" > > do_binary_patch() { > > sudo dpkg-deb -R ${WORKDIR}/blabla-package.deb ${WORKDIR}/blabla-package > > # do something funny with the control file, i.e. sed -i -e ... Depends > > sudo dpkg-deb -b ${WORKDIR}/blabla-package > > } > > addtask binary_patch after do_unpack before do_deploy_deb > > I am trying to fetch the package but I cannot, could you help me? > > SRC_URI = "apt://pippo-fs" > addtask apt_fetch before do_binary_patch > > ERROR: pippo-fs-1.0-r0 do_apt_fetch: ExecutionError('/build/tmp/work/debian-bullseye-amd64/pippo-fs/1.0-r0/temp/run.do_apt_fetch.100', 100, None, None) > ERROR: Logfile of failure stored in: /build/tmp/work/debian-bullseye-amd64/pippo-fs/1.0-r0/temp/log.do_apt_fetch.100 > Log data follows: > | DEBUG: Executing shell function do_apt_fetch > | Reading package lists... > | E: Unable to find a source package for pippo-fs > | ERROR: ExecutionError('/build/tmp/work/debian-bullseye-amd64/pippo-fs/1.0-r0/temp/run.do_apt_fetch.100', 100, None, None) > ERROR: Task (/build/../repo/recipes-support/nvidia-repack/pippo-fs.bb:do_apt_fetch) failed with exit code '1' > NOTE: Tasks Summary: Attempted 30 tasks of which 29 didn't need to be rerun and 1 failed. > > pippo-fs is a legit package that could be fetch if put into IMAGE_PREINSTALL > > Using do_fetch complains about checksum file > > bb.data_smart.ExpansionError: Failure expanding variable do_fetch[file-checksums], expression was ${@bb.fetch.get_checksum_file_list(d)} which triggered exception MalformedUrl: The URL: 'pippo-fs' is invalid and cannot be interpreted Even more interesting this simple recipe inherit dpkg-base SRC_URI = "apt://${PN}" download the package ONLY if the package is into the debian repository but NOT if the package is in a external repository defined into conf/ but available with IMAGE_PREINSTALL I have also tried to change the repository but it did not work either diff --git a/meta/classes/sbuild.bbclass b/meta/classes/sbuild.bbclass index a29b745..4fa6a46 100644 --- a/meta/classes/sbuild.bbclass +++ b/meta/classes/sbuild.bbclass @@ -55,7 +55,7 @@ EOF cp -rf "${SCHROOT_CONF}/sbuild" "${SBUILD_CONF_DIR}" sbuild_fstab="${SBUILD_CONF_DIR}/fstab" - fstab_baseapt="${REPO_BASE_DIR} /base-apt none rw,bind 0 0" + fstab_baseapt="${REPO_ISAR_DIR} /base-apt none rw,bind 0 0" grep -qxF "${fstab_baseapt}" ${sbuild_fstab} || echo "${fstab_baseapt}" >> ${sbuild_fstab} fstab_pkgdir="${WORKDIR} /home/builder/${PN} none rw,bind 0 0" --0000000000000dff6405ea013871 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Il giorno dom 2 ott 2022 alle ore 00:14 Roberto A. Fogliet= ta <roberto.foglietta@gma= il.com> ha scritto:
>
> Il giorno mer 14 set 2022 alle o= re 10:34 Henning Schild <h= enning.schild@siemens.com> ha scritto:
> >
> > You= can always use dpkg-prebuilt where you download that package,
> >= binary patch it and later installed the modified copy with isar.
> &= gt; However if you have a sources.list entry and that package can
> &= gt; potentially get updated, you will not be able to make that hack stable.=
> >
> > That is a pattern for a broken binary package wh= ich i had to get into
> > a layer.
> >
> > do_bi= nary_patch[cleandirs] +=3D "${WORKDIR}/blabla-package"
> &g= t; do_binary_patch() {
> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 sudo dpkg-d= eb -R ${WORKDIR}/blabla-package.deb ${WORKDIR}/blabla-package
> > = =C2=A0 =C2=A0 =C2=A0 =C2=A0 # do something funny with the control file, i.e= . sed -i -e ... Depends
> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 sudo dpkg-= deb -b ${WORKDIR}/blabla-package
> > }
> > addtask binary= _patch after do_unpack before do_deploy_deb
>
> I am trying to = fetch the package but I cannot, could you help me?
>
> SRC_URI = =3D "apt://pippo-fs"
> addtask apt_fetch before do_binary_p= atch
>
> ERROR: pippo-fs-1.0-r0 do_apt_fetch: ExecutionError(&#= 39;/build/tmp/work/debian-bullseye-amd64/pippo-fs/1.0-r0/temp/run.do_apt_fe= tch.100', 100, None, None)
> ERROR: Logfile of failure stored in:= /build/tmp/work/debian-bullseye-amd64/pippo-fs/1.0-r0/temp/log.do_apt_fetc= h.100
> Log data follows:
> | DEBUG: Executing shell function d= o_apt_fetch
> | Reading package lists...
> | E: Unable to find = a source package for pippo-fs
> | ERROR: ExecutionError('/build/t= mp/work/debian-bullseye-amd64/pippo-fs/1.0-r0/temp/run.do_apt_fetch.100'= ;, 100, None, None)
> ERROR: Task (/build/../repo/recipes-support/nvi= dia-repack/pippo-fs.bb:do_apt_fetch) failed with exit code '1'
&= gt; NOTE: Tasks Summary: Attempted 30 tasks of which 29 didn't need to = be rerun and 1 failed.
>
> pippo-fs is a legit package that cou= ld be fetch if put into IMAGE_PREINSTALL
>
> Using do_fetch com= plains about checksum file
>
> bb.data_smart.ExpansionError: Fa= ilure expanding variable do_fetch[file-checksums], expression was ${@bb.fet= ch.get_checksum_file_list(d)} which triggered exception MalformedUrl: The U= RL: 'pippo-fs' is invalid and cannot be interpreted

Even mor= e interesting this simple recipe

inherit dpkg-base
SR= C_URI =3D "apt://${PN}"

download the package ONLY if the p= ackage is into the debian repository but NOT if the package is in a externa= l repository defined into conf/ but available with IMAGE_PREINSTALL

I have also tried to change the repository but it did not= work either

diff --git a/meta/classes/sbuild.bbcl= ass b/meta/classes/sbuild.bbclass
index a29b745..4fa6a46 100644
--- a= /meta/classes/sbuild.bbclass
+++ b/meta/classes/sbuild.bbclass
@@ -55= ,7 +55,7 @@ EOF
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cp -rf "${SCHROOT= _CONF}/sbuild" "${SBUILD_CONF_DIR}"
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0sbuild_fstab=3D"${SBUILD_CONF_DIR}/fstab"
=C2=A0<= br>- =C2=A0 =C2=A0 =C2=A0 =C2=A0fstab_baseapt=3D"${REPO_BASE_DIR} /bas= e-apt none rw,bind 0 0"
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0fstab_baseapt= =3D"${REPO_ISAR_DIR} /base-apt none rw,bind 0 0"
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0grep -qxF "${fstab_baseapt}" ${sbuild_fstab}= || echo "${fstab_baseapt}" >> ${sbuild_fstab}
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fstab_pkgdir=3D"${WORKDIR} /home/bu= ilder/${PN} none rw,bind 0 0"

--0000000000000dff6405ea013871--