dino: fix build with vala-c update (#309265)
This commit is contained in:
@@ -34,6 +34,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-smy/t6wTCnG0kuRFKwyeLENKqOQDhL0fZTtj3BHo6kw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fixes build failure https://github.com/dino/dino/issues/1576
|
||||
# backport of https://github.com/dino/dino/commit/657502955567dd538e56f300e075c7db52e25d74
|
||||
./fix-compile-new-vala-c.diff
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# don't overwrite manually set version information
|
||||
substituteInPlace CMakeLists.txt \
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
diff --git a/plugins/gpgme-vala/vapi/gpgme_public.vapi b/plugins/gpgme-vala/vapi/gpgme_public.vapi
|
||||
index bcf12569..b32efd03 100644
|
||||
--- a/plugins/gpgme-vala/vapi/gpgme_public.vapi
|
||||
+++ b/plugins/gpgme-vala/vapi/gpgme_public.vapi
|
||||
@@ -22,9 +22,9 @@ public class Key {
|
||||
public string issuer_name;
|
||||
public string chain_id;
|
||||
public Validity owner_trust;
|
||||
- [CCode(array_null_terminated = true)]
|
||||
+ [CCode(array_length = false, array_null_terminated = true)]
|
||||
public SubKey[] subkeys;
|
||||
- [CCode(array_null_terminated = true)]
|
||||
+ [CCode(array_length = false, array_null_terminated = true)]
|
||||
public UserID[] uids;
|
||||
public KeylistMode keylist_mode;
|
||||
// public string fpr; // requires gpgme >= 1.7.0
|
||||
Reference in New Issue
Block a user