Ian Jackson <[EMAIL PROTECTED]> wrote: > Jim Meyering writes ("Re: willing to contribute verrevcmp to gnulib?"): >> Ben Pfaff <[EMAIL PROTECTED]> wrote: >> > Hi Ian. The GNU gnulib project is considering adding a function >> > that would compare strings in the same way that dpkg compares >> > version numbers, as you can see in the thread here: >> > http://permalink.gmane.org/gmane.comp.lib.gnulib.bugs/14693 >> > >> > Is there a chance that you would be willing to contribute to the >> > FSF the actual code from dpkg for this? (Otherwise, we will >> > probably have one person write a formal specification for the >> > version comparison algorithm, and then another person implement >> > something equivalent from that specification.) >> > >> > Thanks, >> > >> > Ben. >> >> Hi Ian, >> >> Perhaps you didn't see the message quoted above? >> We're about to re-implement verrevcmp from scratch, >> but you might be able to save us the trouble. > > You're right, I didn't see it. Thanks for the chase. > > What is the licence on gnulib ?
Depending on the code: GPL, LGPL, LGPLv2+. For this function, LGPL or LGPLv2+ would be appropriate, since it's intended to replace glibc's strverscmp.