checkinstall: Make installwatch.so work with old Glibcs

+16
+4
pkgs/tools/package-management/checkinstall/default.nix
··· 29 29 30 30 # Fix a `conflicting types for 'scandir'' error on Glibc 2.11. 31 31 ./scandir.patch 32 + 33 + # Force use of old memcpy so that installwatch works on Glibc < 34 + # 2.14. 35 + ./use-old-memcpy.patch 32 36 ]; 33 37 34 38 buildInputs = [gettext];
+12
pkgs/tools/package-management/checkinstall/use-old-memcpy.patch
··· 1 + diff -ru -x '*~' checkinstall-1.6.2-orig/installwatch/installwatch.c checkinstall-1.6.2/installwatch/installwatch.c 2 + --- checkinstall-1.6.2-orig/installwatch/installwatch.c 2008-11-16 17:20:53.000000000 +0100 3 + +++ checkinstall-1.6.2/installwatch/installwatch.c 2013-03-15 13:50:12.717646381 +0100 4 + @@ -28,6 +28,8 @@ 5 + * <mail@fredemmott.co.uk> 6 + */ 7 + 8 + +asm (".symver memcpy, memcpy@GLIBC_2.2.5"); 9 + + 10 + #include <sys/param.h> 11 + #include <sys/types.h> 12 + #include <sys/stat.h>