aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2017-06-18 11:17:52 +0800
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2017-06-18 11:17:52 +0800
commit8d6e6ec28c3328c8711f744af1431a245c8f1ff6 (patch)
tree86c72d2800b335bd42871c14fb4c4ba604e7a383 /science
parentff057dbb67109167c7f993b06ee5b5d5a8bdae41 (diff)
downloadfreebsd-ports-gnome-8d6e6ec28c3328c8711f744af1431a245c8f1ff6.tar.gz
freebsd-ports-gnome-8d6e6ec28c3328c8711f744af1431a245c8f1ff6.tar.zst
freebsd-ports-gnome-8d6e6ec28c3328c8711f744af1431a245c8f1ff6.zip
- Fix compilation error (which presumably comes from a change in header files
associated with python2).
Diffstat (limited to 'science')
-rw-r--r--science/getdp/files/patch-Common_Message.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/science/getdp/files/patch-Common_Message.cpp b/science/getdp/files/patch-Common_Message.cpp
new file mode 100644
index 000000000000..339e28a1e0e4
--- /dev/null
+++ b/science/getdp/files/patch-Common_Message.cpp
@@ -0,0 +1,11 @@
+--- Common/Message.cpp.orig 2017-06-17 23:49:49 UTC
++++ Common/Message.cpp
+@@ -124,7 +124,7 @@ void Message::Initialize(int argc, char
+ std::vector<wchar_t*> wargv(argc ? argc : 1);
+ for(int i = 0; i < argc; i++)
+ wargv[i] = Py_DecodeLocale(argv[i], NULL);
+- Py_SetProgramName(wargv[0], NULL);
++ Py_SetProgramName(wargv[0]);
+ Py_InitializeEx(0);
+ PySys_SetArgv(argc, &wargv[0]);
+ #endif