diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-21 21:44:48 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-21 21:44:48 +0100 |
commit | d51fe7680c5270ddf8d324bbe11caab6d1e27ade (patch) | |
tree | a895b5889d79dbbb9aa52995fcac4816acfa07c1 /app-misc/ola/files | |
parent | 7d52991b5dce3a07be15d3cbbf06abb3fc08cb9c (diff) |
gentoo auto-resync : 21:08:2023 - 21:44:47
Diffstat (limited to 'app-misc/ola/files')
-rw-r--r-- | app-misc/ola/files/ola-0.10.8-python_version_check.patch | 31 | ||||
-rw-r--r-- | app-misc/ola/files/ola-0.10.9-nullptr.patch | 214 |
2 files changed, 214 insertions, 31 deletions
diff --git a/app-misc/ola/files/ola-0.10.8-python_version_check.patch b/app-misc/ola/files/ola-0.10.8-python_version_check.patch deleted file mode 100644 index a4a82f916fa0..000000000000 --- a/app-misc/ola/files/ola-0.10.8-python_version_check.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- a/python/ola/OlaClient.py -+++ b/python/ola/OlaClient.py -@@ -952,7 +952,7 @@ - controller = SimpleRpcController() - request = Ola_pb2.DmxData() - request.universe = universe -- if sys.version >= '3.2': -+ if sys.version_info[:3] >= (3,2): - request.data = data.tobytes() - else: - request.data = data.tostring() ---- a/python/ola/PidStore.py -+++ b/python/ola/PidStore.py -@@ -645,7 +645,7 @@ - (self.name, self.min)) - - try: -- if sys.version >= '3.2': -+ if sys.version_info[:3] >= (3,2): - data = struct.unpack('%ds' % arg_size, bytes(arg, 'utf8')) - else: - data = struct.unpack('%ds' % arg_size, arg) -@@ -668,7 +668,7 @@ - except struct.error as e: - raise UnpackException(e) - -- if sys.version >= '3.2': -+ if sys.version_info[:3] >= (3,2): - return value[0].rstrip(b'\x00').decode('utf-8') - else: - return value[0].rstrip(b'\x00') diff --git a/app-misc/ola/files/ola-0.10.9-nullptr.patch b/app-misc/ola/files/ola-0.10.9-nullptr.patch new file mode 100644 index 000000000000..d0efb84dce8d --- /dev/null +++ b/app-misc/ola/files/ola-0.10.9-nullptr.patch @@ -0,0 +1,214 @@ +--- a/common/web/JsonTest.cpp ++++ b/common/web/JsonTest.cpp +@@ -560,7 +560,7 @@ + #ifdef __FreeBSD__ + OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(0), + #else +- OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(NULL), ++ OLA_ASSERT_EQ(static_cast<JsonValue*>(NULL), + #endif // __FreeBSD__ + string1.LookupElement(invalid_pointer)); + +@@ -580,7 +580,7 @@ + #ifdef __FreeBSD__ + OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(0), + #else +- OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(NULL), ++ OLA_ASSERT_EQ(static_cast<JsonValue*>(NULL), + #endif // __FreeBSD__ + object.LookupElement(invalid_pointer)); + +@@ -605,7 +605,7 @@ + #ifdef __FreeBSD__ + OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(0), + #else +- OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(NULL), ++ OLA_ASSERT_EQ(static_cast<JsonValue*>(NULL), + #endif // __FreeBSD__ + array->LookupElement(invalid_pointer)); + +@@ -619,14 +619,14 @@ + #ifdef __FreeBSD__ + OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(0), + #else +- OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(NULL), ++ OLA_ASSERT_EQ(static_cast<JsonValue*>(NULL), + #endif // __FreeBSD__ + array->LookupElement(one_past_last)); + + #ifdef __FreeBSD__ + OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(0), + #else +- OLA_ASSERT_EQ(reinterpret_cast<JsonValue*>(NULL), ++ OLA_ASSERT_EQ(static_cast<JsonValue*>(NULL), + #endif // __FreeBSD__ + array->LookupElement(invalid)); + +--- a/ola/AutoStart.cpp ++++ b/ola/AutoStart.cpp +@@ -113,7 +113,7 @@ + #ifdef __FreeBSD__ + reinterpret_cast<char*>(0)); + #else +- reinterpret_cast<char*>(NULL)); ++ static_cast<char*>(NULL)); + #endif // __FreeBSD__ + OLA_WARN << "Failed to exec: " << strerror(errno); + _exit(1); +--- a/olad/plugin_api/UniverseTest.cpp ++++ b/olad/plugin_api/UniverseTest.cpp +@@ -635,7 +635,7 @@ + #ifdef __FreeBSD__ + reinterpret_cast<const RDMResponse*>(0))); + #else +- reinterpret_cast<const RDMResponse*>(NULL))); ++ static_cast<const RDMResponse*>(NULL))); + #endif // __FreeBSD__ + + // ok, now try something that returns a response from the port +@@ -661,7 +661,7 @@ + #ifdef __FreeBSD__ + reinterpret_cast<const RDMResponse*>(0))); + #else +- reinterpret_cast<const RDMResponse*>(NULL))); ++ static_cast<const RDMResponse*>(NULL))); + #endif // __FreeBSD__ + + // now try a broadcast fan out +@@ -694,7 +694,7 @@ + #ifdef __FreeBSD__ + reinterpret_cast<const RDMResponse*>(0))); + #else +- reinterpret_cast<const RDMResponse*>(NULL))); ++ static_cast<const RDMResponse*>(NULL))); + #endif // __FreeBSD__ + + // now confirm that if one of the ports fails to send, we see this response +@@ -722,7 +722,7 @@ + #ifdef __FreeBSD__ + reinterpret_cast<const RDMResponse*>(0))); + #else +- reinterpret_cast<const RDMResponse*>(NULL))); ++ static_cast<const RDMResponse*>(NULL))); + #endif // __FreeBSD__ + + // DUB responses are slightly different +@@ -746,7 +746,7 @@ + #ifdef __FreeBSD__ + reinterpret_cast<const RDMResponse*>(0))); + #else +- reinterpret_cast<const RDMResponse*>(NULL))); ++ static_cast<const RDMResponse*>(NULL))); + #endif // __FreeBSD__ + + // now check that we still get a RDM_DUB_RESPONSE even if one port returns an +@@ -767,7 +767,7 @@ + #ifdef __FreeBSD__ + reinterpret_cast<const RDMResponse*>(0))); + #else +- reinterpret_cast<const RDMResponse*>(NULL))); ++ static_cast<const RDMResponse*>(NULL))); + #endif // __FreeBSD__ + + // and the same again but the second port returns +@@ -788,7 +788,7 @@ + #ifdef __FreeBSD__ + reinterpret_cast<const RDMResponse*>(0))); + #else +- reinterpret_cast<const RDMResponse*>(NULL))); ++ static_cast<const RDMResponse*>(NULL))); + #endif // __FreeBSD__ + + // now the first port returns a RDM_TIMEOUT +@@ -808,7 +808,7 @@ + #ifdef __FreeBSD__ + reinterpret_cast<const RDMResponse*>(0))); + #else +- reinterpret_cast<const RDMResponse*>(NULL))); ++ static_cast<const RDMResponse*>(NULL))); + #endif // __FreeBSD__ + + // finally if neither ports support the DUB, we should return that +@@ -828,7 +828,7 @@ + #ifdef __FreeBSD__ + reinterpret_cast<const RDMResponse*>(0))); + #else +- reinterpret_cast<const RDMResponse*>(NULL))); ++ static_cast<const RDMResponse*>(NULL))); + #endif // __FreeBSD__ + + universe->RemovePort(&port1); +--- a/plugins/spi/SPIOutputTest.cpp ++++ b/plugins/spi/SPIOutputTest.cpp +@@ -160,7 +160,7 @@ + OLA_ASSERT_EQ(5u, backend.Writes(0)); + + // Check nothing changed on the other output. +- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL), ++ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL), + backend.GetData(1, &length)); + OLA_ASSERT_EQ(0u, backend.Writes(1)); + } +@@ -210,7 +210,7 @@ + OLA_ASSERT_EQ(3u, backend.Writes(0)); + + // Check nothing changed on the other output. +- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL), ++ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL), + backend.GetData(1, &length)); + OLA_ASSERT_EQ(0u, backend.Writes(1)); + } +@@ -265,7 +265,7 @@ + OLA_ASSERT_EQ(4u, backend.Writes(0)); + + // Check nothing changed on the other output. +- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL), ++ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL), + backend.GetData(1, &length)); + OLA_ASSERT_EQ(0u, backend.Writes(1)); + } +@@ -312,7 +312,7 @@ + OLA_ASSERT_DATA_EQUALS(EXPECTED4, arraysize(EXPECTED4), data, length); + + // Check nothing changed on the other output. +- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL), ++ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL), + backend.GetData(1, &length)); + OLA_ASSERT_EQ(0u, backend.Writes(1)); + } +@@ -371,7 +371,7 @@ + OLA_ASSERT_EQ(4u, backend.Writes(0)); + + // Check nothing changed on the other output. +- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL), ++ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL), + backend.GetData(1, &length)); + OLA_ASSERT_EQ(0u, backend.Writes(1)); + } +@@ -421,7 +421,7 @@ + OLA_ASSERT_DATA_EQUALS(EXPECTED4, arraysize(EXPECTED4), data, length); + + // Check nothing changed on the other output. +- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL), ++ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL), + backend.GetData(1, &length)); + OLA_ASSERT_EQ(0u, backend.Writes(1)); + } +@@ -517,7 +517,7 @@ + + // test6 + // Check nothing changed on the other output. +- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL), ++ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL), + backend.GetData(1, &length)); + OLA_ASSERT_EQ(0u, backend.Writes(1)); + +@@ -707,7 +707,7 @@ + + // test6 + // Check nothing changed on the other output. +- OLA_ASSERT_EQ(reinterpret_cast<const uint8_t*>(NULL), ++ OLA_ASSERT_EQ(static_cast<const uint8_t*>(NULL), + backend.GetData(1, &length)); + OLA_ASSERT_EQ(0u, backend.Writes(1)); + |