[focal][PATCH] builddeb: allow selection of .deb compressor
Guo-Rong Koh
guorong.koh at canonical.com
Tue Jul 25 03:28:03 UTC 2023
On Tue, 2023-07-25 at 11:18 +0900, Masahiro Yamada wrote:
> On Tue, Jul 25, 2023 at 10:23 AM Masahiro Yamada
> <masahiro.yamada at canonical.com> wrote:
> >
> > On Mon, Jul 24, 2023 at 11:32 PM Dimitri John Ledkov
> > <dimitri.ledkov at canonical.com> wrote:
> > >
> > > Hi,
> > >
> > > On Mon, 24 Jul 2023 at 09:24, Masahiro Yamada
> > > <masahiro.yamada at canonical.com> wrote:
> > > >
> > > > From: Michał Mirosław <mirq-linux at rere.qmqm.pl>
> > > >
> > > > [ Upstream commit 1a7f0a34ea7d05d1ffcd32c9b1b4e07ac0687538 ]
> > > >
> > > > Select deb compression using KDEB_COMPRESS make variable. This
> > > > allows to
> > > > use gzip compression for local or test builds, and that's way
> > > > faster
> > > > than now-default xz compression.
> > > >
> > > > Signed-off-by: Michał Mirosław <mirq-linux at rere.qmqm.pl>
> > > > Signed-off-by: Masahiro Yamada <masahiroy at kernel.org>
> > > > Signed-off-by: Masahiro Yamada <masahiro.yamada at canonical.com>
> > > > ---
> > > >
> > > > This is not a bug-fix, but this is useful to speed-up 'make
> > > > bindeb-pkg'.
> > > >
> > >
> > > However in Ubuntu, we don't use this ever, and should not be
> > > using it,
> > > as that does not at all produce any sort of packages we like or
> > > want.
> > >
> > > Can you please explain how or why you are using these upstream
> > > scripts
> > > that do not produce neither Ubuntu nor Debian compliant
> > > kernel.deb
> > > packages that correctly integrate with our OS?
> >
> >
> > It is true that 'make bindeb-pkg' is unofficial in Ubuntu,
> > but it is useful to build a linux-image deb package incrementally.
> >
> > I had a kernel micro-talk "Fast rebuilding kernel packages"
> > in Prague back in May.
> >
> > Please see Page 11 of the slide PDF if you are interested.
> >
> > KDEB_COMPRESS is available in jammy or later.
> >
> > I locally apply this patch to focal variants.
> >
> >
> > Again, it is just an unofficial tip to work efficiently.
> > It is understandable if this is rejected,
> > but I thought it could be acceptable as it is just
> > one-liner backport from the mainline.
>
>
>
> BTW, this is kind of official in Debian
> because 'make deb-pkg' is documented in
> Debian Administrator's Handbook.
>
> https://debian-handbook.info/browse/stable/sect.kernel-
> compilation.html#sect.kernel-build
>
>
> I do not know if it is documented somewhere in Ubuntu doc,
> but I can install a package created by 'make (bin)deb-pkg'.
@xnox
This is a development vs delivery question.
IoT developers are frequently in need of fast iterative development
cycles for hardware enablement.
If the patch can help improve that cycle _without_ impacting normal
kernel delivery and/or packaging, then I ask it be considered for
inclusion.
regards,
Guo-Rong
More information about the kernel-team
mailing list