From patchwork Wed May 22 09:36:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosha X-Patchwork-Id: 64782 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 0FF4D27BBE9; Wed, 22 May 2024 10:41:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0338227BBE2 for ; Wed, 22 May 2024 10:41:11 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9iSz-0007Su-UP; Wed, 22 May 2024 05:41:01 -0400 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 1s9iSv-0007SC-7G for guix-patches@gnu.org; Wed, 22 May 2024 05:40:57 -0400 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 1s9iSu-0007ls-VR for guix-patches@gnu.org; Wed, 22 May 2024 05:40:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s9iT0-0000MW-A7 for guix-patches@gnu.org; Wed, 22 May 2024 05:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71109] [PATCH] gnu: vulkan-tools: Wrap binaries with LD_LIBRARY_PATH. Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 May 2024 09:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71109 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71109@debbugs.gnu.org Cc: Sughosha X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17163708161376 (code B ref -1); Wed, 22 May 2024 09:41:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 May 2024 09:40:16 +0000 Received: from localhost ([127.0.0.1]:54660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9iSG-0000M8-Gb for submit@debbugs.gnu.org; Wed, 22 May 2024 05:40:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:34872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9iSD-0000M2-5o for submit@debbugs.gnu.org; Wed, 22 May 2024 05:40:15 -0400 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 1s9iQ0-0006dD-O5 for guix-patches@gnu.org; Wed, 22 May 2024 05:37:56 -0400 Received: from layka.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9iPy-0007IF-K1 for guix-patches@gnu.org; Wed, 22 May 2024 05:37:56 -0400 X-Virus-Scanned: SPAM Filter at disroot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1716370670; bh=DWDaA1PQfAVzkHq/qB4nBH9HYn2aM4W9/YRc3RZnHig=; h=From:To:Cc:Subject:Date; b=VKl3J8JPWdESZD6LSTZVbJTtMLASI8UjgJogxNNav27vwQJwVal0MKvjkCdELmXym lSAEsgf3q2qELlXJmYeLwQKYr5hmb5LA9PKX0ZN48uga5cjwDvA2zQ3oV6cPUNjbyl L7C6dxvI5gQi2JBZ4M19of4nbmqb9adMMVcTaWMmV0BjpdssiPS3pRB+O9i71aiKmL Ihra74ZR2f3A4JARVL2o7uX5bxhsdoSXTqn+1K3D4dS8WCORZxzP62MpKV2tgz6ktT XQmzrQALD2este7vQ2XUzj73anxrUZzzdRQCcvihCoRxiXnVQExdtu3dqxg0OvRpPs X19u9cuTWWdaw== Date: Wed, 22 May 2024 15:06:19 +0530 Message-ID: <0f2a806ee6259147a098e8d672d03ed768fde5fa.1716370579.git.sughosha@disroot.org> MIME-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=sughosha@disroot.org; helo=layka.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Reply-to: Sughosha X-ACL-Warn: , Sughosha via Guix-patches X-Patchwork-Original-From: Sughosha via Guix-patches via From: Sughosha Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This fixes not finding vulkan-loader. * gnu/packages/vulkan.scm (vulkan-tools)[arguments]<#:phases>: Wrap-binaries with LD_LIBRARY_PATH. Change-Id: I9aaf1cf04f70f1da976fa84d2189ca2c01b9520f --- gnu/packages/vulkan.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) base-commit: e9b25a6c6c626a560d28a1f732e6e5d362d584a4 diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm index 4c53a19aba..dcf97e98dd 100644 --- a/gnu/packages/vulkan.scm +++ b/gnu/packages/vulkan.scm @@ -368,7 +368,16 @@ (define-public vulkan-tools (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? - (invoke "./tests/vulkan_tools_tests"))))))) + (invoke "./tests/vulkan_tools_tests")))) + (add-after 'install 'wrap-binaries + (lambda* (#:key outputs #:allow-other-keys) + (for-each + (lambda (file) + (wrap-program file + `("LD_LIBRARY_PATH" ":" = + (,(getenv "LIBRARY_PATH"))))) + (find-files (string-append (assoc-ref outputs "out") + "/bin")))))))) (home-page "https://github.com/KhronosGroup/Vulkan-Tools") (synopsis "Tools and utilities for Vulkan")