mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
checkinstall: Make installwatch.so work with old Glibcs
This commit is contained in:
parent
4c67972e9b
commit
82dc43c28b
2 changed files with 16 additions and 0 deletions
|
@ -29,6 +29,10 @@ stdenv.mkDerivation {
|
|||
|
||||
# Fix a `conflicting types for 'scandir'' error on Glibc 2.11.
|
||||
./scandir.patch
|
||||
|
||||
# Force use of old memcpy so that installwatch works on Glibc <
|
||||
# 2.14.
|
||||
./use-old-memcpy.patch
|
||||
];
|
||||
|
||||
buildInputs = [gettext];
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
diff -ru -x '*~' checkinstall-1.6.2-orig/installwatch/installwatch.c checkinstall-1.6.2/installwatch/installwatch.c
|
||||
--- checkinstall-1.6.2-orig/installwatch/installwatch.c 2008-11-16 17:20:53.000000000 +0100
|
||||
+++ checkinstall-1.6.2/installwatch/installwatch.c 2013-03-15 13:50:12.717646381 +0100
|
||||
@@ -28,6 +28,8 @@
|
||||
* <mail@fredemmott.co.uk>
|
||||
*/
|
||||
|
||||
+asm (".symver memcpy, memcpy@GLIBC_2.2.5");
|
||||
+
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
Loading…
Reference in a new issue