Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mkvtoolnix/files/
Date: Sun, 30 Oct 2022 09:28:33
Message-Id: 1667122012.4fb991e6e19c270aad5fee6a069b034f2a8e1d20.sam@gentoo
1 commit: 4fb991e6e19c270aad5fee6a069b034f2a8e1d20
2 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
3 AuthorDate: Sun Oct 30 07:53:53 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 30 09:26:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fb991e6
7
8 media-video/mkvtoolnix: remove unused patch
9
10 Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
11 Closes: https://github.com/gentoo/gentoo/pull/28032
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 .../mkvtoolnix/files/mkvtoolnix-68.0.0-fmt-9.patch | 293 ---------------------
15 1 file changed, 293 deletions(-)
16
17 diff --git a/media-video/mkvtoolnix/files/mkvtoolnix-68.0.0-fmt-9.patch b/media-video/mkvtoolnix/files/mkvtoolnix-68.0.0-fmt-9.patch
18 deleted file mode 100644
19 index a0e3c1780db9..000000000000
20 --- a/media-video/mkvtoolnix/files/mkvtoolnix-68.0.0-fmt-9.patch
21 +++ /dev/null
22 @@ -1,293 +0,0 @@
23 -https://gitlab.com/mbunkus/mkvtoolnix/-/commit/1e1076e43fe8f38e33246fff3ce8651a93c371d9
24 -https://bugs.gentoo.org/856700
25 -
26 -From: Moritz Bunkus <mo@××××××.online>
27 -Date: Thu, 7 Jul 2022 13:11:34 +0200
28 -Subject: [PATCH] fix compilation with fmt v9.0.0
29 -
30 -Prior to v9 all types that were outputtable via `operator<<` to
31 -`std::ostream` could be formatted. v9 changed that to require explicit
32 -tagging of those types that should work this way. This commit adds
33 -those tags for the types that are currently formatted via fmt.
34 -
35 -Fixes #3366.
36 ---- a/src/common/aac.h
37 -+++ b/src/common/aac.h
38 -@@ -221,3 +221,7 @@ protected:
39 - using parser_cptr = std::shared_ptr<parser_c>;
40 -
41 - } // namespace mtx::aac
42 -+
43 -+#if FMT_VERSION >= 90000
44 -+template <> struct fmt::formatter<mtx::aac::header_c> : ostream_formatter {};
45 -+#endif // FMT_VERSION >= 90000
46 ---- a/src/common/bcp47.h
47 -+++ b/src/common/bcp47.h
48 -@@ -176,3 +176,8 @@ struct hash<mtx::bcp47::language_c> {
49 - };
50 -
51 - } // namespace mtx::bcp47
52 -+
53 -+#if FMT_VERSION >= 90000
54 -+template <> struct fmt::formatter<mtx::bcp47::language_c::extension_t> : ostream_formatter {};
55 -+template <> struct fmt::formatter<mtx::bcp47::language_c> : ostream_formatter {};
56 -+#endif // FMT_VERSION >= 90000
57 ---- a/src/common/bluray/track_chapter_names.cpp
58 -+++ b/src/common/bluray/track_chapter_names.cpp
59 -@@ -18,6 +18,7 @@
60 - #include "common/bluray/track_chapter_names.h"
61 - #include "common/bluray/util.h"
62 - #include "common/debugging.h"
63 -+#include "common/path.h"
64 - #include "common/qt.h"
65 - #include "common/xml/xml.h"
66 -
67 ---- a/src/common/error.h
68 -+++ b/src/common/error.h
69 -@@ -45,3 +45,7 @@ operator <<(std::ostream &out,
70 - }
71 -
72 - }
73 -+
74 -+#if FMT_VERSION >= 90000
75 -+template <> struct fmt::formatter<mtx::exception> : ostream_formatter {};
76 -+#endif // FMT_VERSION >= 90000
77 ---- a/src/common/fourcc.h
78 -+++ b/src/common/fourcc.h
79 -@@ -83,3 +83,7 @@ operator <<(std::ostream &out,
80 - out << fourcc.str();
81 - return out;
82 - }
83 -+
84 -+#if FMT_VERSION >= 90000
85 -+template <> struct fmt::formatter<fourcc_c> : ostream_formatter {};
86 -+#endif // FMT_VERSION >= 90000
87 ---- a/src/common/kax_analyzer.h
88 -+++ b/src/common/kax_analyzer.h
89 -@@ -239,3 +239,7 @@ public:
90 - virtual void debug_abort_process();
91 - };
92 - using console_kax_analyzer_cptr = std::shared_ptr<console_kax_analyzer_c>;
93 -+
94 -+#if FMT_VERSION >= 90000
95 -+template <> struct fmt::formatter<mtx::kax_analyzer_x> : ostream_formatter {};
96 -+#endif // FMT_VERSION >= 90000
97 ---- a/src/common/math_fwd.h
98 -+++ b/src/common/math_fwd.h
99 -@@ -18,6 +18,11 @@
100 - using mtx_mp_rational_t = boost::multiprecision::number<boost::multiprecision::backends::gmp_rational, boost::multiprecision::et_off>;
101 - using mtx_mp_int_t = boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::et_off>;
102 -
103 -+#if FMT_VERSION >= 90000
104 -+template <> struct fmt::formatter<mtx_mp_rational_t> : ostream_formatter {};
105 -+template <> struct fmt::formatter<mtx_mp_int_t> : ostream_formatter {};
106 -+#endif // FMT_VERSION >= 90000
107 -+
108 - namespace mtx {
109 -
110 - // This conversion function exists to work around incomplete
111 ---- a/src/common/mm_io_x.h
112 -+++ b/src/common/mm_io_x.h
113 -@@ -155,3 +155,16 @@ operator <<(std::ostream &out,
114 - }
115 -
116 - }}
117 -+
118 -+#if FMT_VERSION >= 90000
119 -+template <> struct fmt::formatter<mtx::mm_io::exception> : ostream_formatter {};
120 -+template <> struct fmt::formatter<mtx::mm_io::end_of_file_x> : ostream_formatter {};
121 -+template <> struct fmt::formatter<mtx::mm_io::seek_x> : ostream_formatter {};
122 -+template <> struct fmt::formatter<mtx::mm_io::read_write_x> : ostream_formatter {};
123 -+template <> struct fmt::formatter<mtx::mm_io::open_x> : ostream_formatter {};
124 -+template <> struct fmt::formatter<mtx::mm_io::wrong_read_write_access_x>: ostream_formatter {};
125 -+template <> struct fmt::formatter<mtx::mm_io::insufficient_space_x> : ostream_formatter {};
126 -+template <> struct fmt::formatter<mtx::mm_io::create_directory_x> : ostream_formatter {};
127 -+template <> struct fmt::formatter<mtx::mm_io::text::exception> : ostream_formatter {};
128 -+template <> struct fmt::formatter<mtx::mm_io::text::invalid_utf8_char_x>: ostream_formatter {};
129 -+#endif // FMT_VERSION >= 90000
130 ---- a/src/common/opus.h
131 -+++ b/src/common/opus.h
132 -@@ -91,3 +91,9 @@ operator <<(std::ostream &out,
133 - }
134 -
135 - }
136 -+
137 -+#if FMT_VERSION >= 90000
138 -+template <> struct fmt::formatter<mtx::opus::decode_error> : ostream_formatter {};
139 -+template <> struct fmt::formatter<mtx::opus::id_header_t> : ostream_formatter {};
140 -+template <> struct fmt::formatter<mtx::opus::toc_t> : ostream_formatter {};
141 -+#endif // FMT_VERSION >= 90000
142 ---- a/src/common/path.h
143 -+++ b/src/common/path.h
144 -@@ -36,3 +36,7 @@ std::filesystem::path absolute(std::filesystem::path const &p);
145 - void create_directories(std::filesystem::path const &path, std::error_code &error_code);
146 -
147 - } // namespace mtx::fs
148 -+
149 -+#if FMT_VERSION >= 90000
150 -+template <> struct fmt::formatter<std::filesystem::path> : ostream_formatter {};
151 -+#endif // FMT_VERSION >= 90000
152 ---- a/src/common/qt.h
153 -+++ b/src/common/qt.h
154 -@@ -102,3 +102,7 @@ operator <<(std::wostream &out,
155 - out << string.toStdWString();
156 - return out;
157 - }
158 -+
159 -+#if FMT_VERSION >= 90000
160 -+template <> struct fmt::formatter<QString> : ostream_formatter {};
161 -+#endif // FMT_VERSION >= 90000
162 ---- a/src/common/strings/formatting.h
163 -+++ b/src/common/strings/formatting.h
164 -@@ -129,3 +129,7 @@ operator <<(std::ostream &out,
165 - out << mtx::string::format_timestamp(timestamp);
166 - return out;
167 - }
168 -+
169 -+#if FMT_VERSION >= 90000
170 -+template <> struct fmt::formatter<basic_timestamp_c<int64_t>> : ostream_formatter {};
171 -+#endif // FMT_VERSION >= 90000
172 ---- a/src/common/translation.h
173 -+++ b/src/common/translation.h
174 -@@ -80,4 +80,8 @@ operator <<(std::ostream &out,
175 - return out;
176 - }
177 -
178 -+#if FMT_VERSION >= 90000
179 -+template <> struct fmt::formatter<translatable_string_c> : ostream_formatter {};
180 -+#endif
181 -+
182 - void init_locales(std::string locale = "");
183 ---- a/src/input/r_flac.cpp
184 -+++ b/src/input/r_flac.cpp
185 -@@ -240,7 +240,7 @@ flac_reader_c::handle_picture_metadata(FLAC__StreamMetadata const *metadata) {
186 - mxdebug_if(m_debug, fmt::format("flac_reader: MIME type: {0}\n", attachment->mime_type));
187 - mxdebug_if(m_debug, fmt::format("flac_reader: data length: {0}\n", picture.data_length));
188 - mxdebug_if(m_debug, fmt::format("flac_reader: ID: {0}\n", m_attachment_id));
189 -- mxdebug_if(m_debug, fmt::format("flac_reader: mode: {0}\n", attach_mode));
190 -+ mxdebug_if(m_debug, fmt::format("flac_reader: mode: {0}\n", static_cast<unsigned int>(attach_mode)));
191 -
192 - if (attachment->mime_type.empty() || attachment->name.empty())
193 - return;
194 -@@ -276,7 +276,7 @@ flac_reader_c::flac_metadata_cb(const FLAC__StreamMetadata *metadata) {
195 - : metadata->type == FLAC__METADATA_TYPE_VORBIS_COMMENT ? "VORBIS COMMENT"
196 - : metadata->type == FLAC__METADATA_TYPE_CUESHEET ? "CUESHEET"
197 - : "UNDEFINED",
198 -- metadata->type, metadata->length));
199 -+ static_cast<unsigned int>(metadata->type), metadata->length));
200 - break;
201 - }
202 - }
203 ---- a/src/input/r_flv.h
204 -+++ b/src/input/r_flv.h
205 -@@ -173,3 +173,8 @@ protected:
206 -
207 - unsigned int add_track(char type);
208 - };
209 -+
210 -+#if FMT_VERSION >= 90000
211 -+template <> struct fmt::formatter<flv_header_t> : ostream_formatter {};
212 -+template <> struct fmt::formatter<flv_tag_c> : ostream_formatter {};
213 -+#endif // FMT_VERSION >= 90000
214 ---- a/src/input/r_mpeg_ps.h
215 -+++ b/src/input/r_mpeg_ps.h
216 -@@ -244,3 +244,8 @@ private:
217 - void sort_tracks();
218 - void calculate_global_timestamp_offset();
219 - };
220 -+
221 -+#if FMT_VERSION >= 90000
222 -+template <> struct fmt::formatter<mpeg_ps_id_t> : ostream_formatter {};
223 -+template <> struct fmt::formatter<mpeg_ps_packet_c> : ostream_formatter {};
224 -+#endif // FMT_VERSION >= 90000
225 ---- a/src/input/r_ogm_flac.cpp
226 -+++ b/src/input/r_ogm_flac.cpp
227 -@@ -104,7 +104,7 @@ fhe_metadata_cb(const FLAC__StreamDecoder *,
228 - : metadata->type == FLAC__METADATA_TYPE_VORBIS_COMMENT ? "VORBIS COMMENT"
229 - : metadata->type == FLAC__METADATA_TYPE_CUESHEET ? "CUESHEET"
230 - : "UNDEFINED",
231 -- metadata->type, metadata->length));
232 -+ static_cast<unsigned int>(metadata->type), metadata->length));
233 - break;
234 - }
235 - }
236 ---- a/src/input/r_qtmp4.h
237 -+++ b/src/input/r_qtmp4.h
238 -@@ -590,3 +590,7 @@ protected:
239 -
240 - virtual void process_atom(qt_atom_t const &parent, int level, std::function<void(qt_atom_t const &)> const &handler);
241 - };
242 -+
243 -+#if FMT_VERSION >= 90000
244 -+template <> struct fmt::formatter<qt_atom_t> : ostream_formatter {};
245 -+#endif // FMT_VERSION >= 90000
246 ---- a/src/merge/item_selector.h
247 -+++ b/src/merge/item_selector.h
248 -@@ -139,3 +139,7 @@ operator <<(std::ostream &out,
249 -
250 - return out;
251 - }
252 -+
253 -+#if FMT_VERSION >= 90000
254 -+template <typename T> struct fmt::formatter<item_selector_c<T>> : ostream_formatter {};
255 -+#endif // FMT_VERSION >= 90000
256 ---- a/src/propedit/attachment_target.cpp
257 -+++ b/src/propedit/attachment_target.cpp
258 -@@ -83,14 +83,14 @@ attachment_target_c::dump_info()
259 - " selector_num_arg: {6}\n"
260 - " selector_string_arg: {7}\n",
261 - m_file_name,
262 -- m_command,
263 -+ static_cast<unsigned int>(m_command),
264 - ac_add == m_command ? "add"
265 - : ac_delete == m_command ? "delete"
266 - : ac_replace == m_command ? "replace"
267 - : ac_update == m_command ? "update"
268 - : "unknown",
269 - m_options,
270 -- m_selector_type,
271 -+ static_cast<unsigned int>(m_selector_type),
272 - st_id == m_selector_type ? "ID"
273 - : st_uid == m_selector_type ? "UID"
274 - : st_name == m_selector_type ? "name"
275 ---- a/src/propedit/attachment_target.h
276 -+++ b/src/propedit/attachment_target.h
277 -@@ -130,3 +130,7 @@ operator <<(std::ostream &out,
278 -
279 - return out;
280 - }
281 -+
282 -+#if FMT_VERSION >= 90000
283 -+template <> struct fmt::formatter<attachment_target_c::options_t> : ostream_formatter {};
284 -+#endif // FMT_VERSION >= 90000
285 ---- a/src/propedit/tag_target.cpp
286 -+++ b/src/propedit/tag_target.cpp
287 -@@ -104,10 +104,10 @@ tag_target_c::dump_info()
288 - " selection_track_type: {3}\n"
289 - " track_uid: {4}\n"
290 - " file_name: {5}\n",
291 -- static_cast<int>(m_operation_mode),
292 -- static_cast<int>(m_selection_mode),
293 -+ static_cast<unsigned int>(m_operation_mode),
294 -+ static_cast<unsigned int>(m_selection_mode),
295 - m_selection_param,
296 -- m_selection_track_type,
297 -+ static_cast<unsigned int>(m_selection_track_type),
298 - m_track_uid,
299 - m_file_name));
300 -
301 ---- a/src/propedit/track_target.cpp
302 -+++ b/src/propedit/track_target.cpp
303 -@@ -78,9 +78,9 @@ track_target_c::dump_info()
304 - " selection_track_type: {2}\n"
305 - " track_uid: {3}\n"
306 - " file_name: {4}\n",
307 -- static_cast<int>(m_selection_mode),
308 -+ static_cast<unsigned int>(m_selection_mode),
309 - m_selection_param,
310 -- m_selection_track_type,
311 -+ static_cast<unsigned int>(m_selection_track_type),
312 - m_track_uid,
313 - m_file_name));
314 -
315 -GitLab