From patchwork Thu Mar 28 20:00:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Eisenmann X-Patchwork-Id: 1584 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2496E16D46; Thu, 28 Mar 2019 19:05:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 7772916D46 for ; Thu, 28 Mar 2019 19:05:08 +0000 (GMT) Received: from localhost ([127.0.0.1]:40835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9aKo-00072C-AZ for patchwork@mira.cbaines.net; Thu, 28 Mar 2019 15:05:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9aKl-000721-J3 for guix-patches@gnu.org; Thu, 28 Mar 2019 15:05:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9aKk-00023j-MP for guix-patches@gnu.org; Thu, 28 Mar 2019 15:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49435) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h9aKk-00023U-Hz for guix-patches@gnu.org; Thu, 28 Mar 2019 15:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h9aKk-00046i-4m for guix-patches@gnu.org; Thu, 28 Mar 2019 15:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35033] [PATCH] gnu: mpv: Set absolute path to 'youtube-dl'. Resent-From: Timo Eisenmann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 Mar 2019 19:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35033 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35033@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155379985715729 (code B ref -1); Thu, 28 Mar 2019 19:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Mar 2019 19:04:17 +0000 Received: from localhost ([127.0.0.1]:34746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9aK0-00045d-ST for submit@debbugs.gnu.org; Thu, 28 Mar 2019 15:04:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9aJz-00045O-4f for submit@debbugs.gnu.org; Thu, 28 Mar 2019 15:04:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:54680) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h9aJu-0001kp-0M for submit@debbugs.gnu.org; Thu, 28 Mar 2019 15:04:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9aJt-0006Gh-2J for guix-patches@gnu.org; Thu, 28 Mar 2019 15:04:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9aJs-0001kS-5b for guix-patches@gnu.org; Thu, 28 Mar 2019 15:04:09 -0400 Received: from mout0.freenet.de ([2001:748:100:40::2:2]:55336) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h9aJr-0001jx-U3 for guix-patches@gnu.org; Thu, 28 Mar 2019 15:04:08 -0400 Received: from [195.4.92.164] (helo=mjail1.freenet.de) by mout0.freenet.de with esmtpa (ID eisenmann@fn.de) (port 25) (Exim 4.90_1 #2) id 1h9aJm-00052u-PT for guix-patches@gnu.org; Thu, 28 Mar 2019 20:04:02 +0100 Received: from [::1] (port=47620 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID eisenmann@fn.de) (Exim 4.90_1 #2) id 1h9aJm-0005SR-Om for guix-patches@gnu.org; Thu, 28 Mar 2019 20:04:02 +0100 Received: from sub4.freenet.de ([195.4.92.123]:49880) by mjail1.freenet.de with esmtpa (ID eisenmann@fn.de) (Exim 4.90_1 #2) id 1h9aHV-0002hP-D2 for guix-patches@gnu.org; Thu, 28 Mar 2019 20:01:41 +0100 Received: from p200300d403edff0053193646953a2512.dip0.t-ipconnect.de ([2003:d4:3ed:ff00:5319:3646:953a:2512]:44334 helo=localhost.localdomain) by sub4.freenet.de with esmtpsa (ID eisenmann@fn.de) (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (port 587) (Exim 4.90_1 #2) id 1h9aHV-0006Qw-9p; Thu, 28 Mar 2019 20:01:41 +0100 From: Timo Eisenmann Date: Thu, 28 Mar 2019 21:00:54 +0100 Message-Id: <20190328200054.8306-1-eisenmann@fn.de> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Originated-At: 2003:d4:3ed:ff00:5319:3646:953a:2512!44334 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Timo Eisenmann Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/video.scm (mpv)[arguments]: Add phase 'patch-paths' to substitute in the absolute path to 'youtube-dl'. --- gnu/packages/video.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 55a1931530..3c5ade55a3 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1326,6 +1326,13 @@ SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.") (arguments '(#:phases (modify-phases %standard-phases + (add-after + 'unpack 'patch-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((ytdl (assoc-ref inputs "youtube-dl"))) + (substitute* "player/lua/ytdl_hook.lua" + (("\"youtube-dl\",") + (string-append "\"" ytdl "/bin/youtube-dl\",")))))) (add-before 'configure 'setup-waf (lambda* (#:key inputs #:allow-other-keys)