diff options
author | stephen <stephen@FreeBSD.org> | 2017-06-18 11:17:52 +0800 |
---|---|---|
committer | stephen <stephen@FreeBSD.org> | 2017-06-18 11:17:52 +0800 |
commit | 143659f7a166b2c20722bee4e5fd99a334bc9872 (patch) | |
tree | 86c72d2800b335bd42871c14fb4c4ba604e7a383 /science | |
parent | f3b79536770ae284eff458f39a7f2bd69775974c (diff) | |
download | freebsd-ports-gnome-143659f7a166b2c20722bee4e5fd99a334bc9872.tar.gz freebsd-ports-gnome-143659f7a166b2c20722bee4e5fd99a334bc9872.tar.zst freebsd-ports-gnome-143659f7a166b2c20722bee4e5fd99a334bc9872.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.cpp | 11 |
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 |