tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
sratoolkit: fix build due to undefined ATTRIBUTE_UNUSED
t4ccer
5 months ago
d1d1d334
dc963787
+16
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
sr
sratoolkit
attribute_unused.patch
package.nix
+14
pkgs/by-name/sr/sratoolkit/attribute_unused.patch
···
1
1
+
diff --git a/libs/kxml/xml.c b/libs/kxml/xml.c
2
2
+
index ce445424..41e21612 100644
3
3
+
--- a/libs/kxml/xml.c
4
4
+
+++ b/libs/kxml/xml.c
5
5
+
@@ -46,6 +46,9 @@ struct s_KNodeNamelist;
6
6
+
#include <assert.h>
7
7
+
#include <string.h>
8
8
+
9
9
+
+#ifndef ATTRIBUTE_UNUSED
10
10
+
+#define ATTRIBUTE_UNUSED
11
11
+
+#endif
12
12
+
13
13
+
#define XML_DEBUG(msg) DBGMSG (DBG_XML, DBG_FLAG(DBG_XML_XML), msg)
14
14
+
+2
pkgs/by-name/sr/sratoolkit/package.nix
···
25
25
hash = "sha256-OeM4syv9c1rZn2ferrhXyKJu68ywVYwnHoqnviWBZy4=";
26
26
};
27
27
28
28
+
patches = [ ./attribute_unused.patch ];
29
29
+
28
30
cmakeFlags = [
29
31
"-DVDB_INCDIR=${ncbi-vdb}/include"
30
32
"-DVDB_LIBDIR=${ncbi-vdb}/lib"