On Mar 26, Dimitri John Ledkov <x...@ubuntu.com> wrote:

> Is it possible to rewrite the code to only use perl-base? without the
> full perl?
Probably it would not be too hard to reimplement what File::Find::Rule 
does and remove these dependencies. Maybe by running find(1).

> Or maybe even pure dash or C?
Hard to believe.

> Can we vendor the needed perl bits, and then remove them from disk if
> the conversion was successful?
I am not sure how much space this would save, do you want to try? Add:

use lib "/usr/lib/usrmerge/lib/";

and then start copying the dependencies to the directory until it 
works... (Also, there is App::FatPacker.)

I do not know about Ubuntu, but I do not think that a self-modifying 
package would be be following Debian policy.

> Can we add a usrmerge-completed package, which is empty, but ensures
> in preinst that the system is usrmerged? That way in minimal
> containers said package will be preinstalled by default
> satifying/providing usrmerge.
Sure: since you apparently have a design in mind, could you provide 
a rough patch?
Which packages do you think would depend on it?

> At the moment, I'm trying to make usrmerge required such that systems
> that upgrade get it installed, but it is becomming problematic on the
> minimal containers. Especially, since after installation its no longer
> needed.
I am all for improving Debian and Ubuntu to make them optimal for 
building tiny containers, but I am not sure that it is a good idea to 
do this by spending time adding complexity and bugs to usrmerge which is 
not even supposed to be installed on them since it is only needed for 
the one time conversion.

-- 
ciao,
Marco

Attachment: signature.asc
Description: PGP signature

Reply via email to