mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
b08754ba17
Apply some patches from arch to fix build with py3 scons on 15.0. Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
20 lines
789 B
Diff
20 lines
789 B
Diff
--- a/SConstruct 2021-10-31 20:42:44.232084185 -0400
|
|
+++ b/SConstruct 2021-10-31 20:42:54.063024444 -0400
|
|
@@ -36,7 +36,7 @@
|
|
with open(target[0].get_path(), "w") as fout:
|
|
fout.write("// autogenerated by scons Bin2H builder, do not edit by hand!\n\n")
|
|
|
|
- if env.has_key("BIN2H_NAMESPACE"):
|
|
+ if "BIN2H_NAMESPACE" in env:
|
|
fout.write("namespace %s {\n\n" % env["BIN2H_NAMESPACE"])
|
|
|
|
# write down data
|
|
@@ -62,7 +62,7 @@
|
|
for src in source], ",\n"))
|
|
fout.write("\n}\n\n")
|
|
|
|
- if env.has_key("BIN2H_NAMESPACE"):
|
|
+ if "BIN2H_NAMESPACE" in env:
|
|
fout.write("} // namespace %s\n\n" % env["BIN2H_NAMESPACE"])
|
|
|
|
fout.write("/* EOF */\n")
|