From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cBZ0BeIa22YHHQEAe85BDQ:P1 (envelope-from ) for ; Fri, 06 Sep 2024 15:08:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id cBZ0BeIa22YHHQEAe85BDQ (envelope-from ) for ; Fri, 06 Sep 2024 17:08:18 +0200 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=MDsKh41L; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=B0+NG6ar; 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=1725635297; 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-type:content-type: 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=Hx+4LLjq9fszJThul22pTkiXdP+/ZXxVnksxMx3a2eE=; b=aSvtyDUWxotrUjajefEs0kGUwa4HraTGpGBmwbFX2X/9+NLWs7yp5HOkLo4JgxyluhNjga W7pDhuulpAJ34/QZf/BAhFfA75Tr0G7Yi+8cHywur/sfMd0zF7si23CI5CU7sMchQBHvFa c4eTX91wT16eoOHnuh6o+M4XrbfW1aWTOqsPEoHNLZ5Lh8U1vuVEKJu9ISzUCTB8NDKUfZ QJpM29GXneKlRA3ghmVEAp2ySosvWCGffa+IGIhE4rGz75KT98qHoOW3HiTkRyvGWJVwud ZspcXkPvA7cXo6Cuj3yMc3yG1NPBugHOXQ8Gvt+UAvyih90jQN2gAI6dpha4fQ== 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=MDsKh41L; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=B0+NG6ar; 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=1725635297; a=rsa-sha256; cv=none; b=JmDjyPJjDm80Regapa2L5XITjw9bIUWusbU8txKYtfk6Stkj7fYXcwqZJehKFiW60BpIOQ QfKNlq2Vr/3ymw9cHg+LXKhT9bKvOY1SX8H/p7ql9XxHg/sUX3adFLprgzjLVokldWg5nT 7+BesGYKq+tOBke3DB+QJNrcmlkQ69Gy08SONM+dgKOIK/cX8Zq4UoMmVyzwwZH4zUObPR BMDBxlz0H9TemEuesATUdLEGBfEjiagpx5i4zNkCzEzQeKbKmQZdeSdGtcuaff1inQhNXx xCJ6a8pdNaa4+m3l52TO0q32Ek/rF14KF4Xc1Ga0gyLCEt/1JE4YX2h/Mt8dlQ== 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 C97EE75BDC for ; Fri, 06 Sep 2024 17:08:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smaZB-0007Dk-Hu; Fri, 06 Sep 2024 11:08:05 -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 1smaZ9-00076B-96 for guix-patches@gnu.org; Fri, 06 Sep 2024 11:08:03 -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 1smaZ9-0003Sj-00 for guix-patches@gnu.org; Fri, 06 Sep 2024 11:08:03 -0400 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:From:Date:To:Subject; bh=Hx+4LLjq9fszJThul22pTkiXdP+/ZXxVnksxMx3a2eE=; b=MDsKh41LdC3q/XCw3eMGqBhrIAHnnQCn7EHJBDHmGp4hZ7SADF+91E5+D43wigLbr8/dl5djGybn4J6Bqb3JuxZy9hpbXhR7jC3PMw3lv13ZzsFmzadPBSxDvLLNPc05ArisFIkTWyvAvtyh1RvzaN1bw8ZjJRBOpKhjYJ+CpfGR5EuSBwVIfvpqG4uXRQqEbgXjmg2F+UIY4vmMEX5Fvn7BhQ8jlSlKbsUHvYEx0APGfHlWDTl8ZJh7FM4lGXtdfrMdBtEDaVQPyDdTqK1AIKfArGACuEj6t+UjFZjYtb1MJlWa+A7hJePndbBDixG3I8qESLG2w6lv68WRhm04bw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smaZ8-00053l-Fc for guix-patches@gnu.org; Fri, 06 Sep 2024 11:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73071] [PATCH mesa-updates 4/8] gnu: vulkan-headers: Hard-code libvulkan.so file name. Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 06 Sep 2024 15:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73071 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73071@debbugs.gnu.org Cc: John Kehayias , Ludovic =?UTF-8?Q?Court=C3=A8s?= , nathan , aurtzy@gmail.com, efraim@flashner.co.il Received: via spool by 73071-submit@debbugs.gnu.org id=B73071.172563524319354 (code B ref 73071); Fri, 06 Sep 2024 15:08:02 +0000 Received: (at 73071) by debbugs.gnu.org; 6 Sep 2024 15:07:23 +0000 Received: from localhost ([127.0.0.1]:53810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smaYU-000526-KZ for submit@debbugs.gnu.org; Fri, 06 Sep 2024 11:07:22 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:35163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smaYS-00051r-Ex for 73071@debbugs.gnu.org; Fri, 06 Sep 2024 11:07:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1725635235; x=1725894435; bh=Hx+4LLjq9fszJThul22pTkiXdP+/ZXxVnksxMx3a2eE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=B0+NG6arGPTsAaxMQLWfiZ5eWRDjHvJwNqaKEftscYnfbW+UkiyBxdj1eePoClLFM yt15jRxTYXxrw8GO1gKncKF4J4W7gqcjlRx4fI4nBQxyrZBJZjYUP+1ObpaMfOsQ1j 8KeRLR8i51WkO30zQodwXiT+denLSW+h73qlRgsOBo8NIOcS5VNa6PfO+fYqZsG4EQ YgcUcUACC9vWQUBqdJLjxF9X0HRMj/GWLQX/+l9jAoQygNedPtylahlKXMLsg9Yx2T ECSjxzfJoTwhYmBr912ANtu7B2j+LO7CEBSela3kM51vVPqrEEulBZsveHDz4pvAH5 TnY8rWfRSfJKA== Date: Fri, 06 Sep 2024 15:07:13 +0000 Message-ID: <5eec37609a42d1dc349b3e37a96d794140f154fa.1725634153.git.john.kehayias@protonmail.com> In-Reply-To: References: Feedback-ID: 7805494:user:proton X-Pm-Message-ID: 623a0fa05cc7d6d1619f3e8183368460eeb0cc4f MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches From: John Kehayias 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.99 X-Migadu-Queue-Id: C97EE75BDC X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.99 X-TUID: A1kvF5ZYIuW+ From: nathan * gnu/packages/vulkan.scm (vulkan-headers): Rename to=E2=80=A6 (vulkan-headers/no-loader): =E2=80=A6 this. (vulkan-headers): New variable. (vulkan-loader): Depend on =E2=80=98vulkan-headers/no-loader=E2=80=99. Change-Id: Ic674a4d965d8049e388d75137111ed0253ca3b18 Co-authored-by: Ludovic Court=C3=A8s Signed-off-by: John Kehayias --- gnu/packages/vulkan.scm | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm index 1b69da1a4d..e76455a835 100644 --- a/gnu/packages/vulkan.scm +++ b/gnu/packages/vulkan.scm @@ -299,7 +299,8 @@ (define-public vkbasalt (license (list license:bsd-3 ; src/reshade/LICENSE.md license:zlib)))) ; LICENSE -(define-public vulkan-headers +;; vulkan-headers, but without the path to vulkan-loader patched in. +(define-public vulkan-headers/no-loader (package (name "vulkan-headers") (version "1.3.280.0") @@ -316,6 +317,7 @@ (define-public vulkan-headers (build-system cmake-build-system) (arguments `(#:tests? #f)) ; No tests. + (properties '((hidden? . #t))) (home-page "https://github.com/KhronosGroup/Vulkan-Headers") (synopsis "Vulkan Header files and API registry") @@ -323,6 +325,25 @@ (define-public vulkan-headers "Vulkan-Headers contains header files and API registry for Vulkan.") (license (list license:asl2.0)))) ;LICENSE.txt +(define-public vulkan-headers + (package + (inherit vulkan-headers/no-loader) + (arguments + (substitute-keyword-arguments (package-arguments vulkan-headers/no-lo= ader) + ((#:phases phases #~%standard-phases) + #~(modify-phases #$phases + (add-after 'unpack 'patch-libvulkan-file-name + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "include/vulkan/vulkan.hpp" + (("dlopen\\( \"libvulkan.so") + (string-append "dlopen(\"" + (search-input-file + inputs "/lib/libvulkan.so")))))))))) + (inputs + (modify-inputs (package-inputs vulkan-headers/no-loader) + (prepend vulkan-loader))) + (properties '()))) + (define-public vulkan-loader (package (name "vulkan-loader") @@ -383,7 +404,7 @@ (define-public vulkan-loader python wayland)) (inputs - (list vulkan-headers libxrandr)) + (list vulkan-headers/no-loader libxrandr)) (native-search-paths (list (search-path-specification (variable "XDG_DATA_DIRS") -- 2.45.2