From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cESaLv0OXmO7vQAAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 06:43:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2AFILv0OXmM6zgAAauVa8A (envelope-from ) for ; Sun, 30 Oct 2022 06:43:25 +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 8510D3933D for ; Sun, 30 Oct 2022 06:43:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1op168-0001AW-BA; Sun, 30 Oct 2022 01:43:04 -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 1op166-0001A4-BD for guix-patches@gnu.org; Sun, 30 Oct 2022 01:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1op166-000547-19 for guix-patches@gnu.org; Sun, 30 Oct 2022 01:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1op165-0006Lt-Lu for guix-patches@gnu.org; Sun, 30 Oct 2022 01:43:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58887] [PATCH][staging] gnu: vulkan-loader: Add native-search-paths field. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 Oct 2022 05:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58887 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58887@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166710856824396 (code B ref -1); Sun, 30 Oct 2022 05:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Oct 2022 05:42:48 +0000 Received: from localhost ([127.0.0.1]:37046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1op15s-0006LP-7G for submit@debbugs.gnu.org; Sun, 30 Oct 2022 01:42:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:55416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1op15q-0006LH-0A for submit@debbugs.gnu.org; Sun, 30 Oct 2022 01:42:46 -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 1op15p-00019a-Lc for guix-patches@gnu.org; Sun, 30 Oct 2022 01:42:45 -0400 Received: from mail.boiledscript.com ([144.168.59.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1op15n-00050f-Qs for guix-patches@gnu.org; Sun, 30 Oct 2022 01:42:45 -0400 Date: Sun, 30 Oct 2022 13:41:38 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1667108561; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=H7vfmIXsDWpqK5LroM0dIOxy9X7ddMQiizCHtyRfMZI=; b=Y+v7486wHkaB9BXdr2SerTwPNRzHHo6XM7HINGoPdichA1VzzxR+aw/HXERz1l4CUS/E1g Jl8xSxo8Ipe4gKrrpDncpl8fsTtrCoqECw/QDw7e4K5sI8kjNhJLf8faiL+RKOm3bPScL/ sgKLX2xv/W/r3/9TwFAI4qVKyX6WsIp7uDGj8REzotNE6dJA8/W1Y7Tj3iAGzJngzEnvEJ aIjKCjstcY/UzI+A5JvJYWCTJtVMFLun0KXBuBAGlPLb1uNoeYTnfTcSqRj8vc7uC1iW4e yF9GSWxXlKTEHZzTmyhvluhDG5qCzHHwA8TEwRc2/frzb1tLmhVZbd1PkLugnA== Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Spamd-Bar: / Received-SPF: pass client-ip=144.168.59.46; envelope-from=hako@ultrarare.space; helo=mail.boiledscript.com 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: , Sender: "Guix-patches" Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org 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=1667108605; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=H7vfmIXsDWpqK5LroM0dIOxy9X7ddMQiizCHtyRfMZI=; b=Sv4YQwk4TSwvFGJHRMAvRRtr7Y0aBoU8AIgS6WywVv4gCo9gErIYgZXXdfYFLPeXg8bjnG IhwwVqxV9NH4f6V6jRBwc9VBB5wwioeMO1ENnjsyOhzoTB7g+tei4jC9LADHA2iU6a6ZA4 1/j3OIwn9SxceNjRbbV+x0UfDWOxrMX4PXVdaXR0YaZuCd6qPY76UVb2bhPOheHprp1dqz KDyQu/bBXj46cU3smk/4Hc4u5uxNgVPeefdpgs6MNF0jqTMP6k2WKgPpzGLhFFFcjXIr7D 08oqrTzFWvLfXqlU+o59HapB7JGZMI/4a6lARYBJfcskSJwXgfwRiRB/cnYyuA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667108605; a=rsa-sha256; cv=none; b=oRgsMfiIvPOJYRmsbtNaZULvWAwN+DMaUp2ea8Mco0OdleoWpsTJVW95EIwviobhDVK/S/ of9xztoZtD+rrNMi4EIb3sLcGBSnIwt8UKVevSFucCOaCn030SHSe9qxJ1jArT7UWq/q8k R4YPp15NWrLEw4XHb5lLB3xfcrTE9yoSNdVZCa1eJEaCR1hywujwlluqrPDBwDcO9NQ39M QLnOBubSoyad1+S6vRrQaNHE2NxLDWh1FkknQ5KC69M7afvnsRxUChP6WbWVoXU4Ny2fpB o0M1I4yGQ/dKUYQGbT0rVjsQZA5XAHDaSzjOCoaLXl3c9u84Xo9uEJabNhVRiw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=Y+v7486w; 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" X-Migadu-Spam-Score: -3.64 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=Y+v7486w; 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" X-Migadu-Queue-Id: 8510D3933D X-Spam-Score: -3.64 X-Migadu-Scanner: scn1.migadu.com X-TUID: jFahett2usw5 * gnu/packages/vulkan.scm (vulkan-loader): Add native-search-paths field. [source]: Change ICD and implicit layers looking up behaviour via snippet. --- gnu/packages/vulkan.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm index f5c619a2b2..1371860583 100644 --- a/gnu/packages/vulkan.scm +++ b/gnu/packages/vulkan.scm @@ -215,6 +215,22 @@ (define-public vulkan-loader (url "https://github.com/KhronosGroup/Vulkan-Loader") (commit (string-append "v" version)))) (file-name (git-file-name name version)) + (modules '((guix build utils))) + (snippet + '(substitute* "loader/loader.c" + ;; v1.3.207- + (("VK_ICD_FILENAMES_ENV_VAR, NULL") + "\"VK_ICD_PATH\", override_paths") + (("false, NULL, NULL") + "false, \"VK_ILAYER_PATH\", override_paths") + ;; v1.3.207+ + (("VK_ICD_FILENAMES_ENV_VAR") + "\"VK_ICD_PATH\"") + (("relative_location = VK_ILAYERS_INFO_RELATIVE_DIR;" all) + (string-append "override_env = loader_secure_getenv" + "(\"VK_ILAYER_PATH\", inst);" all)) + (("\\(IMPLICIT_LAYER, \\)NULL" m) + (string-append m "override_paths")))) (sha256 (base32 "15gx9ab6w1sjq9hkpbas7z2f8f47j6mlln6p3w26qmydjj8gfjjv")))) @@ -251,6 +267,13 @@ (define-public vulkan-loader ("wayland" ,wayland))) (inputs (list vulkan-headers)) + (native-search-paths + (list (search-path-specification + (variable "VK_ICD_PATH") + (files '("share/vulkan/icd.d"))) + (search-path-specification + (variable "VK_ILAYER_PATH") + (files '("share/vulkan/implicit_layer.d"))))) (home-page "https://github.com/KhronosGroup/Vulkan-Loader") (synopsis "Khronos official ICD loader and validation layers for Vulkan") base-commit: 63bf06013820aa26aca7dc8f18cb79403b94e9a5 -- 2.38.0