mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
libgpg-error: Add RISC-V patch.
This commit is contained in:
parent
529ea1f921
commit
09e57636f8
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, buildPackages, fetchurl, gettext
|
{ stdenv, buildPackages, fetchurl, gettext
|
||||||
, genPosixLockObjOnly ? false
|
, hostPlatform, genPosixLockObjOnly ? false
|
||||||
}: let
|
}: let
|
||||||
genPosixLockObjOnlyAttrs = stdenv.lib.optionalAttrs genPosixLockObjOnly {
|
genPosixLockObjOnlyAttrs = stdenv.lib.optionalAttrs genPosixLockObjOnly {
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
@ -24,6 +24,8 @@ in stdenv.mkDerivation (rec {
|
|||||||
sha256 = "1li95ni122fzinzlmxbln63nmgij63irxfvi52ws4zfbzv3am4sg";
|
sha256 = "1li95ni122fzinzlmxbln63nmgij63irxfvi52ws4zfbzv3am4sg";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = if hostPlatform.isRiscV then ./riscv.patch else null;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure
|
sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure
|
||||||
'' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
|
54
pkgs/development/libraries/libgpg-error/riscv.patch
Normal file
54
pkgs/development/libraries/libgpg-error/riscv.patch
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
commit b3e9ec5626d474c58e683a41d09576297d4acd3d
|
||||||
|
Author: Shea Levy <shea@shealevy.com>
|
||||||
|
Date: Sat Feb 24 21:12:44 2018 -0500
|
||||||
|
|
||||||
|
syscfg: Add lock-obj-pub file for riscv64-unknown-linux-gnu.
|
||||||
|
|
||||||
|
* src/syscfg/lock-obj-pub.riscv64-unknown-linux-gnu.h: new.
|
||||||
|
* src/Makefile.am (lock_obj_pub): Add it.
|
||||||
|
|
||||||
|
Signed-off-by: Shea Levy <shea@shealevy.com>
|
||||||
|
|
||||||
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||||
|
index 4446612..5a8cc43 100644
|
||||||
|
--- a/src/Makefile.in
|
||||||
|
+++ b/src/Makefile.in
|
||||||
|
@@ -65,6 +65,7 @@ lock_obj_pub = \
|
||||||
|
syscfg/lock-obj-pub.powerpc64-unknown-linux-gnu.h \
|
||||||
|
syscfg/lock-obj-pub.powerpc64le-unknown-linux-gnu.h \
|
||||||
|
syscfg/lock-obj-pub.powerpc-unknown-linux-gnuspe.h \
|
||||||
|
+ syscfg/lock-obj-pub.riscv64-unknown-linux-gnu.h \
|
||||||
|
syscfg/lock-obj-pub.s390x-ibm-linux-gnu.h \
|
||||||
|
syscfg/lock-obj-pub.sh3-unknown-linux-gnu.h \
|
||||||
|
syscfg/lock-obj-pub.sh4-unknown-linux-gnu.h \
|
||||||
|
diff --git a/src/syscfg/lock-obj-pub.riscv64-unknown-linux-gnu.h b/src/syscfg/lock-obj-pub.riscv64-unknown-linux-gnu.h
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..8aab9d6
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/src/syscfg/lock-obj-pub.riscv64-unknown-linux-gnu.h
|
||||||
|
@@ -0,0 +1,25 @@
|
||||||
|
+## lock-obj-pub.riscv64-unknown-linux-gnu.h
|
||||||
|
+## File created by gen-posix-lock-obj - DO NOT EDIT
|
||||||
|
+## To be included by mkheader into gpg-error.h
|
||||||
|
+
|
||||||
|
+typedef struct
|
||||||
|
+{
|
||||||
|
+ long _vers;
|
||||||
|
+ union {
|
||||||
|
+ volatile char _priv[40];
|
||||||
|
+ long _x_align;
|
||||||
|
+ long *_xp_align;
|
||||||
|
+ } u;
|
||||||
|
+} gpgrt_lock_t;
|
||||||
|
+
|
||||||
|
+#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \
|
||||||
|
+ 0,0,0,0,0,0,0,0, \
|
||||||
|
+ 0,0,0,0,0,0,0,0, \
|
||||||
|
+ 0,0,0,0,0,0,0,0, \
|
||||||
|
+ 0,0,0,0,0,0,0,0}}}
|
||||||
|
+##
|
||||||
|
+## Local Variables:
|
||||||
|
+## mode: c
|
||||||
|
+## buffer-read-only: t
|
||||||
|
+## End:
|
||||||
|
+##
|
Loading…
Reference in New Issue
Block a user