On Thu, 5 Jan 2023 at 13:52, Guillem Jover <guil...@debian.org> wrote:

> Control: tags -1 - patch
>
> Hi!
>
> On Sat, 2016-06-18 at 23:19:16 +0300, Konstantin Khlebnikov wrote:
> > Here is tiny patch which adds new option dpkg-deb
> --compress-program=<prog>
> > Program is executed as a filter with single argument: compression level
> -0 .. -9
>
> The code is not reaping the child, nor closing the file descriptors,
>

Oh, maybe. I just slammed it together to show simple solution.

There was no ready to use library solution for parallel compression.
I was limited by the technology of my time. Maybe nowadays it is invented.


> this is covered in fd_fd_filter(), but…
>
> > So, any existing parallel compression tool (pigz/pbzip2/pxz/pixz)
> > could be used here.
> > Of course compression type (-Z) must match. Such compression might not
> > suit for official
> > builds because it have lower ratio, but will save tons of time for
> > building debug packages.
>
> …this is the main problem I have with such patch, that you can specify
> any random program and it might or might not match the intended
> compression. Also as stated previously several of these tool generate
> output that is not ideal anyway.
>

Well, misconfiguration isn't a big deal.
Dpkg could easily validate magic afterwards.

Just to be clear - I have zero interest now.
That's trivial matter, so anybody could finish that.


>
> Thanks,
> Guillem
>

Reply via email to