uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
37
pkgs/development/libraries/libsigsegv/default.nix
Normal file
37
pkgs/development/libraries/libsigsegv/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, stdenv, fetchurl
|
||||
, enableSigbusFix ? false # required by kernels < 3.18.6
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libsigsegv";
|
||||
version = "2.14";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/libsigsegv/libsigsegv-${version}.tar.gz";
|
||||
sha256 = "sha256-zaw5QYAzZM+BqQhJm+t5wgDq1gtrW0DK0ST9HgbKopU=";
|
||||
};
|
||||
|
||||
patches = if enableSigbusFix then [ ./sigbus_fix.patch ] else null;
|
||||
|
||||
doCheck = true; # not cross;
|
||||
|
||||
meta = {
|
||||
homepage = "https://www.gnu.org/software/libsigsegv/";
|
||||
description = "Library to handle page faults in user mode";
|
||||
|
||||
longDescription = ''
|
||||
GNU libsigsegv is a library for handling page faults in user mode. A
|
||||
page fault occurs when a program tries to access to a region of memory
|
||||
that is currently not available. Catching and handling a page fault is
|
||||
a useful technique for implementing pageable virtual memory,
|
||||
memory-mapped access to persistent databases, generational garbage
|
||||
collectors, stack overflow handlers, distributed shared memory, and
|
||||
more.
|
||||
'';
|
||||
|
||||
license = lib.licenses.gpl2Plus;
|
||||
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
8
pkgs/development/libraries/libsigsegv/sigbus_fix.patch
Normal file
8
pkgs/development/libraries/libsigsegv/sigbus_fix.patch
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
--- a/src/signals.h 2017-08-23 14:07:05.000000000 +0100
|
||||
+++ b/src/signals.h 2017-08-23 14:06:53.000000000 +0100
|
||||
@@ -18,4 +18,4 @@
|
||||
/* List of signals that are sent when an invalid virtual memory address
|
||||
is accessed, or when the stack overflows. */
|
||||
#define SIGSEGV_FOR_ALL_SIGNALS(var,body) \
|
||||
- { int var; var = SIGSEGV; { body } }
|
||||
+ { int var; var = SIGSEGV; { body } var = SIGBUS; { body } }
|
||||
Loading…
Add table
Add a link
Reference in a new issue