Message ID | 20230427143200.13000-1-d@delgado.nrw |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7A9D427BBEA; Thu, 27 Apr 2023 15:33:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2E01F27BBE2 for <patchwork@mira.cbaines.net>; Thu, 27 Apr 2023 15:33:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1ps2gD-0001Xi-0N; Thu, 27 Apr 2023 10:33:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1ps2gA-0001X2-UF for guix-patches@gnu.org; Thu, 27 Apr 2023 10:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1ps2gA-0003T4-MO for guix-patches@gnu.org; Thu, 27 Apr 2023 10:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1ps2gA-0007um-HD for guix-patches@gnu.org; Thu, 27 Apr 2023 10:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63117] [PATCH] gnu: yt-dlp: Change input. Resent-From: Dominik Delgado Steuter <d@delgado.nrw> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Apr 2023 14:33:02 +0000 Resent-Message-ID: <handler.63117.B.168260593930370@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63117 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63117@debbugs.gnu.org Cc: Dominik Delgado Steuter <d@delgado.nrw> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168260593930370 (code B ref -1); Thu, 27 Apr 2023 14:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Apr 2023 14:32:19 +0000 Received: from localhost ([127.0.0.1]:59486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1ps2fT-0007tm-DU for submit@debbugs.gnu.org; Thu, 27 Apr 2023 10:32:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:34694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <d@delgado.nrw>) id 1ps2fR-0007te-3M for submit@debbugs.gnu.org; Thu, 27 Apr 2023 10:32:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <d@delgado.nrw>) id 1ps2fQ-0001K1-TE for guix-patches@gnu.org; Thu, 27 Apr 2023 10:32:16 -0400 Received: from delgado.nrw ([217.160.67.216]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <d@delgado.nrw>) id 1ps2fL-0003Ef-Gz for guix-patches@gnu.org; Thu, 27 Apr 2023 10:32:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=delgado.nrw; s=mail; t=1682605928; bh=GMJQ5aWDxPn4BXoJt7uTjinBFYu+fL3TG99cGy49uG8=; h=From:To:Cc:Subject:Date:From; b=ZJhb/BELMeHIZBPjcOoUY5J5Kpg9hse52irHtWlmDGvrvMg42lMZZEea3ZaK9F0Kb M9a7XLuzdkHWduCJ9RnnafG7PNdhVDTnItk/+LWozirlNnD6V7abs4JuJS+80wWjBi 3+Sv2n3ei0so8CMrY+fd3hiDwSqKcA66BZO3A8GPvtnSpv52JWd9rdj+qn9Kux4PVs fiHZveRRhXGe1OAUx69tl4GzjJao6aK116kDsAJfIy7u4XGlQ97fB+iMv4TTnaZPwq RNdBKcZ8O8fcfIOIlhCu7c5pwaFNdV3P2G2+rSjlkepjdhNnCWhsH+Sg+j3iX/4NGW MwDMVUpjZUPXQ== Date: Thu, 27 Apr 2023 16:32:00 +0200 Message-Id: <20230427143200.13000-1-d@delgado.nrw> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.160.67.216; envelope-from=d@delgado.nrw; helo=delgado.nrw X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Reply-to: Dominik Delgado Steuter <d@delgado.nrw> X-ACL-Warn: , Dominik Delgado Steuter via Guix-patches <guix-patches@gnu.org> From: Dominik Delgado Steuter via Guix-patches via <guix-patches@gnu.org> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#63117] gnu: yt-dlp: Change input.
|
|
Commit Message
Dominik Delgado Steuter
April 27, 2023, 2:32 p.m. UTC
yt-dlp complained when the "--add-metadata" flag was used. youtube-dl does not need ffmpeg as a propagated-input, though. * gnu/packages/video.scm (yt-dlp)[inputs]: Remove ffmpeg. [propagated-inputs]: Add ffmpeg. --- gnu/packages/video.scm | 3 +++ 1 file changed, 3 insertions(+) base-commit: fa685c87eaa9888a4278f39bb2b815673589dced
Comments
On Thu, 27 Apr 2023, Dominik Delgado Steuter via Guix-patches via wrote: > yt-dlp complained when the "--add-metadata" flag was used. > youtube-dl does not need ffmpeg as a propagated-input, though. Dominik, Thanks for working on improving our yt-dlp package. Can you explain a little more about why yt-dlp needs ffmpeg to be propagated? I haven't looked too closely, but I suspect yt-dlp just want to be able to call ffmpeg at runtime. If that's true, then I think it would be better to use substitute* in a phase so that yt-dlp can use the full path to ffmpeg, and not clutter folks' profiles. If I'm correct, can you provide an updated patch that does that? I'm happy to provide more guidance if you need it. If I'm wrong and ffmpeg needs to be propagated for some other reason, can you add a comment in the code explaining the need? Best, Jack
Hi Jack, thanks for reviewing my patch. You are probably right that yt-dlp only needs the path and not necessarily the propagated-input. I will try to figure out how exactly to do that and then send the updated patch. Regards, Dominik Am 29.04.23 um 06:36 schrieb Jack Hill: > On Thu, 27 Apr 2023, Dominik Delgado Steuter via Guix-patches via wrote: > >> yt-dlp complained when the "--add-metadata" flag was used. >> youtube-dl does not need ffmpeg as a propagated-input, though. > > Dominik, > > Thanks for working on improving our yt-dlp package. Can you explain a > little more about why yt-dlp needs ffmpeg to be propagated? I haven't > looked too closely, but I suspect yt-dlp just want to be able to call > ffmpeg at runtime. If that's true, then I think it would be better to > use substitute* in a phase so that yt-dlp can use the full path to > ffmpeg, and not clutter folks' profiles. > > If I'm correct, can you provide an updated patch that does that? I'm > happy to provide more guidance if you need it. > > If I'm wrong and ffmpeg needs to be propagated for some other reason, > can you add a comment in the code explaining the need? > > Best, > Jack
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 838dfe7..df6bbc5 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -2598,6 +2598,7 @@ (define-public yt-dlp (when tests? (invoke "pytest" "-k" "not download")))))))) (inputs (modify-inputs (package-inputs youtube-dl) + (delete ffmpeg) ;yt-dlp needs it as propagated-input (append python-brotli python-certifi python-mutagen @@ -2611,6 +2612,8 @@ (define-public yt-dlp (list pandoc) '()) (list python-pytest zip))) + (propagated-inputs + (list ffmpeg)) (description "yt-dlp is a small command-line program to download videos from YouTube.com and many more sites. It is a fork of youtube-dl with a