From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7142831999020957696 X-Received: by 2002:a05:6870:610a:b0:126:a215:a401 with SMTP id s10-20020a056870610a00b00126a215a401mr3091598oae.63.1663180961379; Wed, 14 Sep 2022 11:42:41 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aca:abc9:0:b0:345:bc21:cf7a with SMTP id u192-20020acaabc9000000b00345bc21cf7als3673931oie.1.-pod-prod-gmail; Wed, 14 Sep 2022 11:42:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR5AgW+teXgz1xVkQpLq6qTNBGdD3bJxQ5j9m8gP5ZGjMqNIjic3V7Ubkzo9+X4FNL3uWlWX X-Received: by 2002:aca:338b:0:b0:34f:8e3f:62fb with SMTP id z133-20020aca338b000000b0034f8e3f62fbmr2550552oiz.120.1663180960760; Wed, 14 Sep 2022 11:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663180960; cv=none; d=google.com; s=arc-20160816; b=jFcBbIL2GR94d+UhaJUYTB8vTt0gpAZmYN5UxcgEWyHTRZHSRf3GokedCdCCYVjkQ8 nLCvy+zqD2r53AMFHsj0OFHJEdYJnvG0BVzWn3D+/dscrxcFVo8RPFl2wiCSXc8xnuwT 35bhYOTTY5qAbuWEWiCunUN2p+VWrd8RK7enIQhyVk+zoyy86N6cU9N2PPGt9Nh0Yu32 5loiIHKBO01fy3mMwu3KwiCKa6mQ58W1HrdI8JiJ/29/0wRoS7W9gRPCPTpVDVLwbcO1 6EuJIBb9JfRr5rX8zBa3Xigh4C6N1vA+TAzcPAez2t3r9GRFpKCEpYHqj67E4XmMr0EQ U9/g== 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=f382bAOG6LuEqlH7b0nE76gB2wUIZpxgMHgR0wdPrv0=; b=wyF5p2Ti7gn4m41q0OksTkFKAd2GhxrRLyerxtpoIV/88zE6BHzM7EzuWAW92Lvp3I sTDeQUWa5C/rlYBlSjEEMBzXmTTW85ZhoQHU5eU+IPwEeYVqkolSbiGY4LYgB6ufsRXa MxXniH3n4KuAAckv3dkZUzEtfM4P0AvIW8X0PkbChSXboTAKGmTvO4x0tkKWCgaiAO/4 Y2n4Z4FLINVR3ZhFGGlLlKp/UKKg6tFPfV9ENQFCG9BLL/HqDMwVQdREE2tnwLV6UNhB ACp3Z3thmpctaBOeNnqSfoLyT/0tRtlUAZtdW+AZV6UiKt7G1O8xuKo2EobJ0LxXlWsf 60Bw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=koNFBqPc; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d2d 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-xd2d.google.com (mail-io1-xd2d.google.com. [2607:f8b0:4864:20::d2d]) by gmr-mx.google.com with ESMTPS id g4-20020a544f84000000b0034483a5ef2dsi817249oiy.1.2022.09.14.11.42.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Sep 2022 11:42:40 -0700 (PDT) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d2d as permitted sender) client-ip=2607:f8b0:4864:20::d2d; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=koNFBqPc; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::d2d 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-xd2d.google.com with SMTP id g8so10408136iob.0 for ; Wed, 14 Sep 2022 11:42: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=f382bAOG6LuEqlH7b0nE76gB2wUIZpxgMHgR0wdPrv0=; b=koNFBqPcifuJdYf9JsIgWI5t0mMgdM+OZwaEpxOn5uppI5RObba4CCFz6Y+UZ+/E4K 8NPwZRCdgw4zM+WXM5PcxcET/Br8J/3qeGy6qKTu8gcvaMMlA1JOTFyXohpAvNM/Gu+I evn5oXeo0btvw7owGMdea/LCc4gmfgq7fJAxy4TAQHaFjk2asLaX1pe9c5jLlWRUN0ha 1ajSA+btKgNMC+ogqJqA/SK7cLrrySt2KZm/JjYjC+QMvi2znnyVLnKYhYqDx0mxd4Ww u+H+T5/TO512otF9tC8Iyt1YeDhlsnay4ZwNmxgPeT4X2dZLL8ZFyjYtrhADHFB2y0j7 kybw== 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=f382bAOG6LuEqlH7b0nE76gB2wUIZpxgMHgR0wdPrv0=; b=4QwHcYP8IvNW3bdHsUWuZa/9YZ9QUTMtFnnwxfGnxZlKfe7doWaUIFX2bqGmjYdxRv iYGv3y4pqtq32TohWQlqJWY/e2cIdZA9r1tKvggqtWeVAMyeRH3NCnxC1HOeim3wc2zI Ot1DO5ZeMQyeWPLYVodX7u7DbLHu1TjOU7v8mIzWgrn9l5V2OJ64/a70j13THa4p2Xh1 QoDoKxdaAnrvVCWM89p1EkGJHNtedrF/clpBhH09wv9aOEwS04w7taiVIQVuJfyWckCM 5FfMdUi9RcpO4v59U6H49Gm8pITY1tQ/JIEjaoOKKWy24/13lLWQVGeoJtUHmIXcWKJv o0HQ== X-Gm-Message-State: ACgBeo0e8/O3VByCvckDS3zZ9hy8ZXvBGgftosp9fJUyRtShMUW1X1Wq 8PllYsDtYAOWGYCIvUzMmAd0LriyLTCO2ZXhKzvwt1oZLg== X-Received: by 2002:a05:6638:1924:b0:35a:411a:b058 with SMTP id p36-20020a056638192400b0035a411ab058mr7256015jal.296.1663180958904; Wed, 14 Sep 2022 11:42:38 -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: <20220914103442.6de4288e@md1za8fc.ad001.siemens.net> From: "Roberto A. Foglietta" Date: Wed, 14 Sep 2022 20:42:25 +0200 Message-ID: Subject: Re: Ignore a dependency To: Henning Schild Cc: Uladzimir Bely , isar-users@googlegroups.com Content-Type: multipart/alternative; boundary="00000000000040b72305e8a77ecd" X-TUID: sJ79CIcLU2IH --00000000000040b72305e8a77ecd Content-Type: text/plain; charset="UTF-8" Il Mer 14 Set 2022, 10:34 Henning Schild ha scritto: > > 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 > Dear Henning, you got the point. I did not twsted yet but it looks promising. In the meantime I made may way as explained here below: > In brief, it does such a thing: > > > > set the resolv.conf > > apt update > > apt download > > dpkg -x > > install > > rm all > > > I am not particularly impressed by this way but for a sigle 3rd party package it can be acceptable. Your solution seems much more elegant. However, I started to write a class for doing this job and it seems an over-engineered solution but it is very good to learn some internal about Isar and bitbake. Both are valuable tools, so it is not wasted time. I bet thsr your proposed solution will win. Cheers, R- > --00000000000040b72305e8a77ecd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Il Mer 14 Set 2022, 10:34 Henning Schild <henning.schild@siemens.com> ha scritto:=

do_binary_patch[cleandirs] +=3D "${WORKDIR}/blabla-package"
do_binary_patch() {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 sudo dpkg-deb -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
<= /div>

Dear Henning,=C2= =A0

you got the point. I= did not twsted yet but it looks promising. In the meantime I made may way = as explained here below:

> In brief, i= t does such a thing:
>
> set the resolv.conf
> apt update
> apt download
> dpkg -x
> install
> rm all
>

I am not particularly impressed by this way but for a sigle 3rd party p= ackage it can be acceptable. Your solution seems much more elegant.

However, I started to write a c= lass for doing this job and it seems an over-engineered solution but it is = very good to learn some internal about Isar and bitbake. Both are valuable = tools, so it is not wasted time. I bet thsr your proposed solution will win= .

Cheers, R-
--00000000000040b72305e8a77ecd--