From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id OBM6JVa6+2VRtgAAe85BDQ:P1 (envelope-from ) for ; Thu, 21 Mar 2024 05:40:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id OBM6JVa6+2VRtgAAe85BDQ (envelope-from ) for ; Thu, 21 Mar 2024 05:40:54 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=kR9UCRbq; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710996054; 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=9cTxVo5hqO+ueScDyBymZqe74ICgtWFie766R55MfmI=; b=PceDTUpIPQ1kR2RaAV+954/ZAoVnhgDEUES0hGM9zfEVzglcrbxtm8NzsHxp3WZB77d0Sv S7ApKkizzNn1uAtCscqBI29fBwmB1T2r3Xf8Z6TUeaMxzALAmSkcYMhF23lnBWBLF7HwIf jnk6wBjSmcmFsQiNHg1Nsat9wh1d4VCPmOjyxr0t+/ySse+yLXzgHSdbWUKcjKJ4g8oHff MxvonW9KI/6a0v5yKlFcNw5tkkRiVwdP3dG/2VpRqAgtLLgh4QpcWsJIZD6z2cxxOzR0fp 9VHOZ+fYg5SVqwoNVwJPKEob7y5uj5AWmmuPz/uumQmUqX64L4iet/xtvtY2aQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=kR9UCRbq; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710996054; a=rsa-sha256; cv=none; b=hSAckHdp6UgcB181ne3+GXmArW/bcYtbe7hgJtg2DD4As4eNg4YZSgrbmZR8Tf69YW4Im0 VDSzZZlZqmNP+ydVjhyl6C9oO7BUgSSJl4amkI+3PcxgVB1arnz0XIe0HKRqoWdtEHmL5U hRFxEhsrq7DFJdSAz+T3CurX1UNrP9iGyUO0t0Fviugcgf+8R91RC/nfOTLy2S0RwR970d l4GeNCamfMfASwghubTsQaouAQYpDkD9bDT739IvgYenH9V1W45W5D+YgUIx6gmGDTNV01 SvXvnSpGIFHrWa4SIFXZXYfqWbFNhZdtiBwHZp7ac8Aar1RtI8eH+als8Gmi0Q== 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 179B940051 for ; Thu, 21 Mar 2024 05:40:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnAE7-0007Fr-U1; Thu, 21 Mar 2024 00:40:27 -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 1rnAE4-0007Eq-Cn for guix-patches@gnu.org; Thu, 21 Mar 2024 00:40:24 -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 1rnAE4-0000Xe-4L for guix-patches@gnu.org; Thu, 21 Mar 2024 00:40:24 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rnAEh-0002vd-PH for guix-patches@gnu.org; Thu, 21 Mar 2024 00:41:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69637] [PATCH mesa-updates 0/6] gnu: mesa: Update to 24.0.2. Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Mar 2024 04:41:03 +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: aurtzy Cc: 69637@debbugs.gnu.org, Efraim Flashner Received: via spool by 69637-submit@debbugs.gnu.org id=B69637.171099602711082 (code B ref 69637); Thu, 21 Mar 2024 04:41:03 +0000 Received: (at 69637) by debbugs.gnu.org; 21 Mar 2024 04:40:27 +0000 Received: from localhost ([127.0.0.1]:56875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rnAE6-0002sZ-7N for submit@debbugs.gnu.org; Thu, 21 Mar 2024 00:40:26 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:32735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rnAE2-0002rp-As for 69637@debbugs.gnu.org; Thu, 21 Mar 2024 00:40:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1710995974; x=1711255174; bh=9cTxVo5hqO+ueScDyBymZqe74ICgtWFie766R55MfmI=; 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=kR9UCRbqvwq6cVEsS8gHjI6xD+kCGALdnklXVsQtUx9sDj2EcYAxM6EaYYU2L+krK Z7jVn+szsmEMAsEy+N4dry9KSBb0hHUotjYGrLCP8PmvrBFAVJdaP1qiFpku4zoJha b7B7bA+lSCS9ep4E5IJWUtyWeX8nC9Ap0MOL3VM1OErCGPAhO7J5gZcddiRlldAK9L 8m+nJASOIAOtoelStUEwbfKZ6Mpx7HckC6LAiDniqQ0oKi+hFW15Qd8YgzcfUamZ0V w+xh+ZbJ9BJnYBvER3iTqgfpeQKLLGvBzfdHD3T6WgIwkjmOoc7fr/Vl2G62RfIYMo GMvPYs0JvCg2A== Date: Thu, 21 Mar 2024 04:39:29 +0000 Message-ID: <87msqs19ms.fsf@protonmail.com> In-Reply-To: References: Feedback-ID: 7805494:user:proton 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-Migadu-Spam-Score: -6.82 X-Spam-Score: -6.82 X-Migadu-Queue-Id: 179B940051 X-Migadu-Scanner: mx11.migadu.com X-TUID: EW+xtIuF1ExG Hi aurtzy and Efraim, On Wed, Mar 20, 2024 at 09:52 PM, aurtzy wrote: > On 3/12/24 04:11, Efraim Flashner wrote: > > Are there other architectures which have rust based drivers? x86_64 > isn't the only architecture which has rust building on it. > > There doesn't appear to be any official documentation stating architectur= e requirements for Mesa with > NVK/Rust, however I have added few new inputs other than rust to get NVK = working. I've only done extensive > testing with x86_64 so I was unsure of potential issues with including th= is on other architectures (other than > i686 not building rust). > I guess this is the main question, if we will try to enable the NVK driver for other architectures, if that is supported. We could also leave it for the known working x86_64 to start. I would say we could provide a mesa variant package for testing, but that might be difficult as far as I know (e.g. trying to get Xorg to use a different mesa package looked difficult from what I saw others try). We could try just checking for where rust is available (is that just supported-systems for the rust package, or do we have other logic?) and building with NVK to see what fails... Though with how long it can take us to build on other architectures, that might take a while to find out and then correct. > The crates are also available in > %output/share/cargo/registry/name-version.crate, although I can't think > of a good way to address them by name without using find-files. > > I would personally replace the versions requested by mesa with whatever > version we happen to have in guix so that we don't have to add special > versions just for mesa. > > I have/had tried a few approaches to use the crates already available in = Guix with no success so far. I've > outlined the approaches below; still looking into solutions, but perhaps = there's something I'm missing or > haven't tried yet? > > - Simply including crates as (native-)inputs does not make them discovera= ble by meson. > > - Mesa uses these *.wrap files which specify the rust dependency versions= , source URLs, and tar hashes. I > currently get the build working by relying on meson to fall back to "down= loading" from a patched source URL > (pointing to store), although it still has to match the hash. > > - I recently discovered a way to disable the hash requirement so I could = use a different input version (i.e. one > from Guix), but doing it causes "File src/lib.rs does not exist" errors. = I'm still looking into this right now, as it > seems promising. > > - Old IRC logs point to projects like newsboat and librsvg which also mix= cargo with with another build > system, but these start with cargo-build-system with phases added/replace= d from the second build system. > Cargo.toml doesn't exist in Mesa either (which cargo-build-system seems t= o depend on), so experimenting > with using cargo-build-system didn't yield much. > > I wanted to look more into the third bullet before responding, but I felt= it would be unfortunate to have this > information rot while trying to make time for hacking - hopefully it's st= ill useful. > > Cheers, > > aurtzy Thanks for this additional info, aurtzy, and your work on this! Efraim, any thoughts on the rust related stuff based on these other attempts? I'm not familiar enough with rust, rust packaging, or what mesa is doing in the meson builds to comment right now. I would like to get the build farm cranking on the updates I have queued for mesa-updates (cairo, libdrm, mesa, vulkan). We could also do just the version update of mesa to start, or just NVK on x86_64, leaving future changes for the next round. I don't have a preference myself, other than wanting to get this branch moving with these updates. Thoughts? And thanks both of you again! John