Message ID | 5646122.DvuYhMxLoT@localhost.localdomain |
---|---|
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 27C4327BBED; Sat, 28 Jan 2023 11:30:44 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,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 13EF427BBEB for <patchwork@mira.cbaines.net>; Sat, 28 Jan 2023 11:30:42 +0000 (GMT) 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 1pLjPJ-0002J2-IL; Sat, 28 Jan 2023 06:30:05 -0500 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 1pLjPH-0002IZ-8G for guix-patches@gnu.org; Sat, 28 Jan 2023 06:30:03 -0500 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 1pLjPG-0006b2-W6 for guix-patches@gnu.org; Sat, 28 Jan 2023 06:30:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1pLjPG-00080d-KS for guix-patches@gnu.org; Sat, 28 Jan 2023 06:30:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61117] Update svtplay-dl to 4.18 Resent-From: Jessica Tallon <tsyesika@tsyesika.se> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 28 Jan 2023 11:30:02 +0000 Resent-Message-ID: <handler.61117.B.167490535630707@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61117 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 61117@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167490535630707 (code B ref -1); Sat, 28 Jan 2023 11:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jan 2023 11:29:16 +0000 Received: from localhost ([127.0.0.1]:39713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1pLjOV-0007zC-Ik for submit@debbugs.gnu.org; Sat, 28 Jan 2023 06:29:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:33374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <tsyesika@tsyesika.se>) id 1pLjOR-0007z2-AV for submit@debbugs.gnu.org; Sat, 28 Jan 2023 06:29:12 -0500 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 <tsyesika@tsyesika.se>) id 1pLjOR-0002E0-3u for guix-patches@gnu.org; Sat, 28 Jan 2023 06:29:11 -0500 Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <tsyesika@tsyesika.se>) id 1pLjOP-0006RL-7H for guix-patches@gnu.org; Sat, 28 Jan 2023 06:29:10 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4P3sf33vbbz9sWN for <guix-patches@gnu.org>; Sat, 28 Jan 2023 12:28:59 +0100 (CET) From: Jessica Tallon <tsyesika@tsyesika.se> Date: Sat, 28 Jan 2023 12:29:03 +0100 Message-ID: <5646122.DvuYhMxLoT@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart5904265.lOV4Wx5bFT" Content-Transfer-Encoding: 7Bit X-Rspamd-Queue-Id: 4P3sf33vbbz9sWN Received-SPF: pass client-ip=2001:67c:2050:0:465::101; envelope-from=tsyesika@tsyesika.se; helo=mout-p-101.mailbox.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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> 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#61117] Update svtplay-dl to 4.18
|
|
Commit Message
Jessica Tallon
Jan. 28, 2023, 11:29 a.m. UTC
Hello, I've attached a patch to upgrade svtplay-dl from 4.17 to 4.18. I've also moved ffmpeg form inputs to propagated-inputs as it's needed while the program is running to merge two files, not while building. Thanks, Jessica.
Comments
Jessica, Jessica Tallon 写道: > I've attached a patch to upgrade svtplay-dl from 4.17 to 4.18. Thanks! > I've also moved ffmpeg form inputs to propagated-inputs Please avoid propagation whenever possible; it breaks all kinds of nice things. Propagating A from B means that Guix will effectively ‘install’ A alongside B when the user installs only B. Or how classical package managers bluntly handle ‘dependencies’. Not good! Here's what I'd do instead [untested]: (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'wrap 'wrap-harder (lambda* (#:key inputs outputs #:allow-other-keys) (wrap-script (string-append (assoc-ref outputs "out") "/bin/svtplay-dl") `("PATH" ":" prefix (,(dirname (search-input-file inputs "bin/ffmpeg")))))))))) (native-inputs (list guile-3.0)) ; for wrap-script > it's needed while the program is > running to merge two files, not while building. So 4.17 did not need or use ffmpeg this way? Otherwise, put each unrelated changes into a separate commit: one to improve the ffmpeg situation, and one to update svtplay-dl. You can send multiple related commits as one patch series to one bug number, though. Kind regards, T G-R
Tobias Geerinckx-Rice via Guix-patches via 写道: > (lambda* (#:key inputs outputs > #:allow-other-keys) ^ Dunno why mu4e added a hard newline here. There shouldn't be one. Kind regards, T G-R
Tobias Geerinckx-Rice via Guix-patches via 写道: > (wrap-script (string-append (assoc-ref outputs > "out") > ^ And here. All the others are good. Sorry for the mess. Kind regards, T G-R
Thanks again for working on this package! On Sat, Jan 28, 2023 at 01:33:44PM +0100, Tobias Geerinckx-Rice via Guix-patches via wrote: > > I've also moved ffmpeg form inputs to propagated-inputs > > Please avoid propagation whenever possible; it breaks all kinds of nice > things. I'm here to express my weak preference for dynamically binding FFmpeg in use cases like this one. That means, I prefer if packages like svtplay-dl do not depend on FFmpeg at all, but rather expect the user to install FFmpeg alongside them. I prefer this because I use a custom FFmpeg professionally as a video engineer, and it's easier to use it with Guix packages if the dependency is resolved at run-time rather than at build-time. I'd expect that many people like me also use a variety of custom FFmpeg builds for different use cases. Like I said, it's a weak preference. And I probably wouldn't use svtplay-dl at work in the US, although I do use youtube-dl / yt-dlp. Let me know what you think.
Leo Famulari <leo@famulari.name> writes: > Thanks again for working on this package! > > On Sat, Jan 28, 2023 at 01:33:44PM +0100, Tobias Geerinckx-Rice via Guix-patches via wrote: >> > I've also moved ffmpeg form inputs to propagated-inputs >> >> Please avoid propagation whenever possible; it breaks all kinds of nice >> things. > > I'm here to express my weak preference for dynamically binding FFmpeg in > use cases like this one. > > That means, I prefer if packages like svtplay-dl do not depend on FFmpeg > at all, but rather expect the user to install FFmpeg alongside them. > > I prefer this because I use a custom FFmpeg professionally as a video > engineer, and it's easier to use it with Guix packages if the dependency > is resolved at run-time rather than at build-time. > > I'd expect that many people like me also use a variety of custom FFmpeg > builds for different use cases. > > Like I said, it's a weak preference. And I probably wouldn't use > svtplay-dl at work in the US, although I do use youtube-dl / yt-dlp. Let > me know what you think. Hello, Thanks for sharing your experiance, especially as a professional video engineer :) I think I have a mild opinion for having it bring in ffmpeg, this is mostly for three reasons: - There isn't a good way to communicate to users that they might wish to pull in ffmpeg. - svtplay-dl will download both audio and video parts and then realise it doesn't have ffmpeg and will give up producing a warning. This leaves it up to the user to fix, while a merging both files is a simple job it often has me searching through a manual as I'm not well versed in ffmpeg or similar. - I like it when things work consistantly (if x version of svtplay-dl works a specific way on my machine, it should on another machine, not dependent on my profile) My preference is mild though, let me know what you think! Thanks, Jessica.
On Sun, Mar 05, 2023 at 09:15:14PM +0100, Jessica Tallon wrote: > I think I have a mild opinion for having it bring in ffmpeg, this is > mostly for three reasons: > > - There isn't a good way to communicate to users that they might wish to > pull in ffmpeg. > > - svtplay-dl will download both audio and video parts and then realise > it doesn't have ffmpeg and will give up producing a warning. This > leaves it up to the user to fix, while a merging both files is a > simple job it often has me searching through a manual as I'm not well > versed in ffmpeg or similar. > > - I like it when things work consistantly (if x version of svtplay-dl > works a specific way on my machine, it should on another machine, not > dependent on my profile) > > My preference is mild though, let me know what you think! I think you should go with your method!
From f487a0b2b9433d3151782e187fa9b69e13b9e0c3 Mon Sep 17 00:00:00 2001 Message-Id: <f487a0b2b9433d3151782e187fa9b69e13b9e0c3.1674905145.git.tsyesika@tsyesika.se> From: Jessica Tallon <tsyesika@tsyesika.se> Date: Sat, 28 Jan 2023 11:50:32 +0100 Subject: [PATCH] * gnu/packages/video.scm (svtplay-dl) update to 4.18 --- gnu/packages/video.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 60d39c38dc..4f2012ef3c 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -5635,7 +5635,7 @@ (define-public video-contact-sheet (define-public svtplay-dl (package (name "svtplay-dl") - (version "4.17") + (version "4.18") (source (origin (method git-fetch) (uri (git-reference @@ -5644,10 +5644,11 @@ (define-public svtplay-dl (file-name (git-file-name name version)) (sha256 (base32 - "0yjxmvldskw4pji3lg69pbx05izvxahz9my7z5p31mkiz6v33dmx")))) + "1xb2n3bwjddr86mjynbfd8m2g98gzqbj5mmsfc735q9xp14l30pf")))) (build-system python-build-system) - (inputs (list ffmpeg python-pyaml python-requests python-pysocks + (inputs (list python-pyaml python-requests python-pysocks python-cryptography)) + (propagated-inputs (list ffmpeg)) (home-page "https://svtplay-dl.se/") (synopsis "Download or stream SVT Play's (and others) TV programmes") (description -- 2.39.1