From: Christian Marangi Date: Mon, 24 Nov 2025 19:30:16 +0000 (+0100) Subject: rtpmidid: bump to version 24.12 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=98164e390daa554ec495d10c4b54ba6dd0111b02;p=feed%2Fpackages.git rtpmidid: bump to version 24.12 Bump rtpmidid to version 24.12. The new release fix support for CMake >= 4.0 version and permit to drop all patch (everything is upstream) Signed-off-by: Christian Marangi --- diff --git a/multimedia/rtpmidid/Makefile b/multimedia/rtpmidid/Makefile index 9885f767ee..33b2e959f7 100644 --- a/multimedia/rtpmidid/Makefile +++ b/multimedia/rtpmidid/Makefile @@ -1,13 +1,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=rtpmidid -PKG_VERSION:=23.12 -PKG_RELEASE:=2 +PKG_VERSION:=24.12 +PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/davidmoreno/rtpmidid PKG_SOURCE_VERSION:=v$(PKG_VERSION) -PKG_MIRROR_HASH:=e787ce013fdc148c50b625a1c7d8adf99d9fee2a81d91e734af75828ed597099 +PKG_MIRROR_HASH:=f302061c147833d6c5fe06aa0f8220185e6a29e4840355f26be231c618bc3334 PKG_MAINTAINER:=Daniel Golle PKG_LICENSE:=GPL-3.0-or-later LGPL-2.1-or-later @@ -16,6 +16,12 @@ PKG_LICENSE_FILES:=LICENSE.md LICENSE-lib.txt LICENSE-daemon.txt include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/cmake.mk +# There seems to be problem with c++20 str format and constexpr. +# Force c++17 and libfmt and re-evaluate at the next release. +CMAKE_OPTIONS += \ + -DCPP_VERSION=17 \ + -DUSE_FMT=ON + define Package/rtpmidid SECTION:=sound CATEGORY:=Sound diff --git a/multimedia/rtpmidid/patches/010-gcc14.patch b/multimedia/rtpmidid/patches/010-gcc14.patch deleted file mode 100644 index 10fa7fb15d..0000000000 --- a/multimedia/rtpmidid/patches/010-gcc14.patch +++ /dev/null @@ -1,39 +0,0 @@ ---- a/include/rtpmidid/signal.hpp -+++ b/include/rtpmidid/signal.hpp -@@ -24,6 +24,7 @@ - #include - #include - #include -+#include - - // #define DEBUG0 DEBUG - #define DEBUG0(...) -@@ -171,4 +172,4 @@ public: - } - #undef DEBUG0 - }; --} // namespace rtpmidid -\ No newline at end of file -+} // namespace rtpmidid ---- a/lib/mdns_rtpmidi.cpp -+++ b/lib/mdns_rtpmidi.cpp -@@ -28,6 +28,8 @@ - #include - #include - -+#include -+ - struct AvahiTimeout { - rtpmidid::poller_t::timer_t timer_id; - void *userdata; ---- a/lib/poller.cpp -+++ b/lib/poller.cpp -@@ -21,6 +21,8 @@ - #include - #include - -+#include -+ - #include - #include - #include diff --git a/multimedia/rtpmidid/patches/020-fmt10.patch b/multimedia/rtpmidid/patches/020-fmt10.patch deleted file mode 100644 index 36483a9640..0000000000 --- a/multimedia/rtpmidid/patches/020-fmt10.patch +++ /dev/null @@ -1,197 +0,0 @@ ---- a/include/rtpmidid/iobytes.hpp -+++ b/include/rtpmidid/iobytes.hpp -@@ -330,7 +330,7 @@ public: - - template <> - struct fmt::formatter : formatter { -- auto format(const rtpmidid::io_bytes_reader &data, format_context &ctx) { -+ auto format(const rtpmidid::io_bytes_reader &data, format_context &ctx) const { - return formatter::format( - fmt::format("[io_bytes_reader {} to {}, at {}, {}B left]", - (void *)data.start, (void *)data.end, (void *)data.position, -@@ -340,7 +340,7 @@ struct fmt::formatter - struct fmt::formatter : formatter { -- auto format(const rtpmidid::io_bytes_reader &data, format_context &ctx) { -+ auto format(const rtpmidid::io_bytes_reader &data, format_context &ctx) const { - return formatter::format( - fmt::format("[io_bytes_writer {} to {}, at {}, {}B left]", - (void *)data.start, (void *)data.end, (void *)data.position, ---- a/include/rtpmidid/network.hpp -+++ b/include/rtpmidid/network.hpp -@@ -24,7 +24,7 @@ - - template <> - struct fmt::formatter : formatter { -- auto format(const sockaddr_storage &addr, format_context &ctx) { -+ auto format(const sockaddr_storage &addr, format_context &ctx) const { - // print ip address and port - char name[INET6_ADDRSTRLEN]; - if (addr.ss_family == AF_INET) { ---- a/include/rtpmidid/rtpclient.hpp -+++ b/include/rtpmidid/rtpclient.hpp -@@ -99,7 +99,7 @@ template <> - struct fmt::formatter - : formatter { - auto format(const rtpmidid::rtpclient_t::endpoint_t &data, -- format_context &ctx) { -+ format_context &ctx) const { - return formatter::format( - fmt::format("[endpoint_t [{}]:{}]", data.hostname, data.port), ctx); - } -@@ -109,7 +109,7 @@ template <> - struct fmt::formatter> - : formatter { - auto format(const std::vector &data, -- format_context &ctx) { -+ format_context &ctx) const { - std::string result; - for (auto &endpoint : data) { - result += -@@ -123,7 +123,7 @@ template <> - struct fmt::formatter> - : formatter { - auto format(const std::list &data, -- format_context &ctx) { -+ format_context &ctx) const { - std::string result = "["; - for (auto &endpoint : data) { - result += fmt::format("[endpoint_t [{}]:{}] ", endpoint.hostname, ---- a/include/rtpmidid/rtppeer.hpp -+++ b/include/rtpmidid/rtppeer.hpp -@@ -152,7 +152,7 @@ public: - template <> - struct fmt::formatter - : formatter { -- auto format(rtpmidid::rtppeer_t::status_e c, format_context &ctx) { -+ auto format(rtpmidid::rtppeer_t::status_e c, format_context &ctx) const { - std::string_view name = "UNKNOWN"; - switch (c) { - case rtpmidid::rtppeer_t::status_e::NOT_CONNECTED: -@@ -175,7 +175,7 @@ struct fmt::formatter - struct fmt::formatter - : formatter { -- auto format(rtpmidid::rtppeer_t::port_e c, format_context &ctx) { -+ auto format(rtpmidid::rtppeer_t::port_e c, format_context &ctx) const { - const char *name = "UNKNOWN"; // NOLINT - switch (c) { - case rtpmidid::rtppeer_t::port_e::MIDI_PORT: -@@ -192,7 +192,7 @@ struct fmt::formatter - struct fmt::formatter - : formatter { -- auto format(rtpmidid::rtppeer_t::disconnect_reason_e c, format_context &ctx) { -+ auto format(rtpmidid::rtppeer_t::disconnect_reason_e c, format_context &ctx) const { - const char *name = "UNKNOWN"; // NOLINT - switch (c) { - case rtpmidid::rtppeer_t::disconnect_reason_e::CANT_CONNECT: ---- a/lib/mdns_rtpmidi.cpp -+++ b/lib/mdns_rtpmidi.cpp -@@ -52,12 +52,12 @@ struct AvahiEntryGroup { - rtpmidid::mdns_rtpmidi_t *current = nullptr; - - template <> struct fmt::formatter : fmt::formatter { -- auto format(AvahiWatchEvent ev, fmt::format_context &ctx) { -+ auto format(AvahiWatchEvent ev, fmt::format_context &ctx) const { - return fmt::formatter::format((int)ev, ctx); - } - }; - template <> struct fmt::formatter : fmt::formatter { -- auto format(AvahiBrowserEvent ev, fmt::format_context &ctx) { -+ auto format(AvahiBrowserEvent ev, fmt::format_context &ctx) const { - return fmt::formatter::format((int)ev, ctx); - } - }; ---- a/src/aseq.hpp -+++ b/src/aseq.hpp -@@ -152,7 +152,7 @@ template <> struct hash - struct fmt::formatter - : formatter { -- auto format(rtpmididns::aseq_t::port_t c, format_context &ctx) { -+ auto format(rtpmididns::aseq_t::port_t c, format_context &ctx) const { - auto name = fmt::format("port_t[{}, {}]", c.client, c.port); - return formatter::format(name, ctx); - } ---- a/src/mididata.hpp -+++ b/src/mididata.hpp -@@ -37,9 +37,9 @@ public: - - template <> - struct fmt::formatter : formatter { -- auto format(const rtpmididns::mididata_t &data, format_context &ctx) { -+ auto format(const rtpmididns::mididata_t &data, format_context &ctx) const { - - return fmt::format_to(ctx.out(), "[mididata_t {} + {}, at {}]", - (void *)data.start, data.size(), data.pos()); - } --}; -\ No newline at end of file -+}; ---- a/src/settings.hpp -+++ b/src/settings.hpp -@@ -58,7 +58,7 @@ template <> - struct fmt::formatter - : formatter { - auto format(const rtpmididns::settings_t::alsa_announce_t &data, -- format_context &ctx) { -+ format_context &ctx) const { - - return fmt::format_to(ctx.out(), "[alsa_announce_t {}]", data.name); - } -@@ -68,7 +68,7 @@ template <> - struct fmt::formatter> - : formatter { - auto format(const std::vector &data, -- format_context &ctx) { -+ format_context &ctx) const { - std::string result = "["; - for (auto &item : data) { - result += fmt::format("[{}] ", item.name); -@@ -82,7 +82,7 @@ template <> - struct fmt::formatter - : formatter { - auto format(const rtpmididns::settings_t::rtpmidi_announce_t &data, -- format_context &ctx) { -+ format_context &ctx) const { - - return fmt::format_to(ctx.out(), "[rtpmidi_announce_t {} {}]", data.name, - data.port); -@@ -94,7 +94,7 @@ struct fmt::formatter { - auto - format(const std::vector &data, -- format_context &ctx) { -+ format_context &ctx) const { - std::string result = "["; - for (auto &item : data) { - result += -@@ -109,7 +109,7 @@ template <> - struct fmt::formatter - : formatter { - auto format(const rtpmididns::settings_t::connect_to_t &data, -- format_context &ctx) { -+ format_context &ctx) const { - - return fmt::format_to(ctx.out(), "[connect_to_t {} {} {}]", data.hostname, - data.port, data.name); -@@ -120,7 +120,7 @@ template <> - struct fmt::formatter> - : formatter { - auto format(const std::vector &data, -- format_context &ctx) { -+ format_context &ctx) const { - std::string result = "["; - for (auto &item : data) { - result += fmt::format("[connect_to_t {} {} {}] ", item.hostname, -@@ -133,7 +133,7 @@ struct fmt::formatter - struct fmt::formatter : formatter { -- auto format(const rtpmididns::settings_t &data, format_context &ctx) { -+ auto format(const rtpmididns::settings_t &data, format_context &ctx) const { - - return fmt::format_to(ctx.out(), - "[settings_t alsa_name: {} alsa_network: {} "