From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uAR7BDG/+mFmcAEAgWs5BA (envelope-from ) for ; Wed, 02 Feb 2022 18:28:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yMAMATG/+mEsOAEAauVa8A (envelope-from ) for ; Wed, 02 Feb 2022 18:28:17 +0100 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 7044E4180E for ; Wed, 2 Feb 2022 18:28:16 +0100 (CET) Received: from localhost ([::1]:45398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFJQV-0000Fv-AU for larch@yhetil.org; Wed, 02 Feb 2022 12:28:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFHwM-00044n-3b for guix-patches@gnu.org; Wed, 02 Feb 2022 10:53:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59248) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFHwL-00058Q-Q7 for guix-patches@gnu.org; Wed, 02 Feb 2022 10:53:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFHwL-0006GW-QR for guix-patches@gnu.org; Wed, 02 Feb 2022 10:53:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53725] [PATCH] gnu: mlt: Wrap LADSPA_PATH and FREI0R_PATH. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Feb 2022 15:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53725 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53725@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164381716824059 (code B ref -1); Wed, 02 Feb 2022 15:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Feb 2022 15:52:48 +0000 Received: from localhost ([127.0.0.1]:53145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFHw8-0006Fz-CL for submit@debbugs.gnu.org; Wed, 02 Feb 2022 10:52:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:34918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFHw5-0006Fr-RP for submit@debbugs.gnu.org; Wed, 02 Feb 2022 10:52:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFHw4-0003dy-3g for guix-patches@gnu.org; Wed, 02 Feb 2022 10:52:44 -0500 Received: from mout02.posteo.de ([185.67.36.66]:44319) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFHw0-00056J-OI for guix-patches@gnu.org; Wed, 02 Feb 2022 10:52:43 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id A1529240104 for ; Wed, 2 Feb 2022 16:52:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1643817157; bh=SufQsEkq5f5uCFoMJ7y+5zWoip+Kpsp+uHy2O/bORA4=; h=From:To:Cc:Subject:Date:From; b=Ubb9CYsQ9Qi0fawc0CoSC+XzvycmYgIOBOAR6kzwmwb7GeFC/E0mRQScxb6Ygbcut 3buW5nZ1OgwJctdCQWu6rRTlrrfujHs9LDvc568kaELBI771A92mXusSURhBNxC7DJ 0DXNfLDcHn3lnJmJjtZCGlrEBfsYPvnS1ltRDL+XETRkj6s0k2CfT0ic2ZxgnoK04G O8xGCikcaArbrPKNdeK6P0Cy2q2jof1jAcsv2lf3Qhyok543c47kB9tINAPP88iZzK DlNKQ30RGaFGGz3rlfkJFM1DnxP8uLE79w3/pvNE8DN9aIluoy4YO43rFDdq6gI64s xxFitollWz/6A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JpmXN5TcXz6tmX; Wed, 2 Feb 2022 16:52:36 +0100 (CET) From: Vinicius Monego Date: Wed, 2 Feb 2022 15:52:21 +0000 Message-Id: <20220202155221.289085-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=monego@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=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: 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=1643822896; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xy3zZhk3wat0wYSMzgnU+CJ8RHMzFr2XIIifB+ez8ks=; b=oom+/EJ/M901rUWxzjl7RD25svzNjKwxA8055oKlWXpYy5JQD7a59be4ozMhH4tWkMDtXc rPySnchANUG7FxNZSckgOgu0Qsj8oxFr1HiUCWuKu4QVwNNo7XDqxgK0X+1nz2hI5DhN5J pKVQ8lW4J84h0xVbZsrO2i9bQ62nfhYNCsWzAoqUAKw/idX0T/PIywGv+lHM2ORVKumjAL ECm9z1i2QEJyRZyOnQ2k/X9HL7JbegxzFAvXbzoQUMqI+Q/a5mSPCeargG/26iU6VGUXp0 wH/z2i2Hacvz+g/VWcwfCoBEBJG3eNqWjmqd13kkqeLb/iBL9AREIR+14OPWVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643822896; a=rsa-sha256; cv=none; b=mf3JBAuWuz0drC63ItIvPaSqgxvUcH8mkwdAz108foENYCN6ETgcGYmmVEI81QLKb48v46 ik2/5MG8ucoo5SZUuZ84UxYAi1yUZz0+DxZj1ixARPjt4L0K+MO3K9c1g7TcsZ+EWDGWmp ph4HLp96w0sGfNynS1FTNxLB0ezEtLC4bGEQtIzcptEIyjEKVhqBSF3EyioKsHSdU0mqSm 8tIBn0WjXrp6LEGRokRXZFjJusAmPgCTBKhiuKO6IBRe3kl6BE2lGO38C19h/ELrupBovQ Y2wp6qBr5bEEpXQZMMdNs0LBP8aW2iqHCLnDClrM4ZYcsgYx8DKsKM7+rHwOHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=Ubb9CYsQ; 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: -1.73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=Ubb9CYsQ; 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: 7044E4180E X-Spam-Score: -1.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: Iu8PuWrGsZsh * gnu/packages/video.scm (mlt)[arguments]: Use gexps. Add 'wrap-executable phase. [inputs]: Add bash-minimal. --- Sending to list for comments about the symlink workaround. The linter also complains about alsa-plugins input, but I don't know what to do about it. gnu/packages/video.scm | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 8a903f6fe1..68cd5d3f83 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -3208,18 +3208,34 @@ from sites like Twitch.tv and pipes them into a video player of choice.") (base32 "17d4gs46ca3n0qg6z69hl6mmllnqj2id8ccrv8fyz8c5zm55ghqm")))) (build-system cmake-build-system) (arguments - `(#:tests? #f ;requires "Kwalify" - #:phases - (modify-phases %standard-phases - (add-before 'configure 'override-LDFLAGS - (lambda* (#:key outputs #:allow-other-keys) - (setenv "LDFLAGS" - (string-append - "-Wl,-rpath=" - (assoc-ref outputs "out") "/lib"))))))) + (list + #:tests? #f ;requires "Kwalify" + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'override-LDFLAGS + (lambda _ + (setenv "LDFLAGS" + (string-append "-Wl,-rpath=" #$output "/lib")))) + (add-after 'install 'wrap-executable + (lambda _ + (let* ((frei0r #$(this-package-input "frei0r-plugins")) + (ladspa #$(this-package-input "ladspa")) + ;; In MLT 7, 'melt' symlinks to 'melt-7'. Try to keep + ;; compatibility with MLT 6 where it's only 'melt'. + (major #$(version-major version)) + (exec (if (file-exists? + (string-append #$output "/bin/melt-" major)) + (string-append "melt-" major) + "melt"))) + (wrap-program (string-append #$output "/bin/" exec) + `("FREI0R_PATH" ":" = + (,(string-append frei0r "/lib/frei0r-1"))) + `("LADSPA_PATH" ":" = + (,(string-append ladspa "/lib/ladspa")))))))))) (inputs (list alsa-lib `(,alsa-plugins "pulseaudio") + bash-minimal ffmpeg fftw frei0r-plugins -- 2.30.2