From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kDmnFrckvmEckwAAgWs5BA (envelope-from ) for ; Sat, 18 Dec 2021 19:13:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cCE5ErckvmEQQQAAbx9fmQ (envelope-from ) for ; Sat, 18 Dec 2021 18:13:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0F26CF01D for ; Sat, 18 Dec 2021 19:13:11 +0100 (CET) Received: from localhost ([::1]:46084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myeCk-00061g-7G for larch@yhetil.org; Sat, 18 Dec 2021 13:13:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myeCc-00061Y-Cu for guix-patches@gnu.org; Sat, 18 Dec 2021 13:13:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myeCc-00083k-4f for guix-patches@gnu.org; Sat, 18 Dec 2021 13:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myeCb-0006oP-Qz for guix-patches@gnu.org; Sat, 18 Dec 2021 13:13:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52247] [PATCH v2 1/2] gnu: shotcut: Find ffmpeg and mlt at runtime. References: <20211202161817.554276-1-monego@posteo.net> In-Reply-To: <20211202161817.554276-1-monego@posteo.net> Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Dec 2021 18:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52247 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52247@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 52247-submit@debbugs.gnu.org id=B52247.163985117426153 (code B ref 52247); Sat, 18 Dec 2021 18:13:01 +0000 Received: (at 52247) by debbugs.gnu.org; 18 Dec 2021 18:12:54 +0000 Received: from localhost ([127.0.0.1]:43789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myeCT-0006nl-SJ for submit@debbugs.gnu.org; Sat, 18 Dec 2021 13:12:54 -0500 Received: from mout01.posteo.de ([185.67.36.65]:47423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myeCQ-0006nW-Kh for 52247@debbugs.gnu.org; Sat, 18 Dec 2021 13:12:52 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 69BAF240026 for <52247@debbugs.gnu.org>; Sat, 18 Dec 2021 19:12:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1639851164; bh=zA5wneQj3wpceVJFZVTnpZCmnPmJoW4bUyBhSBQ+R0g=; h=From:To:Cc:Subject:Date:From; b=q+7gslnq+o2NPcXFBdzVSFV1PiMPqgQNVDbTkRMOO6UtpVB811eiAOlvapDDMDIaG BbHFCPOgcbP7ZFLhjCfA6mHchqsPRd5cyhS5KYFe9XAMh7TOWbMuT78vUX0PrbDS0+ NWdozEjS4W0bPRxTPD77REFocMFwuulJj6sZ6ZGoioADWJyYNNkZmAO1JIDb99P0as Pt9Khtp6IpaFAg+Ep3kEyJ7SB4pk90t8cvrJZK77SRj/dTt6tJXO22MVMFHqgvsqdk F9iiqJYIj77IQ9+xtNwKvUMTisaenFdTdoCgD+CIFrSm47p0EpuLhxDJ0xPlRF7upz Y3uLsWQlERxhw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JGYqH1qdSz6tmL; Sat, 18 Dec 2021 19:12:42 +0100 (CET) From: Vinicius Monego Date: Sat, 18 Dec 2021 18:12:26 +0000 Message-Id: <20211218181227.82026-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639851191; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ya1owk778Aq5y7iTAlawfSwawbnntlq3vq45HWViX0U=; b=niCRrIPkBLOB8CVjISGZAJddZTeqv/rwBp0BsW7amLc7xbI50oNRgPVQVSyDYDcG9S6r83 JvOUgykL18mng6n7DijTdsS650EAx3XUQ8B+qY2G3eI2PJFB+chZXCUK9Q1OocYOUhKSQg TtPRthcW8TqkNyypu6QsGmuZNQXI25Pww8KduMbaHH2hODp00OioW+Kx7OfFtzLxZNZ8s/ ewkJcEhoeHtl/B+TZm9wfTC9AUKRhROBX37rMFIWI9wX7rBurIEK6VvD8e4Y/qvpkev7t8 1o35Hi+Y+0rQgTyzutsbVyoTZgEAd3iVBlysVfP/e55BMcSYXAJhuNt08tkZkA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639851191; a=rsa-sha256; cv=none; b=HoSxjq8xdCAje1ktVfj4kDyXQnndUfNwzSe7g6ZCmlkto0rLqT2Qp4DBWfR6G5qeGgTrql S8mfTKSHH8MxBFuTqhS9I+POA+TkNDkJR6fHFQTDAw8npFQCgxaKuWbJTj7Zz3wCCaYmNt +izBAunFxiC4enMs/ejwB1Uv94R4Fhbhxc+gWnw8Of2NXQzYgwgBrQIfc8cjXTv8ODB0a8 8j5Rf09wGH4ptssgi9pKPcjOwJPSYtc3S0M1nQOp/OQAkCrvtkAWHA6r0L1iAeowJjb0uo pGfbCsQDon0NaPwwcMPyM3aSgvEWLY44bhQCpcV/2rpuh28enxKwiGcVu2x1+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=q+7gslnq; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=q+7gslnq; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0F26CF01D X-Spam-Score: -0.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: qVNO1gELNX6r * gnu/packages/video.scm (shotcut)[arguments]<:#phases>: Add phase 'patch-executable-paths to use full store paths for ffmpeg and mlt. --- This adds the suggestion from above, using just the string for replacement. gnu/packages/video.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 4b7251ee23..9b5738358b 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -4818,9 +4818,20 @@ transitions, and effects and then export your film to many common formats.") (base32 "0jgv6wl65gf6c4nmfica8k9vbgn3w3594d1phx1mb7zjvyy9y97k")))) (build-system qt-build-system) (arguments - `(#:tests? #f ;there are no tests + `(#:tests? #f ;there are no tests #:phases (modify-phases %standard-phases + (add-after 'unpack 'patch-executable-paths + (lambda* (#:key inputs #:allow-other-keys) + ;; Shotcut expects ffmpeg and melt executables in the shotcut + ;; directory. Use full store paths. + (let* ((ffmpeg (assoc-ref inputs "ffmpeg")) + (mlt (assoc-ref inputs "mlt"))) + (substitute* "src/jobs/ffmpegjob.cpp" + (("\"ffmpeg\"") (string-append "\"" ffmpeg "/bin/ffmpeg\""))) + (substitute* "src/jobs/meltjob.cpp" + (("\"melt\"") (string-append "\"" mlt "/bin/melt\"")) + (("\"melt-7\"") (string-append "\"" mlt "/bin/melt-7\"")))))) (replace 'configure (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out"))) base-commit: 86d6c6053c7d1c7a82c83f0daf0f5e09b1ecfb63 -- 2.30.2