From: Henning Schild <henning.schild@siemens.com>
To: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
Cc: Uladzimir Bely <ubely@ilbers.de>, isar-users@googlegroups.com
Subject: Re: Ignore a dependency
Date: Wed, 14 Sep 2022 10:34:42 +0200 [thread overview]
Message-ID: <20220914103442.6de4288e@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <CAJGKYO5Tm3qwWgCcwBS1pFQ4+67a3ZAEaU8zBMct7PkNr=23_Q@mail.gmail.com>
Am Tue, 13 Sep 2022 20:59:51 +0200
schrieb "Roberto A. Foglietta" <roberto.foglietta@gmail.com>:
> Dear Uladzimir and Henning,
>
> First of all thanks for your answers.
>
> I confirm that I did not found a straight forward way to do it. After
> all, it is not necessary also. Mainly because two reasons: 1. debian
> packages dependencies are sane and do not require any bypass; 2. the
> dpkg database is left with a unsatisfied dependency and this get
> bothering forever.
>
> Unfortunately, it is about a thirty party proprietary deb packages
> source.
>
> I am testing a fake .deb in which the postinst unpack the target .deb
> and it uses install to deploy the content in the rootfs. I hate to
> use this trick but I need just one file from that package.
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
Henning
> In brief, it does such a thing:
>
> set the resolv.conf
> apt update
> apt download
> dpkg -x
> install
> rm all
>
> Every suggestion will be appreciated.
>
> Best regards, R-
next prev parent reply other threads:[~2022-09-14 8:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-13 11:55 Roberto A. Foglietta
2022-09-13 12:53 ` Uladzimir Bely
2022-09-13 12:58 ` Roberto A. Foglietta
2022-09-13 13:09 ` Baurzhan Ismagulov
2022-09-13 13:09 ` Uladzimir Bely
2022-09-13 13:53 ` Henning Schild
2022-09-13 18:59 ` Roberto A. Foglietta
2022-09-14 8:34 ` Henning Schild [this message]
2022-09-14 18:42 ` Roberto A. Foglietta
2022-09-15 9:35 ` Henning Schild
2022-10-01 22:14 ` Roberto A. Foglietta
2022-10-01 23:10 ` Roberto A. Foglietta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220914103442.6de4288e@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=roberto.foglietta@gmail.com \
--cc=ubely@ilbers.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox