From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 05 05:11:23 2023 Received: (at submit) by debbugs.gnu.org; 5 Mar 2023 10:11:23 +0000 Received: from localhost ([127.0.0.1]:38532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYlKt-0001B7-A4 for submit@debbugs.gnu.org; Sun, 05 Mar 2023 05:11:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:39128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYlKq-0001Ay-LZ for submit@debbugs.gnu.org; Sun, 05 Mar 2023 05:11:21 -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 ) id 1pYlKp-0004ct-13 for guix-patches@gnu.org; Sun, 05 Mar 2023 05:11:19 -0500 Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1pYlKm-0008KX-O9 for guix-patches@gnu.org; Sun, 05 Mar 2023 05:11:18 -0500 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (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-102.mailbox.org (Postfix) with ESMTPS id 4PTyCZ5yjKz9swN; Sun, 5 Mar 2023 11:11:06 +0100 (CET) References: <5646122.DvuYhMxLoT@localhost.localdomain> <87357ult1k.fsf@nckx> From: Jessica Tallon To: Tobias Geerinckx-Rice Subject: Re: [bug#61117] Update svtplay-dl to 4.18 Date: Sun, 05 Mar 2023 11:05:28 +0100 In-reply-to: <87357ult1k.fsf@nckx> Message-ID: <877cvv33vo.fsf@tsyesika.se> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2001:67c:2050:0:465::102; envelope-from=tsyesika@tsyesika.se; helo=mout-p-102.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-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: 61117@debbugs.gnu.org, guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, Sorry for the long delay on addressing this feedback. Tobias Geerinckx-Rice writes: > [[PGP Signed Part:Undecided]] > Jessica, > > Please avoid propagation whenever possible; it breaks all kinds of > nice things. > > Propagating A from B means that Guix will effectively =E2=80=98install=E2= =80=99 A > alongside B when the user installs only B. Or how classical package > managers bluntly handle =E2=80=98dependencies=E2=80=99. Not good! > Thanks for the tip, I've included a patch which does it this way. > >> 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. 4.17 did indeed need ffmpeg, I've included two patches one which resolves the ffmpeg issue and the other which updates it to 4.18. Thanks, Jessica. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0000-cover-letter.patch Content-Description: Cover letter From 1b81f1786ba0cb038bf76ab74cbc90847d06206b Mon Sep 17 00:00:00 2001 Message-Id: From: Jessica Tallon Date: Sun, 5 Mar 2023 11:02:49 +0100 Subject: [PATCH 0/2] Upgrade svtplay-dl to 4.18 & fix wrapping with ffmpeg The first patch fixes svtplay-dl which needs ffmpeg to create a unified file with both sound and video combined. Before it didn't have access to ffmpeg so it would display an error and leave the two files uncombined. The second upgrades svtplay-dl to the latest version, 4.18. Jessica Tallon (2): gnu: fix svtplay-dl wrapping to use ffmpeg gnu: svtplay-dl update to 4.18 gnu/packages/video.scm | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) -- 2.39.1 --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-fix-svtplay-dl-wrapping-to-use-ffmpeg.patch Content-Transfer-Encoding: quoted-printable Content-Description: Patch to fix ffmpeg issue From e9d073dbf37323d11bddae32a1c54d65864959be Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: References: From: Jessica Tallon Date: Sun, 5 Mar 2023 10:43:58 +0100 Subject: [PATCH 1/2] gnu: fix svtplay-dl wrapping to use ffmpeg * gnu/packages/video.scm (svtplay-dl): Wrap program to give access to ffmpe= g. --- gnu/packages/video.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 13299fdf06..721f7c4d4e 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -64,6 +64,7 @@ ;;; Copyright =C2=A9 2022 Chadwain Holness ;;; Copyright =C2=A9 2022 Andy Tai ;;; Copyright =C2=A9 2023 Ott Joon +;;; Copyright =C2=A9 2023 Jessica Tallon ;;; ;;; This file is part of GNU Guix. ;;; @@ -5690,8 +5691,19 @@ (define-public svtplay-dl (base32 "0yjxmvldskw4pji3lg69pbx05izvxahz9my7z5p31mkiz6v33dmx")))) (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'wrap-executable + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (ffmpeg (assoc-ref inputs "ffmpeg"))) + (wrap-program (string-append out "/bin/svtplay-dl") + `("PATH" ":" prefix + ,(list (string-append ffmpeg "/bin")))))))))) (inputs (list ffmpeg python-pyaml python-requests python-pysocks - python-cryptography)) + python-cryptography bash-minimal)) (home-page "https://svtplay-dl.se/") (synopsis "Download or stream SVT Play's (and others) TV programmes") (description --=20 2.39.1 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-gnu-svtplay-dl-update-to-4.18.patch Content-Description: Patch to update svtplay-dl to 4.18 From 1b81f1786ba0cb038bf76ab74cbc90847d06206b Mon Sep 17 00:00:00 2001 Message-Id: <1b81f1786ba0cb038bf76ab74cbc90847d06206b.1678010569.git.tsyesika@tsyesika.se> In-Reply-To: References: From: Jessica Tallon Date: Sun, 5 Mar 2023 10:56:54 +0100 Subject: [PATCH 2/2] gnu: svtplay-dl update to 4.18 * gnu/packages/video.scm (svtplay-dl) update to 4.18 --- gnu/packages/video.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 721f7c4d4e..fbebaaff28 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -5680,7 +5680,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 @@ -5689,7 +5689,7 @@ (define-public svtplay-dl (file-name (git-file-name name version)) (sha256 (base32 - "0yjxmvldskw4pji3lg69pbx05izvxahz9my7z5p31mkiz6v33dmx")))) + "1xb2n3bwjddr86mjynbfd8m2g98gzqbj5mmsfc735q9xp14l30pf")))) (build-system python-build-system) (arguments (list -- 2.39.1 --=-=-=--