Ticket #43222: mkvtoolnix-6.8.0.diff
File mkvtoolnix-6.8.0.diff, 4.8 KB (added by mojca (Mojca Miklavec), 11 years ago) |
---|
-
Portfile
6 6 PortGroup wxWidgets 1.0 7 7 8 8 name mkvtoolnix 9 version 6.3.0 10 revision 2 9 version 6.8.0 11 10 categories multimedia 12 11 maintainers nomaintainer 13 12 license GPL-2+ LGPL-2.1+ … … 22 21 http://svn.mandriva.com/svn/packages/cooker/mkvtoolnix/releases/${version}/1/SOURCES/ 23 22 use_xz yes 24 23 25 checksums rmd160 7147271b54cf7ccb1ea9683428f6d9ccd47ae3fb\26 sha256 bc05f07d92190d018e901091a07ed5139f4eec833203af04672e4d3a0c619ba124 checksums rmd160 d600a14c9fc0ea570ff812f1ac67705e648d6e05 \ 25 sha256 585b07a9a4c47d2ad0a907f5b0ee809108363721221494e9846da5736b808b99 27 26 28 27 wxWidgets.use wxWidgets-3.0 29 28 … … 45 44 port:ruby \ 46 45 port:zlib 47 46 48 patch.pre_args -p149 47 patchfiles patch-clang_errors.diff 50 # Remove when version > 6.3.0 is released51 patchfiles-append patch-df750c2.diff52 48 53 49 54 50 platform darwin { -
files/patch-clang_errors.diff
1 diff -pur mkvtoolnix-6.3.0.orig/src/common/command_line.cpp mkvtoolnix-6.3.0/src/common/command_line.cpp 2 --- mkvtoolnix-6.3.0.orig/src/common/command_line.cpp 2013-08-24 18:35:22.000000000 -0400 3 +++ mkvtoolnix-6.3.0/src/common/command_line.cpp 2013-08-24 18:36:30.000000000 -0400 4 @@ -285,6 +285,7 @@ handle_common_cli_args(std::vector<std:: 1 --- src/common/command_line.cpp.orig 2 +++ src/common/command_line.cpp 3 @@ -291,6 +291,7 @@ handle_common_cli_args(std::vector<std::string> &args, 5 4 } else if ((args[i] == "-h") || (args[i] == "-?") || (args[i] == "--help")) 6 5 usage(); 7 6 … … 9 8 #if defined(HAVE_CURL_EASY_H) 10 9 else if (args[i] == "--check-for-updates") { 11 10 mtx_release_version_t rel = get_latest_release_version(); 12 @@ -3 04,6 +305,7 @@ handle_common_cli_args(std::vector<std::11 @@ -310,6 +311,7 @@ handle_common_cli_args(std::vector<std::string> &args, 13 12 mxexit(rel.current_version < rel.latest_source ? 1 : 0); 14 13 } 15 14 #endif // defined(HAVE_CURL_EASY_H) … … 17 16 18 17 else 19 18 ++i; 20 diff -pur mkvtoolnix-6.3.0.orig/src/common/version.cpp mkvtoolnix-6.3.0/src/common/version.cpp 21 --- mkvtoolnix-6.3.0.orig/src/common/version.cpp 2013-08-24 18:35:22.000000000 -0400 22 +++ mkvtoolnix-6.3.0/src/common/version.cpp 2013-08-24 18:35:43.000000000 -0400 23 @@ -220,7 +220,7 @@ get_latest_release_version() { 19 --- src/common/version.cpp.orig 20 +++ src/common/version.cpp 21 @@ -228,7 +228,7 @@ get_latest_release_version() { 24 22 std::stringstream urls; 25 23 brng::for_each(release.urls, [&](std::pair<std::string, std::string> const &kv) { urls << " " << kv.first << ":" << kv.second; }); 26 24 mxdebug(boost::format("update check: current %1% latest source %2% latest winpre %3% URLs%4%\n") -
files/patch-df750c2.diff
1 From df750c28b6f7258dd4c3037e1132c81300b8cdfa Mon Sep 17 00:00:00 20012 From: Moritz Bunkus <moritz@bunkus.org>3 Date: Sun, 14 Jul 2013 17:25:42 +02004 Subject: [PATCH] Fix compilation with clang/libc++ on FreeBSD5 6 On FreeBSD the high_resolution_clock is an alias for the steady_clock7 -- which doesn't support converting into time_t. As we only need a8 precision of seconds for outputting timestamps using system_clock9 instead is enough.10 ---11 src/common/logger.cpp | 6 +++---12 1 file changed, 3 insertions(+), 3 deletions(-)13 14 diff --git a/src/common/logger.cpp b/src/common/logger.cpp15 index 7f6e5f2..04251d2 10064416 --- a/src/common/logger.cpp17 +++ b/src/common/logger.cpp18 @@ -20,7 +20,7 @@19 20 logger_cptr logger_c::s_default_logger;21 22 -static auto s_program_start_time = std::chrono::high_resolution_clock::now();23 +static auto s_program_start_time = std::chrono::system_clock::now();24 25 logger_c::logger_c(bfs::path const &file_name)26 : m_file_name(file_name)27 @@ -41,9 +41,9 @@28 mm_text_io_c out(new mm_file_io_c(m_file_name.string(), bfs::exists(m_file_name) ? MODE_WRITE : MODE_CREATE));29 out.setFilePointer(0, seek_end);30 31 - auto now = std::chrono::high_resolution_clock::now();32 + auto now = std::chrono::system_clock::now();33 auto diff = now - s_program_start_time;34 - auto tnow = std::chrono::high_resolution_clock::to_time_t(now);35 + auto tnow = std::chrono::system_clock::to_time_t(now);36 37 // 2013-03-02 15:42:3238 char timestamp[30];39 --40 1.8.1.641