smartdenovo: added patch to fix compile error (debian) (#17435)

This commit is contained in:
darmac 2020-07-14 19:02:31 +08:00 committed by GitHub
parent a6abd530bd
commit fa614404e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,24 @@
diff -Nur smartdenovo/wtlay.h smartdenovo-new/wtlay.h
--- smartdenovo/wtlay.h 2020-07-09 02:47:13.503412360 +0800
+++ smartdenovo-new/wtlay.h 2020-07-09 02:49:02.775412360 +0800
@@ -503,17 +503,17 @@
return e2;
}
-inline int cut_biedge_strgraph_core(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx, int closed){
+static inline int cut_biedge_strgraph_core(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx, int closed){
edge_strgraph(g, node_id, dir, eidx)->closed = closed;
edge_partner_strgraph(g, node_id, dir, eidx)->closed = closed;
return 1;
}
-inline int cut_biedge_strgraph(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){
+static inline int cut_biedge_strgraph(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){
return cut_biedge_strgraph_core(g, node_id, dir, eidx, 1);
}
-inline int cut_biedge_strgraph2(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){
+static inline int cut_biedge_strgraph2(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){
return cut_biedge_strgraph_core(g, node_id, dir, eidx, 2);
}

View file

@ -17,8 +17,8 @@ class Smartdenovo(MakefilePackage):
depends_on('sse2neon', when='target=aarch64:') depends_on('sse2neon', when='target=aarch64:')
patch('aarch64.patch', when='target=aarch64:', patch('aarch64.patch', sha256='7dd4bca28aafb0680cc1823aa58ac9000819993538e92628554666c4b3acc470', when='target=aarch64:')
sha256='7dd4bca28aafb0680cc1823aa58ac9000819993538e92628554666c4b3acc470') patch('inline-limit.patch', sha256='9f514ed72c37cf52ee2ffbe06f9ca1ed5a3e0819dab5876ecd83107c5e5bed81')
def install(self, spec, prefix): def install(self, spec, prefix):
install_files = [ install_files = [