File 0001-Fix-call-template-deduction-for-OSX.patch of Package pothos

From 42fbce17c8a8c2c0e86469c0f9d130452d7a2052 Mon Sep 17 00:00:00 2001
From: Josh Blum <josh@joshknows.com>
Date: Sun, 23 Aug 2020 16:22:59 -0500
Subject: [PATCH 1/2] Fix call() template deduction for OSX

---
 Changelog.txt  | 5 +++++
 PythonInfo.cpp | 8 ++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/python/Changelog.txt b/python/Changelog.txt
index ca52ab3..3f8e3ff 100644
--- a/python/Changelog.txt
+++ b/python/Changelog.txt
@@ -1,5 +1,10 @@
 This this the changelog file for the Pothos Python toolkit.
 
+Release 0.4.2 (pending)
+==========================
+
+- Fix call() template deduction for OSX
+
 Release 0.4.1 (2020-07-19)
 ==========================
 
diff --git a/python/PythonInfo.cpp b/python/PythonInfo.cpp
index af77a13..32a7d90 100644
--- a/python/PythonInfo.cpp
+++ b/python/PythonInfo.cpp
@@ -24,11 +24,11 @@ static std::string __getPythonInfoJSON()
     auto& versionInfo = pythonInfo["Version Info"];
 
     auto sysVersionInfo = sys.get("version_info");
-    versionInfo["Major"] = sysVersionInfo.call<int>("__getitem__", 0);
-    versionInfo["Minor"] = sysVersionInfo.call<int>("__getitem__", 1);
-    versionInfo["Patch"] = sysVersionInfo.call<int>("__getitem__", 2);
+    versionInfo["Major"] = sysVersionInfo.call<int, int>("__getitem__", 0);
+    versionInfo["Minor"] = sysVersionInfo.call<int, int>("__getitem__", 1);
+    versionInfo["Patch"] = sysVersionInfo.call<int, int>("__getitem__", 2);
     versionInfo["Release Level"] = sysVersionInfo.call<std::string>("__getitem__", 3);
-    versionInfo["Serial"] = sysVersionInfo.call<int>("__getitem__", 4);
+    versionInfo["Serial"] = sysVersionInfo.call<int, int>("__getitem__", 4);
 
     auto fullVersionString = sys.get<std::string>("version");
     versionInfo["Version String"] = fullVersionString.substr(0, fullVersionString.find(" "));
-- 
2.28.0

openSUSE Build Service is sponsored by