From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aHF8LPA1/WWQCAEAqHPOHw:P1 (envelope-from ) for ; Fri, 22 Mar 2024 08:40:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aHF8LPA1/WWQCAEAqHPOHw (envelope-from ) for ; Fri, 22 Mar 2024 08:40:32 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="cJpAk/rf"; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711093232; h=from:from:sender:sender: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=DqpIGbkg3h9RQTnaz/Zt0dHzLz5GIMo/7ter5JUwc/o=; b=gW1IAAH4wdQGfVPGGfVpKcERrFnm77EYCdeN3OvS8kHRWprNky6ENNSvhrP42v/KtMONX+ Y5iHM97g/Rl+9AFkZjvTx7kM7xkvAuHEmdS4yr24xt/XIu+fO2mciBOe3kaSgojpOqNXNu pFV5E/3nvhlY+5CywqhklYZM83LzBcc5GXDNAGgecZyYXS9JsE/ih0JOMmq0V9ex+EmgzB RniYpo9oTYHqJoEAvNnjxG+6yj3GNBQoOTzKZEXhOtbMU4lBBtAyBTy1aLfoQ9395c4Ubv cvcq8w4shaFeFbwhKgQDiN93w49cCI0FbGLYI+7LkSsuJDJ52ViFlPIUNIlvHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="cJpAk/rf"; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711093232; a=rsa-sha256; cv=none; b=aMA/4tETUjfFJXS96LoTOdGM35EzPnQI0Yy3OdzAqBDs3NXozjV0kI9jY/rOmve5xQ0+M4 +3Bnl6OpDThHlwfNzBPl/3drhTE4BBwqXlwywEvpxMQBP+4S14rp/chU7IZPruqMJl0rMv lams1XTM6NYOXaQODjT8P9CJbLaBNmVCBjSoiLbLHlLNvKn2zVKSQWQKJgyVEcUYINV55j dxzltT9kzvf2RrbqCiShijn9nnGmZppdmVwyIeDrhP9+aavsLCtSkexvedTBHJlIyEG/D0 f4Ty3SqmLneh7ufl/fXNipTFY8ah5Wc8yBiSFxcw+ydoHgQ/b5ZABbz/cAx9pw== 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 6C9415478D for ; Fri, 22 Mar 2024 08:40:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnZVn-0005hl-0Q; Fri, 22 Mar 2024 03:40:23 -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 1rnZVm-0005hP-3c for guix-patches@gnu.org; Fri, 22 Mar 2024 03:40:22 -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 1rnZVl-0002NA-Qy for guix-patches@gnu.org; Fri, 22 Mar 2024 03:40:21 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rnZWQ-0005T2-6D for guix-patches@gnu.org; Fri, 22 Mar 2024 03:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69637] [PATCH mesa-updates v2 5/5] gnu: mesa: Update to 24.0.3. Resent-From: aurtzy Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 Mar 2024 07:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69637 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69637@debbugs.gnu.org Cc: john.kehayias@protonmail.com, aurtzy , efraim@flashner.co.il Received: via spool by 69637-submit@debbugs.gnu.org id=B69637.171109322320906 (code B ref 69637); Fri, 22 Mar 2024 07:41:02 +0000 Received: (at 69637) by debbugs.gnu.org; 22 Mar 2024 07:40:23 +0000 Received: from localhost ([127.0.0.1]:56336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rnZVm-0005R5-B9 for submit@debbugs.gnu.org; Fri, 22 Mar 2024 03:40:23 -0400 Received: from mail-qt1-f182.google.com ([209.85.160.182]:46505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rnZTQ-0005IS-B2 for 69637@debbugs.gnu.org; Fri, 22 Mar 2024 03:38:02 -0400 Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-430ad286ab8so10906481cf.1 for <69637@debbugs.gnu.org>; Fri, 22 Mar 2024 00:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711092970; x=1711697770; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DqpIGbkg3h9RQTnaz/Zt0dHzLz5GIMo/7ter5JUwc/o=; b=cJpAk/rfVJYGWfrR5t8PM3wo6INKnTe0HiNVxDhMxVqMFLgm4sdeTG65Itma0y3Pzu dDZeEZ/V/ZYoNE+hZ/sXJeqstFVul8uu8CGZ16851t8FseLpQZujrVcvqLq5LUw74rC4 S+vN7RKwcwRFcbgdAz84PHLJ1TuTnPOJrLKW3tCM5hEKZ7yEun7Tqr/7mOzuhOf9/NAj NkpcY24goGbtwfuJ+maQ55CRnE4GRy1plwssMUDgW6o+zP5vr4qaBARfc1WdjhgkIM8D A1Q/ZE5fd4hsccNULi21AyBMzod4787LL6vXZVfaN1OH69qWd9dmhdxiMYBpwXJu/7Va lOsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711092970; x=1711697770; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DqpIGbkg3h9RQTnaz/Zt0dHzLz5GIMo/7ter5JUwc/o=; b=h4K21bYUXA/yiiBHGxf6wIk4VazFUrblbSoQRCDkUc4lxWyNOlzPA7ogMQLJd62NSP PJ3Zna/bGDNpme5HW/SY6zCnJWN36Qr2jjtj1bLArL1oqfl4zkTTO2BIP+2zmkyV5iGF HU975lvRiQdNU2SKi6j1Hip/lyaHkF3R840XOrpE5YMfFaYNptooUcHcUf5ENs+/24OY A5W3KCmKFXm76/fn+amnE+wmT9p8eejsZPHO/4SF1f74iUFn7jUgvPbSGRQ0CxHgM7pt aTdRMR/iME4ZpnhFy6n/pUJdaZyeQJFyAPdwOCSCBOZ9Zic1SnxZ8OziTAGlUTZow8NN guXQ== X-Gm-Message-State: AOJu0Yzd2F52QUipfJJVGOZEfTzwb3uUSHe6OOhr5lo13d4UZHiU6Y/l QIggM/7ygnUhqxTWChvSyPpxhw+dxqUZq4vlb3aDXqFeJc2b8pCFLFEOYhsc X-Google-Smtp-Source: AGHT+IFoxM/meSkdWatiJsjwxS2qc71xuKe97mxa11vwFve0CgHJ9IYbpQbIVie6qCoiTQ1d8qqZLQ== X-Received: by 2002:a05:622a:196:b0:431:435:20fb with SMTP id s22-20020a05622a019600b00431043520fbmr1502539qtw.64.1711092970055; Fri, 22 Mar 2024 00:36:10 -0700 (PDT) Received: from localhost.localdomain (ool-18bb63f6.dyn.optonline.net. [24.187.99.246]) by smtp.gmail.com with ESMTPSA id jz9-20020a05622a81c900b00430bf59ebccsm648013qtb.11.2024.03.22.00.36.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 00:36:09 -0700 (PDT) From: aurtzy Date: Fri, 22 Mar 2024 03:33:21 -0400 Message-ID: <06ab73253d226155792ae2817c74d0f8d790db14.1711091869.git.aurtzy@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: , 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-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 3.67 X-Spam-Score: 3.67 X-Migadu-Queue-Id: 6C9415478D X-TUID: kgiVD50QJ1IF * gnu/packages/gl.scm (mesa): Update to 24.0.3. Change-Id: Ic4176f8a747bcb4c5210af6ccb4569589192e4a7 --- gnu/packages/gl.scm | 80 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 62 insertions(+), 18 deletions(-) diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index f8dc8c1d9d..0265716ac0 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2023 Kaelyn Takata ;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2024 Liliana Marie Prikler +;;; Copyright © 2024 aurtzy ;;; ;;; This file is part of GNU Guix. ;;; @@ -40,8 +41,10 @@ (define-module (gnu packages gl) #:use-module (gnu packages) #:use-module (gnu packages autotools) #:use-module (gnu packages bison) + #:use-module (gnu packages build-tools) #:use-module (gnu packages check) #:use-module (gnu packages compression) + #:use-module (gnu packages crates-io) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) #:use-module (gnu packages flex) @@ -55,6 +58,8 @@ (define-module (gnu packages gl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages rust) + #:use-module (gnu packages rust-apps) #:use-module (gnu packages tls) #:use-module (gnu packages video) #:use-module (gnu packages vulkan) @@ -297,17 +302,17 @@ (define libva-without-mesa (define-public mesa (package (name "mesa") - (version "23.3.2") + (version "24.0.3") (source - (origin - (method url-fetch) - (uri (list (string-append "https://archive.mesa3d.org/" - "mesa-" version ".tar.xz") - (string-append "ftp://ftp.freedesktop.org/pub/mesa/" - "mesa-" version ".tar.xz"))) - (sha256 - (base32 - "1p4swrbmz3kb1805kdj973hf8virgmix4m9qprmcb2bgl4gviz1w")))) + (origin + (method url-fetch) + (uri (list (string-append "https://archive.mesa3d.org/" + "mesa-" version ".tar.xz") + (string-append "ftp://ftp.freedesktop.org/pub/mesa/" + "mesa-" version ".tar.xz"))) + (sha256 + (base32 + "1gpx3glifdvyw2fxigiannrxkdfhag6b6h0nxab3azbvlfickbkp")))) (build-system meson-build-system) (propagated-inputs ;; The following are in the Requires.private field of gl.pc. @@ -340,15 +345,23 @@ (define-public mesa python-mako python-wrapper (@ (gnu packages base) which) - (if (%current-target-system) - (list cmake-minimal-cross - pkg-config-for-build - wayland - wayland-protocols) - '()))) + (append + (if (%current-target-system) + (list cmake-minimal-cross + pkg-config-for-build + wayland + wayland-protocols) + '()) + ;; NVK-specific inputs + (if (target-x86-64?) + (list clang-15 + rust-bindgen-cli + rust) + '())))) (outputs '("out" "bin")) (arguments (list + #:meson meson-1.3 #:configure-flags #~(list #$@(cond @@ -379,9 +392,12 @@ (define-public mesa "-Dgbm=enabled" "-Dshared-glapi=enabled" - ;; Explicitly enable Vulkan on some architectures. + ;; Explicitly enable Vulkan on some architectures. TODO: Identify other + ;; architectures where nouveau (NVK) works and enable it for them #$@(cond - ((or (target-x86-32?) (target-x86-64?)) + ((target-x86-64?) + '("-Dvulkan-drivers=intel,intel_hasvk,amd,swrast,nouveau-experimental")) + ((target-x86-32?) '("-Dvulkan-drivers=intel,intel_hasvk,amd,swrast")) ((or (target-ppc64le?) (target-ppc32?)) '("-Dvulkan-drivers=amd,swrast")) @@ -478,6 +494,34 @@ (define-public mesa (("'lp_test_arit', ") "")))) (_ '((display "No tests to disable on this architecture.\n")))))) + #$@(if (target-x86-64?) + #~((add-after 'unpack 'change-subproject-sources + ;; Patch subproject source URLs to point to the store, which lets + ;; meson correctly identify rust inputs and avoid an attempt to + ;; download them mid-build. + (lambda _ + (for-each + (match-lambda + ((file input) + (substitute* file + (("source_url = .*$") + "") + (("source_hash = .*$") + "") + (("(source_filename = ).*$" all assign) + (string-append assign input "\n"))))) + ;; TODO: Patch mesa to allow for using sources with different + ;; versions so we don't have to package these crates + ;; specifically for mesa. + '(("subprojects/syn.wrap" + #$(package-source rust-syn-2.0.39)) + ("subprojects/unicode-ident.wrap" + #$(package-source rust-unicode-ident-1)) + ("subprojects/quote.wrap" + #$(package-source rust-quote-1.0.33)) + ("subprojects/proc-macro2.wrap" + #$(package-source rust-proc-macro2-1.0.70))))))) + #~()) (add-before 'configure 'fix-dlopen-libnames (lambda _ (let ((out #$output)) -- 2.41.0