[patch] Remove unused code

Ralf Corsepius rc040203 at freenet.de
Tue Jun 13 03:45:49 PDT 2006


Hi,

tools/genpkglist.cc and tools/gensrclist.cc both apply
scandir and alphasort.

tools/gensrclist.cc unconditionally expects the system libs to provide
them.

tools/genpkglist.cc, however contains some broken magic to conditionally
build local versions, seemingly "borrowed from glibc", seemingly aiming
at supporting ancient glibc-based systems.

Nowadays, systems not shipping scandir and alphasort have become rare.
Given the facts, gensrclist.cc had been shipped without local versions
of scandir/alphasort for quite a while, the configuration magic in
apt-repomd being broken, and seemingly nobody having tripped of this
issue, IMO justifies to remove the code in question.

=> I am proposing the patch enclosed below.

Ralf



-------------- next part --------------
A non-text attachment was scrubbed...
Name: apt-rpm-rc-20060613-2.diff
Type: text/x-patch
Size: 2064 bytes
Desc: not available
URL: <http://lists.laiskiainen.org/pipermail/apt-rpm-laiskiainen.org/attachments/20060613/9579b33f/attachment-0002.bin>


More information about the Apt-Rpm mailing list