From nobody Sun Apr 10 10:07:24 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 510651A84C11; Sun, 10 Apr 2022 10:07:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kbnj86KHGz3wWc; Sun, 10 Apr 2022 10:07:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649585244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8bbLUZJ5CX4IhBpwFcBD8hkwfEQTQFDEhdFodzrwVGI=; b=KCuLEEHAEXnhHXJssttEvHDlAye1hGIPD1uHwIhOsCM9b7O7BIISg66vUK7wicpQPuwLhc SGdg82yPdHwY/wXHr9Ayhjnb1rDoyD52Cj1SAxt3b65opBSROUkLFQKT2brvT3dxpKeUzO rbWNcqtTgMPXaeF8bToOg3syt213hzgCclwyyKOUev7pnQtQMdIHhr+JTx1mBZ0fF+jgAi E7fBcl90APDBjPYAud4hzM3C0IStSEYsdT7FjMy5QQYWIivtEyXR0Ke1mTlQu64ZQleXWh fAi62uMLAvJjJaGWwoe9zYY0+/q4Y0qBsRIvbVIyfsthfOD/2K/beiKY/1VTDw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id ADFB046A6; Sun, 10 Apr 2022 10:07:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23AA7OUX088934; Sun, 10 Apr 2022 10:07:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23AA7OE1088933; Sun, 10 Apr 2022 10:07:24 GMT (envelope-from git) Date: Sun, 10 Apr 2022 10:07:24 GMT Message-Id: <202204101007.23AA7OE1088933@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thomas Zander Subject: git: 19f7624a2c06 - main - multimedia/mkvtoolnix: Update to upstream release 66.0.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: riggs X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 19f7624a2c060ef061a26ae24250304c12f1d2c3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649585244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8bbLUZJ5CX4IhBpwFcBD8hkwfEQTQFDEhdFodzrwVGI=; b=Tq3Ad8vHCld+8+lSp2k0naQH1cOerlHXv11GqUhsbUGOam0hD6pHQg6PcP7WLU37iwDwcz JlIbMhcr531X1u2NhY5qdUmWKImM96XsUPMFkMVJ1rfEnDg7wfLlcMxnfJomab874JvFJt V2kz2jOPZxUyypMQy8rdrG1OHZmmPJOFDBDcH0YI+swpNzT5Y9ndVfDXaS2ryp4yI7y/+A IJEvWIsQPvVflE962sBNDMDfUIiuMJHy2myd2IOIZBE6cd3Rw1CPnXx2a4EGGPHW/QqJ8l nSit1n6l5d0kgTcIL+YsYp/yG4sueWDPo4FJBRvVHAEs0bROpIXfR3meFYwMIw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649585244; a=rsa-sha256; cv=none; b=IIYrjlSr4V6gWE4u4d2kn30eBmI7F3lYgN0pnZKOiMqdV252ucEojzdSmiQXvk9lxAha1P D3CuNaKn9znhMpASOgmvoJOkNrUB7uMV+iCSd3Uf5GA340pf/AO7GAFunOj94fg7ZuIx8H xBHGSPBu9U/3113opx/5qwHytM7yTNkwvQFESAwszoceQasAg+BuUpSVS2QHIx/4IQM+zU ccKT7YIFn8E7FwZdXMdPFR9VR1fZ00rbYv8gBIul/b4fJSJi6vbKyYL80JO+pFkREVkgnV akKqi8o0qQgVos140OHeZ/5DzhY9fa4YLrqhvZDJ+0IkkH4hi449ywxZEP3YCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by riggs: URL: https://cgit.FreeBSD.org/ports/commit/?id=19f7624a2c060ef061a26ae24250304c12f1d2c3 commit 19f7624a2c060ef061a26ae24250304c12f1d2c3 Author: Thomas Zander AuthorDate: 2022-04-09 21:49:06 +0000 Commit: Thomas Zander CommitDate: 2022-04-10 10:07:21 +0000 multimedia/mkvtoolnix: Update to upstream release 66.0.0 Details: - Bugfixes and enhancements, see https://mkvtoolnix.download/doc/NEWS.md MFH: 2022Q2 --- multimedia/mkvtoolnix/Makefile | 16 +----- multimedia/mkvtoolnix/distinfo | 6 +-- .../mkvtoolnix/files/patch-rake.d_extensions.rb | 23 +++++++++ .../files/patch-src_common_fs__sys__helpers.h | 10 ++++ .../patch-src_common_fs__sys__helpers_common.cpp | 58 ++++++++++++++++++++++ ...jobs_program__runner_linux__program__runner.cpp | 33 ++++++++++++ ...i_jobs_program__runner_linux__program__runner.h | 17 +++++++ ...ch-src_mkvtoolnix-gui_util_sleep__inhibitor.cpp | 20 -------- 8 files changed, 145 insertions(+), 38 deletions(-) diff --git a/multimedia/mkvtoolnix/Makefile b/multimedia/mkvtoolnix/Makefile index 0a50c8c55bd2..f23f73693cf1 100644 --- a/multimedia/mkvtoolnix/Makefile +++ b/multimedia/mkvtoolnix/Makefile @@ -1,7 +1,7 @@ # Created by: Mario Sergio Fujikawa Ferreira PORTNAME= mkvtoolnix -PORTVERSION= 65.0.0 +PORTVERSION= 66.0.0 CATEGORIES= multimedia audio MASTER_SITES= https://www.bunkus.org/videotools/mkvtoolnix/sources/ \ https://mkvtoolnix.download/sources/ @@ -32,9 +32,6 @@ USE_QT= buildtools_build concurrent core linguisttools_build multimedia GNU_CONFIGURE= yes CONFIGURE_ENV+= ac_cv_path_PO4A=no CONFIGURE_ARGS= --with-boost=${LOCALBASE} \ - --with-boost-filesystem=boost_filesystem \ - --with-boost-system=boost_system \ - --with-boost-regex=boost_regex \ --with-docbook-xsl-root=${PREFIX}/share/xsl/docbook \ --disable-qt6 MAKE_ENV= V=1 @@ -75,15 +72,4 @@ MANTRANS_BUILD_DEPENDS= po4a:textproc/po4a USE_CXXSTD= c++17 .endif -post-patch: - @${REINPLACE_CMD} -e '/LIBS="-lintl/s,-liconv,$$ICONV_LIBS,' \ - ${WRKSRC}/configure - -post-configure-NLS-off: -# https://github.com/mbunkus/mkvtoolnix/issues/1501 -# Fixed in 8.6.0 - @${REINPLACE_CMD} -e 's|LIBINTL_LIBS =|#LIBINTL_LIBS =|g' ${WRKSRC}/build-config - @${REINPLACE_CMD} -e 's|#define HAVE_LIBINTL_H|//#define HAVE_LIBINTL_H|g' ${WRKSRC}/config.h - @${REINPLACE_CMD} -e 's|S["LIBINTL_LIBS"]=|#S["LIBINTL_LIBS"]=|g' ${WRKSRC}/config.status - .include diff --git a/multimedia/mkvtoolnix/distinfo b/multimedia/mkvtoolnix/distinfo index a2bd3501d1ed..3c488d6ee807 100644 --- a/multimedia/mkvtoolnix/distinfo +++ b/multimedia/mkvtoolnix/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1644349235 -SHA256 (mkvtoolnix-65.0.0.tar.xz) = 0dddc9cc1bae26ceaac3a184482c50e6bb8add2d62e06ef08b55f9f0108bb92e -SIZE (mkvtoolnix-65.0.0.tar.xz) = 7709588 +TIMESTAMP = 1649518643 +SHA256 (mkvtoolnix-66.0.0.tar.xz) = 73a3f6c39b3580f28233f93555d282d07d5f51a8bbeb8b0bee09b820de80692c +SIZE (mkvtoolnix-66.0.0.tar.xz) = 7752240 diff --git a/multimedia/mkvtoolnix/files/patch-rake.d_extensions.rb b/multimedia/mkvtoolnix/files/patch-rake.d_extensions.rb new file mode 100644 index 000000000000..ed8b289f3481 --- /dev/null +++ b/multimedia/mkvtoolnix/files/patch-rake.d_extensions.rb @@ -0,0 +1,23 @@ +--- rake.d/extensions.rb.orig 2022-03-13 12:54:56 UTC ++++ rake.d/extensions.rb +@@ -62,14 +62,14 @@ class Array + :windows => %w{linux macos unix x11}, + } + +- reject.each do |os, types| +- next if !$building_for[os] ++ # Treat other OS (e.g. FreeBSD) the same as Linux wrt. which files to compile ++ os = $building_for.keys.select { |key| $building_for[key] }.first ++ types = reject[os || :linux] + +- re = '(?:' + types.join('|') + ')' +- re = %r{(?:/|^)#{re}[_.]} ++ re = '(?:' + types.join('|') + ')' ++ re = %r{(?:/|^)#{re}[_.]} + +- self.reject! { |f| re.match f } +- end ++ self.reject! { |f| re.match f } + + return self + end diff --git a/multimedia/mkvtoolnix/files/patch-src_common_fs__sys__helpers.h b/multimedia/mkvtoolnix/files/patch-src_common_fs__sys__helpers.h new file mode 100644 index 000000000000..fe414bdeec99 --- /dev/null +++ b/multimedia/mkvtoolnix/files/patch-src_common_fs__sys__helpers.h @@ -0,0 +1,10 @@ +--- src/common/fs_sys_helpers.h.orig 2022-03-13 12:54:56 UTC ++++ src/common/fs_sys_helpers.h +@@ -26,6 +26,7 @@ void determine_path_to_current_executable(std::string + std::filesystem::path get_current_exe_path(std::string const &argv0); + std::filesystem::path get_application_data_folder(); + std::filesystem::path get_installation_path(); ++std::filesystem::path find_exe_in_path(std::filesystem::path const &exe); + uint64_t get_memory_usage(); + + bool is_installed(); diff --git a/multimedia/mkvtoolnix/files/patch-src_common_fs__sys__helpers_common.cpp b/multimedia/mkvtoolnix/files/patch-src_common_fs__sys__helpers_common.cpp new file mode 100644 index 000000000000..e0c80719a6c8 --- /dev/null +++ b/multimedia/mkvtoolnix/files/patch-src_common_fs__sys__helpers_common.cpp @@ -0,0 +1,58 @@ +--- src/common/fs_sys_helpers/common.cpp.orig 2022-03-13 12:54:56 UTC ++++ src/common/fs_sys_helpers/common.cpp +@@ -14,12 +14,36 @@ + #include "common/common_pch.h" + + #include "common/fs_sys_helpers.h" ++#include "common/path.h" ++#include "common/strings/parsing.h" + + namespace mtx::sys { + +-static std::filesystem::path s_current_executable_path; ++namespace { + ++std::filesystem::path s_current_executable_path; ++std::unordered_map s_exes_in_path; ++ + std::filesystem::path ++find_exe_in_path_worker(std::filesystem::path const &exe) { ++ auto paths = mtx::string::split(get_environment_variable("PATH"), ":"); ++ ++ for (auto const &path : paths) { ++ auto potential_exe = mtx::fs::to_path(path) / exe; ++ if (std::filesystem::exists(potential_exe)) ++ return potential_exe; ++ ++ potential_exe += mtx::fs::to_path(".exe"); ++ if (std::filesystem::exists(potential_exe)) ++ return potential_exe; ++ } ++ ++ return {}; ++} ++ ++} // anonymous ++ ++std::filesystem::path + get_installation_path() { + return s_current_executable_path; + } +@@ -27,6 +51,17 @@ get_installation_path() { + void + determine_path_to_current_executable(std::string const &argv0) { + s_current_executable_path = get_current_exe_path(argv0); ++} ++ ++std::filesystem::path ++find_exe_in_path(std::filesystem::path const &exe) { ++ auto const exe_str = exe.u8string(); ++ auto const itr = s_exes_in_path.find(exe_str); ++ ++ if (itr == s_exes_in_path.end()) ++ s_exes_in_path[exe_str] = find_exe_in_path_worker(exe); ++ ++ return s_exes_in_path[exe_str]; + } + + } diff --git a/multimedia/mkvtoolnix/files/patch-src_mkvtoolnix-gui_jobs_program__runner_linux__program__runner.cpp b/multimedia/mkvtoolnix/files/patch-src_mkvtoolnix-gui_jobs_program__runner_linux__program__runner.cpp new file mode 100644 index 000000000000..e237b325f69a --- /dev/null +++ b/multimedia/mkvtoolnix/files/patch-src_mkvtoolnix-gui_jobs_program__runner_linux__program__runner.cpp @@ -0,0 +1,33 @@ +--- src/mkvtoolnix-gui/jobs/program_runner/linux_program_runner.cpp.orig 2022-03-13 12:54:56 UTC ++++ src/mkvtoolnix-gui/jobs/program_runner/linux_program_runner.cpp +@@ -1,11 +1,13 @@ + #include "common/common_pch.h" + +-#if defined(SYS_LINUX) ++#if !defined(SYS_APPLE) && !defined(SYS_WINDOWS) + + #include + #include + ++#include "common/fs_sys_helpers.h" + #include "common/list_utils.h" ++#include "common/path.h" + #include "common/qt.h" + #include "mkvtoolnix-gui/jobs/program_runner/linux_program_runner.h" + +@@ -24,6 +26,9 @@ LinuxProgramRunner::isRunProgramTypeSupported(Util::Se + if (ProgramRunner::isRunProgramTypeSupported(type)) + return true; + ++ if (mtx::sys::find_exe_in_path(mtx::fs::to_path("systemctl")).empty()) ++ return false; ++ + return mtx::included_in(type, Util::Settings::RunProgramType::ShutDownComputer, Util::Settings::RunProgramType::HibernateComputer, Util::Settings::RunProgramType::SleepComputer); + } + +@@ -57,4 +62,4 @@ LinuxProgramRunner::sleepComputer(Util::Settings::RunP + + } + +-#endif // SYS_LINUX ++#endif // !SYS_APPLE && !SYS_WINDOWS diff --git a/multimedia/mkvtoolnix/files/patch-src_mkvtoolnix-gui_jobs_program__runner_linux__program__runner.h b/multimedia/mkvtoolnix/files/patch-src_mkvtoolnix-gui_jobs_program__runner_linux__program__runner.h new file mode 100644 index 000000000000..a279e0ead1be --- /dev/null +++ b/multimedia/mkvtoolnix/files/patch-src_mkvtoolnix-gui_jobs_program__runner_linux__program__runner.h @@ -0,0 +1,17 @@ +--- src/mkvtoolnix-gui/jobs/program_runner/linux_program_runner.h.orig 2022-03-13 12:54:56 UTC ++++ src/mkvtoolnix-gui/jobs/program_runner/linux_program_runner.h +@@ -2,7 +2,7 @@ + + #include "common/common_pch.h" + +-#if defined(SYS_LINUX) ++#if !defined(SYS_APPLE) && !defined(SYS_WINDOWS) + + #include "mkvtoolnix-gui/jobs/program_runner.h" + +@@ -28,4 +28,4 @@ class LinuxProgramRunner: public ProgramRunner { (prot + + }} + +-#endif // SYS_LINUX ++#endif // !SYS_APPLE && !SYS_WINDOWS diff --git a/multimedia/mkvtoolnix/files/patch-src_mkvtoolnix-gui_util_sleep__inhibitor.cpp b/multimedia/mkvtoolnix/files/patch-src_mkvtoolnix-gui_util_sleep__inhibitor.cpp deleted file mode 100644 index ea58f2e4c8d3..000000000000 --- a/multimedia/mkvtoolnix/files/patch-src_mkvtoolnix-gui_util_sleep__inhibitor.cpp +++ /dev/null @@ -1,20 +0,0 @@ ---- src/mkvtoolnix-gui/util/sleep_inhibitor.cpp.orig 2018-12-01 11:15:36 UTC -+++ src/mkvtoolnix-gui/util/sleep_inhibitor.cpp -@@ -6,7 +6,7 @@ - # include "mkvtoolnix-gui/util/sleep_inhibitor/windows.h" - #elif defined(SYS_APPLE) - # include "mkvtoolnix-gui/util/sleep_inhibitor/macos.h" --#elif defined(HAVE_QTDBUS) -+#elif defined(SYS_LINUX) - # include "mkvtoolnix-gui/util/sleep_inhibitor/linux_logind.h" - #endif - -@@ -66,7 +66,7 @@ BasicSleepInhibitor::create() { - inhibitor->addInhibitor(std::make_shared()); - #elif defined(SYS_APPLE) - inhibitor->addInhibitor(std::make_shared()); --#elif defined(HAVE_QTDBUS) -+#elif defined(SYS_LINUX) - inhibitor->addInhibitor(std::make_shared()); - #endif -