From: Henning Schild <henning.schild@siemens.com>
To: isar-users <isar-users@googlegroups.com>,
"Kiszka, Jan (CT RDA IOT SES-DE)" <jan.kiszka@siemens.com>
Subject: custom-kernel downgrade and linux-libc-dev
Date: Wed, 16 Jan 2019 17:27:24 +0100 [thread overview]
Message-ID: <20190116172724.7811cfba@md1za8fc.ad001.siemens.net> (raw)
Hi,
our custom kernel builds always generate a linux-libc-dev package
matching the kernel kernel version. So for a cip you would get
linux-libc-dev-4.4.xx.
Prebuild debian packages from upstream depend on a linux-libc-dev >=
<debian-expected-version>. I.e. you want build-essential in stretch,
you will end up with a "Depends: linux-libc-dev (>= 4.9.65-3)"
somewhere in your deps chain.
But if you are building a custom kernel lower than the expected version
you will end up with a smaller linux-libc-dev in the isar repo. And the
strong pinning will leave apt no choice but to give up and trying to
resolve the problem. So if you want to include i.e build-essential into
an image with a kernel downgrade, you will not be able to build that
image.
That issue is especially problematic since it will creap into the
buildchroot after the package was deployed by the first kernel build.
And you will end up with a setup where partial rebuilds involving
buildchroot changes will not work anymore.
In the layer i discovered this problem in i now remove the
linux-libc-dev package in a do_deploy_deb_prepend. That seems to be a
working hack for the downgrade case, but might not be the best idea for
an upgrade case.
But my current suggestion would be to ignore the whole issue of kernel
header compatibilty and never deploy the linux-libc-dev package from
custom kernel builds. Thoughts?
Henning
next reply other threads:[~2019-01-16 16:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-16 16:27 Henning Schild [this message]
2019-01-16 19:16 ` Jan Kiszka
2019-01-17 10:06 ` Henning Schild
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=20190116172724.7811cfba@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
/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