Bug#1017446: debian-policy: stress that preinst script that install by using base64 decode on self an elf binary is not a good stuff
On Wed, Aug 17, 2022 at 08:09:09AM +0000, roucaries bastien wrote:
> Le mar. 16 août 2022 à 13:22, Sam Hartman <hartmans@debian.org> a écrit :
> > >>>>> "Bastien" == Bastien Roucariès <rouca@debian.org> writes:
> > Bastien> I will like to stress that this kind of stuff is bad:
> > Bastien> https://salsa.debian.org/debian/isa-support/-/blob/master/debian/altivec-support.preinst.in#L10
> >
> > How would you do better in that instance?
> > I think everyone knows it's bad, but I'm guessing that the maintainer
> > didn't have a better approach for detecting whether the referenced
> > instructions worked on the installed system.
> The problem is the base64 encoded binary.
>
> I ma solving this by pre-depends on a binary package and run the
> binary from the preinstalled package.
So you think having 10 binary packages instead of 5, all of them shipping
just a single file, and a Pre-Depends between them, is preferable to
unpacking a temporary file?
The choice was obvious to me.
Meow!
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁
⢿⡄⠘⠷⠚⠋⠀ You're alive. But that's just a phase.
⠈⠳⣄⠀⠀⠀⠀
Reply to: