From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oGfwG9M+VGcZKQEA62LTzQ:P1 (envelope-from ) for ; Sat, 07 Dec 2024 12:25:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oGfwG9M+VGcZKQEA62LTzQ (envelope-from ) for ; Sat, 07 Dec 2024 13:25:55 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=iu7iTFQ3; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=LSiDbHUO; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733574355; a=rsa-sha256; cv=none; b=AdA1IjlTYaImnnZjKuWL3taWVfnJdPyMRR8hyRvEVqrTypcplpZ1FtM5bKD+O9SrwopgZL Uu1gJrbSjQ7Y8vAtCE/+iTOLxJkU3IurrLmdmbUIgPL9I+SNGM6/ACl+lBtzcir0h3apz8 rW5vZhMsmabwZhcwuoBiKTeZV7a1lFicWDmJG5YzJNajqkNwET7fmvMCnqX1WyyAfRPhOJ kwGDTdr+PCCh7giiZLBYBjNTlUiiDsX+/XIxIPIavKYis9pJ+4Y/6FlwoHfmB2Bg8mwCBX 4zQNuD5YgTsq/jVic7WFGH56tk3cgaFSG5d/zPWQeABAQRagU4HF88hL0NehqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=iu7iTFQ3; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=LSiDbHUO; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733574355; h=from:from:sender:sender:reply-to: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=4yOUFQRm+GlJSw9osL4NFD8UgafuyJc6YLZkzEiYZRU=; b=RQgi4dowZ8D4iYFJ81xvINzMsGHxjAJbd5cD4RZxRh4SIecBIyPam2FGVKLzd6uxHXdSuO +94NopvKkYW6P2cjsR7ebm92+l3Hc7Ddll/PFKRG76x4oYa0B2RqoSib6OVZjkuoc5ee6q Lz38tvbi9D9VhPkM1aiapWscLEsQ1OmwTyYeeCd+CbNBi6cxrTwrTBbssFqnAFiD19RsTC A80i0TYj1C1/qmCJ75XzX9vdrWS9W3QlGMgKO8w1kqRz0C3ar+mqe8C573KxEUYFMyfAMW zDiqbmzlef0ap4xwWASYIqchYzkW9nOfomDPYSdtRI2as/H98npgQFw4EMTfXQ== 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 5239E84D59 for ; Sat, 07 Dec 2024 13:25:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJtru-0003DJ-4P; Sat, 07 Dec 2024 07:25:06 -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 1tJtrs-0003CT-0p for guix-patches@gnu.org; Sat, 07 Dec 2024 07:25:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tJtrr-0001Xs-Ng for guix-patches@gnu.org; Sat, 07 Dec 2024 07:25:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=4yOUFQRm+GlJSw9osL4NFD8UgafuyJc6YLZkzEiYZRU=; b=iu7iTFQ3z/NlUtODLkyakwB7qyjRwq2xu9c5ts0SxYHvs4FKW7ERpFCtdAoGurUfGX9ZntIe67ItyNrPWiY5iHsQUzRGxJ8YIlyvxuf7kAacc4MbFLI34lxMb7oEhCX+H/5bATiTSRLbmzN2I3iayJRNMudzYpmxu6WUz2Fvd4vYWRtaaq08rTY94k7L/UqxNAbJrTJZqXFM2vH6i3t44UxALDh+4ZVIT658MHcc7vAlzh08BXYGuSlTsvJ7l3A9dKSKTEfmhEfpFc6FL2S7KceifPAAMK5I0ys7DZWeHvWfirrKRWBvvMMthCs3O1n/nn19tHjz4l5HSIVyH6qV7g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJtrq-0001n0-Pz; Sat, 07 Dec 2024 07:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74723] [PATCH 02/19] gnu: carla: Fix making carla executable. Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: gabriel@erlikon.ch, guix-patches@gnu.org Resent-Date: Sat, 07 Dec 2024 12:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74723 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74723@debbugs.gnu.org Cc: Sughosha , Gabriel Wicki X-Debbugs-Original-Xcc: Gabriel Wicki Received: via spool by 74723-submit@debbugs.gnu.org id=B74723.17335742796650 (code B ref 74723); Sat, 07 Dec 2024 12:25:02 +0000 Received: (at 74723) by debbugs.gnu.org; 7 Dec 2024 12:24:39 +0000 Received: from localhost ([127.0.0.1]:45705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJtrT-0001j8-2F for submit@debbugs.gnu.org; Sat, 07 Dec 2024 07:24:39 -0500 Received: from layka.disroot.org ([178.21.23.139]:44446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJtrQ-0001if-0D for 74723@debbugs.gnu.org; Sat, 07 Dec 2024 07:24:36 -0500 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8327624ADB; Sat, 7 Dec 2024 13:24:35 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id wnoQv9t5eWdp; Sat, 7 Dec 2024 13:24:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1733574275; bh=4pYp6WzCU4WzZIzyB3tDPh6epa0Esb9j0UtU92OeGf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LSiDbHUO/BDj4JOttJwtC4k5/xwc6SeP6WDuXwahn/OZ5PwT7j024zfmzFgiCoIvV WwrRc/vUiTm5qIFoLNVAN3obQQDKSQ59SugKkb++AnPUBorZfMhCiYJ8e6HjmToZE4 3nBCNRwedNM4cP9+vZ6jKjAtRT8C9msVU+9X8bTZKanwkoQobsMOAOMmVb1++/NT2A cDSUted4dCEmLp8bx6l5gOKcjI7siSl3G0b/y1/QzMV+xdJ95ZWqrbwF3TOuhZxbO/ 0UdvBmC9qQQeH8OkeZ9piGfvSRLa7A8BfZ/7QBKFdxS+/h52VaJJcc2QDcxFG43AVg JxYg5TTbZaWtw== Date: Sat, 7 Dec 2024 17:50:16 +0530 Message-ID: In-Reply-To: References: 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: , Reply-to: Sughosha X-ACL-Warn: , Sughosha via Guix-patches From: Sughosha via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.16 X-Spam-Score: -2.16 X-Migadu-Queue-Id: 5239E84D59 X-Migadu-Scanner: mx12.migadu.com X-TUID: yAbjmyWAfeK3 This commit fixes lmms opening carla. * gnu/packages/audio.scm (carla)[arguments]<#:phases>: In make-carla-executable phase, also make carla-control, carla-jack-multi, carla-jack-single, carla-patchbay and carla-rack executable. In wrap-executables phase, also wrap the other executables and resources. Change-Id: I529ccf91d3254bc9e20259460c24a6932654a45e --- gnu/packages/audio.scm | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index f842d77031..4864f41223 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -5754,13 +5754,32 @@ (define-public carla (invoke "make" "features"))) (add-after 'install 'make-carla-executable (lambda _ - (chmod (string-append #$output "/share/carla/carla") #o555))) + (with-directory-excursion (string-append #$output + "/share/carla") + (for-each (lambda (file) + (chmod file #o555)) + (list "carla" + "carla-control" + "carla-jack-multi" + "carla-jack-single" + "carla-patchbay" + "carla-rack"))))) (add-after 'install 'wrap-executables (lambda* (#:key inputs #:allow-other-keys) - (wrap-script (string-append #$output "/bin/carla") - #:guile (search-input-file inputs "bin/guile") - `("GUIX_PYTHONPATH" ":" prefix - (,(getenv "GUIX_PYTHONPATH"))))))))) + (with-directory-excursion #$output + (for-each (lambda (file) + ;; Wrap only those executable files that other + ;; programs (e.g. lmms) would call. + (when (and (executable-file? file) + (not (symbolic-link? file)) + (not (string-suffix? ".py" file))) + (wrap-script file + #:guile (search-input-file inputs + "bin/guile") + `("GUIX_PYTHONPATH" ":" prefix + (,(getenv "GUIX_PYTHONPATH")))))) + (append (find-files "bin") + (find-files "share/carla/resources"))))))))) (inputs (list alsa-lib ffmpeg -- 2.46.0