Hi Marcelo! On Fri, 2010-04-02 at 22:55:38 -0600, Marcelo E. Magallon wrote: > somewhere I read that a reimplementation of mksplit.pl in C was > needed in order to remove a dependency of dpkg on Perl, but I > can't find the reference anymore.
The main reasons for this are to not be subject to the perl upgrade problems as seen in 489132, to couple those perl programs more tightly with the rest of the C parts, to be able to reuse parts of the code, for example there's programs that could benefit from a shared library for update-alternativesy, and to be able to remove perl-base from essential some day which would make life for embedded distros easier. There's other small programs in essential which would be nice to get rewritten [0], another problematic package is adduser, although right now I think most of the missing features have been implemented directly in the shadow package. [0] <http://lists.debian.org/debian-devel/2008/08/msg00517.html> (Err, yeah should have finished them long time ago...) > Anyways, attached is a patch to do just that. It's implemented > against the master Git branch. As indicated in the patch, this > is a straight translation and it would like to have some > refactoring love. I did compare the output with the Perl > version in several test cases and it's identical. Ouch :(, first of all thanks for the patches, although I already had this written in C integrated directly in dpkg-split in my pu/c-rewrite branch [1], although not yet merged, there were still some rough egdes I wanted to polish first. And second sorry for the duplicated work. I thought I had written this down on the wiki at least, but it seems not, I might have commented it on the list and on IRC. Will amend the wiki right now, and will take a look at the patches later to see what can be reused. [1] <http://git.hadrons.org/?p=debian/dpkg/dpkg.git;a=heads> thanks, guillem -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

