From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 4FvVObe9TWaIBwAAA41jLg (envelope-from ) for ; Wed, 22 May 2024 11:41:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id WJ5EM7e9TWb9ZgAA62LTzQ (envelope-from ) for ; Wed, 22 May 2024 11:41:11 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=VKl3J8JP; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716370871; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=yKsvm0px/cTbQURwc/HtW7vCkbHNOoGt9xR0Zi+XTM0=; b=acEtJSYiYg1IDxDHxIs2SMZ5co95ANqqa9CEA7vBcDLJ8D29ibBE+vbVRZuXsmVT7SyL0Q VDA28jnmKHY7f9zpgWZALlsaDCe14AFA0dyi3gOM6NzxfQVC8KQmleVvviD/QyuWSTddRY Y41KzGaBzvPs7hU3LMC0Qw3eVdxJChFLNq5MZDSGMmumEFpktGSdL97+CORcOqiNUdPLix BNN32tcd14rC7GAbNegMK/yV9jpx+cR84lpjbEVkb2zfaXlCWnX6RIAqVyTgbw8NwXMKfa LDr7SLKWsXZPPZkWa3hn869vWBpK2Y1fpjcvHiRtgefjjwJpv9yidggaWwHSWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=VKl3J8JP; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716370871; a=rsa-sha256; cv=none; b=jYsN6p+MAstfDCD0xm6UOBCYNeUcifEesxoLPCKh8i6pNhTCFC/f4RQahE8AtSmSBdhknW zkTKI8kyXz3qXbgjWfB2GD99f1ETw93i/KYaq96zw6/+Nvz2CXAxVo1H0C8LT28lVDKbFN 5gKZ8qF3U7J4uShS/Km7r7p9cWTQoLFEtEKNGU9kLo/3e+U0KpbX1XA4oomox3QRCtS0R9 +gyw3JuFWPOeHCKC0sVx/f7/f8Kf84zmMj/vzBjngdZnO4Mt4jCEEAa9Ecr/MHX+sHDJ/W h42GfR1VGJYw77Av2xZX3joRj6wQFbChiUgbI18cR+fZ4qnY+y+sVNt5xkSYIA== 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 66A6874B2C for ; Wed, 22 May 2024 11:41:11 +0200 (CEST) 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 Content-Transfer-Encoding: 8bit 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 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.56 X-Migadu-Queue-Id: 66A6874B2C X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.56 X-TUID: HN0tkAT1hbpX 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(-) 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") base-commit: e9b25a6c6c626a560d28a1f732e6e5d362d584a4 -- 2.41.0