On Thu, Jul 24, 2008 at 10:53 PM, Karel Zak <kzak@xxxxxxxxxx> wrote: > I was trying to build util-linux-ng on uclibc and it failed [...] > which is understood because versionsort is GNU extension and uclibc does > not implement it. > > diff --git a/lib/strverscmp.c b/lib/strverscmp.c > new file mode 100644 > index 0000000..7de473b > --- /dev/null > +++ b/lib/strverscmp.c > @@ -0,0 +1,120 @@ > +/* Compare strings while treating digits characters numerically. > + Copyright (C) 1997, 2002 Free Software Foundation, Inc. > + This file is part of the GNU C Library. How do you propose to keep the file in util-linux-ng up-to-date when the version in glibc changes? The glibc version will eventually get new features and bugfixes. Yes, I know that Linux systems running glibc will be using the glibc version of the file, and that having an old version of this file for the benefit of other systems is better than nothing, but I am interested in how we can solve the whole problem. James. -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html