Skip to content

Commit 90d98aa

Browse files
committed
Fixed #define names for the C code (meson problem)
1 parent 65e7688 commit 90d98aa

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

cma/cmainit.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
from hbring import HbRing
4343
from transaction import NetTransaction
4444

45-
NEOVERSION = "3.5.12"
45+
NEOVERSION = "3.5.18"
4646
NEOEDITION = "enterprise"
4747

4848

@@ -506,16 +506,17 @@ def delete_all(self, json=None):
506506
"""
507507
qstring = "match (n) optional match (n)-[r]-() delete n,r"
508508

509-
# print("qstring is %s" % qstring, file=stderr)
509+
print("qstring is %s" % qstring, file=stderr)
510510
start =time.time()
511-
# print("delete_all: self.db is %s" % self.db, file=stderr)
511+
print("delete_all: self.db is %s" % self.db, file=stderr)
512512
while True:
513513
try:
514514
result = self.db.run(qstring)
515515
# print(f"Waited {time.time()-start:.1f} seconds for neo4j to clean out database.")
516516
break
517517
except NeoExceptions.ServiceUnavailable as oops:
518-
pass
518+
print("Waiting for Neo4j to come up...")
519+
time.sleep(10)
519520
if CMAdb.debug:
520521
CMAdb.log.debug(
521522
"Cypher query to delete all relationships"

cma/neo4j.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class NeoDockerServer(NeoServer):
121121
"""
122122

123123
edition_map = {"community": "", "enterprise": "-enterprise"}
124-
good_versions = {"3"}
124+
good_versions = {"3", "4"}
125125

126126
initial_password_command = ["neo4j-admin", "set-initial-password"]
127127

@@ -175,6 +175,7 @@ def __init__(
175175
"yes" if accept_license else "no"
176176
)
177177
assert accept_license
178+
print(f"DIR: {dir(self)}")
178179

179180
self.host = host
180181
self.root_directory = root_directory
@@ -390,7 +391,7 @@ def is_password_set(self):
390391
:return:bool: True if password already set
391392
"""
392393
name, _, extra = self._getpass()
393-
extra = extra.strip()
394+
extra = extra.strip() if extra else ""
394395
return name is not None and not extra
395396

396397
def _unlink_auth_info(self):
@@ -463,7 +464,7 @@ def stupid_docker_test():
463464
# print(NeoDockerServer())
464465
# print(NeoDockerServer(edition="enterprise", accept_license=True))
465466
# print(NeoDockerServer(edition="enterprise", version="3.5.0", accept_license=True))
466-
neo4j = NeoDockerServer(edition="enterprise", version="3.5.6", accept_license=True)
467+
neo4j = NeoDockerServer(edition="enterprise", version="4.1.1", accept_license=True)
467468
print("Now RUNNING:", neo4j)
468469
neo4j.start(restart_if_running=False)
469470
print("Is Neo4j running?", neo4j.is_running())

docker/nanoprobe/meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ static_deps = [
5252

5353
config_data = configuration_data({
5454
# Things the C code needs
55+
'LICENSE_SHORT': 'GPLv3+',
56+
'LICENSE_LONG': 'GNU Public License Version 3 or later',
5557
'PUBKEYSUFFIX': '.pub',
5658
'PRIVATEKEYSUFFIX': '.secret',
5759
'CMAADDR': '224.0.2.5:1984',

include/projectcommon.h.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,18 @@
9393

9494

9595
#define DIRDELIM "@DIRDELIM@"
96-
#define DISCOVERY_DIR "@DISCOVERYINSTALL@"
97-
#define BPINSTALL_DIR "@BPINSTALL@"
98-
#define QUERYINSTALL_DIR "@QUERYINSTALL@"
99-
#define MONRULEINSTALL_DIR "@MONRULEINSTALL@"
96+
#define DISCOVERY_DIR "@DISCOVERY_DIR@"
97+
#define BPINSTALL_DIR "@BPINSTALL_DIR@"
98+
#define QUERYINSTALL_DIR "@QUERYINSTALL_DIR@"
99+
#define MONRULEINSTALL_DIR "@MONRULEINSTALL_DIR@"
100100
#define NOTIFICATION_SCRIPT_DIR "@NOTIFICATION_SCRIPT_DIR@"
101101
#define CRYPTKEYDIR "@CRYPTKEYDIR@"
102102
#define NEO4JCREDFILENAME "@NEO4JCREDFILENAME@"
103103
#define PUBKEYSUFFIX "@PUBKEYSUFFIX@"
104104
#define PRIVATEKEYSUFFIX "@PRIVATEKEYSUFFIX@"
105105
#define CMAADDR "@CMAADDR@"
106106
#define NANOLISTENADDR "@NANOLISTENADDR@"
107-
#define VERSION_STRING "@PROJVERS@"
107+
#define VERSION_STRING "@VERSION_STRING@"
108108
#define SHORT_LICENSE_STRING "@LICENSE_SHORT@"
109109
#define LONG_LICENSE_STRING "@LICENSE_LONG@"
110110
#define CMAINITFILE "@CMAINITFILE@"

0 commit comments

Comments
 (0)