Re: perl necessary for debootstrap, why?

2021-06-05 Thread Adam Borowski
On Sat, Jun 05, 2021 at 10:03:55AM +0200, Marc Haber wrote:
> On Fri, 4 Jun 2021 21:54:16 +0200, RhineDevil
>  wrote:
> >I've looked up /usr/share/debootstrap/functions and I've seen some perl code
> >What does this code do exactly and why wasn't it translated to shell?

> Writing it in shell would probably be way slower.

And debootstrap is already unbearably slow.

I don't think it's a good use of your time to work on improving it, though. 
We already have mmdebstrap functional -- it's an order of magnitude faster
than debootstrap.  It should just be integrated into d-i and the like.

Then there's my zdebootstrap (unfinished PoC) that's extra two orders of
magnitude faster than that.  I had no time to hack on it in a while, though.

Thus, I guess you'd want to adapt mmdebstrap to your needs.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀ The oldest dated printed book includes the following license grant:
⣾⠁⢠⠒⠀⣿⡁   Reverently made for universal free distribution by Wang Jie
⢿⡄⠘⠷⠚⠋⠀   on behalf of his two parents on the 15th of the 4th moon of
⠈⠳⣄   the 9th year of Xiantong [11 May 868].



Re: perl necessary for debootstrap, why?

2021-06-05 Thread Marc Haber
On Fri, 4 Jun 2021 21:54:16 +0200, RhineDevil
 wrote:
>I've looked up /usr/share/debootstrap/functions and I've seen some perl code
>Can I know why perl is a requirement if pkgdetails.c is not found?
>What does this code do exactly and why wasn't it translated to shell?

As far as I remember, the perl code is used to resolve the package
dependencies for the stage 1 install where no Debian-specific thing
other than debootstrap is expected to be present.

Writing it in shell would probably be way slower.

Greetings
Marc
-- 
-- !! No courtesy copies, please !! -
Marc Haber |   " Questions are the | Mailadresse im Header
Mannheim, Germany  | Beginning of Wisdom " | 
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834



perl necessary for debootstrap, why?

2021-06-04 Thread RhineDevil
I've looked up /usr/share/debootstrap/functions and I've seen some perl code
Can I know why perl is a requirement if pkgdetails.c is not found?
What does this code do exactly and why wasn't it translated to shell?


pgpGr5PTgqWTj.pgp
Description: Firma digitale OpenPGP