From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3F48115813A for ; Sun, 19 Jan 2025 10:03:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BBB1E0784; Sun, 19 Jan 2025 10:03:51 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4EAA1E0784 for ; Sun, 19 Jan 2025 10:03:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 49AB9335CB4 for ; Sun, 19 Jan 2025 10:03:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B5D9097F for ; Sun, 19 Jan 2025 10:03:48 +0000 (UTC) From: "Ryan Li" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ryan Li" Message-ID: <1737280942.5c222b6b974340d45db029cf46f57f25b9094a5c.ryanli@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-sound/deep-filter/files/, media-sound/deep-filter/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-sound/deep-filter/deep-filter-0.5.6-r1.ebuild media-sound/deep-filter/deep-filter-0.5.6-r2.ebuild media-sound/deep-filter/files/deep-filter-test-deps.patch X-VCS-Directories: media-sound/deep-filter/ media-sound/deep-filter/files/ X-VCS-Committer: ryanli X-VCS-Committer-Name: Ryan Li X-VCS-Revision: 5c222b6b974340d45db029cf46f57f25b9094a5c X-VCS-Branch: dev Date: Sun, 19 Jan 2025 10:03:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 88c0447f-6ac1-45dd-899b-5df9f231f60f X-Archives-Hash: 8176c272d5d546de7f118db4ac264571 commit: 5c222b6b974340d45db029cf46f57f25b9094a5c Author: Ryan Li ryanli org> AuthorDate: Sun Jan 19 10:02:22 2025 +0000 Commit: Ryan Li ryanli org> CommitDate: Sun Jan 19 10:02:22 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5c222b6b media-sound/deep-filter: Fix package test by adding dependencies. Closes: https://bugs.gentoo.org/947386 Signed-off-by: Ryan Li ryanli.org> ...0.5.6-r1.ebuild => deep-filter-0.5.6-r2.ebuild} | 1 + .../deep-filter/files/deep-filter-test-deps.patch | 43 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/media-sound/deep-filter/deep-filter-0.5.6-r1.ebuild b/media-sound/deep-filter/deep-filter-0.5.6-r2.ebuild similarity index 99% rename from media-sound/deep-filter/deep-filter-0.5.6-r1.ebuild rename to media-sound/deep-filter/deep-filter-0.5.6-r2.ebuild index c0269b505..1788fcf66 100644 --- a/media-sound/deep-filter/deep-filter-0.5.6-r1.ebuild +++ b/media-sound/deep-filter/deep-filter-0.5.6-r2.ebuild @@ -547,6 +547,7 @@ S=${WORKDIR}/DeepFilterNet-${PV} PATCHES=( "${FILESDIR}/${PN}-library-path.patch" + "${FILESDIR}/${PN}-test-deps.patch" "${FILESDIR}/${PN}-0.5.6-use-updated-time.patch" ) diff --git a/media-sound/deep-filter/files/deep-filter-test-deps.patch b/media-sound/deep-filter/files/deep-filter-test-deps.patch new file mode 100644 index 000000000..83dde6fb3 --- /dev/null +++ b/media-sound/deep-filter/files/deep-filter-test-deps.patch @@ -0,0 +1,43 @@ +diff --git a/libDF/Cargo.toml b/libDF/Cargo.toml +index 3f30115..35ee53c 100644 +--- a/libDF/Cargo.toml ++++ b/libDF/Cargo.toml +@@ -31,7 +31,13 @@ required-features = ["bin", "tract", "wav-utils", "transforms"] + [features] + default = ["default-model", "vorbis", "flac"] + +-transforms = ["dep:thiserror", "dep:ndarray", "dep:rubato"] ++transforms = [ ++ "wav-utils", ++ "dep:thiserror", ++ "dep:ndarray", ++ "dep:rubato", ++] ++ + dataset = [ + "dep:thiserror", + "dep:ndarray", +@@ -125,6 +131,8 @@ rand = "0.8" + rstest = "0.17" + env_logger = "0.10" + log = { version = "0.4", features = ["std"] } ++rand_xoshiro = "0.6" ++crossbeam-channel = "^0.5" + + [package.metadata.capi.header] + name = "deep_filter" +diff --git a/libDF/src/lib.rs b/libDF/src/lib.rs +index bac7f48..e9b9b4d 100644 +--- a/libDF/src/lib.rs ++++ b/libDF/src/lib.rs +@@ -14,6 +14,10 @@ pub const UNIT_NORM_INIT: [f32; 2] = [0.001, 0.0001]; + + #[cfg(any(feature = "transforms", feature = "dataset"))] + pub mod transforms; ++ ++#[cfg(all(feature = "transforms", test))] ++pub mod util; ++ + #[cfg(feature = "dataset")] + #[path = ""] + mod reexport_dataset_modules {