From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iIyIITtiyWNlFgEAbAwnHQ (envelope-from ) for ; Thu, 19 Jan 2023 16:31:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4CmdITtiyWOhMgAA9RJhRA (envelope-from ) for ; Thu, 19 Jan 2023 16:31:07 +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 282BB3E1C4 for ; Thu, 19 Jan 2023 16:31:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIWsB-0004cq-EG; Thu, 19 Jan 2023 10:30:39 -0500 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 1pIWs7-0004cV-NB for guix-devel@gnu.org; Thu, 19 Jan 2023 10:30:35 -0500 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIWs5-00035t-Qn; Thu, 19 Jan 2023 10:30:35 -0500 Received: by mail-il1-x12f.google.com with SMTP id d10so1315581ilc.12; Thu, 19 Jan 2023 07:30:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=5/OSvdM8svsKp9FKG9cAaeJ/uVlEoEYn/jSI17Xmm3c=; b=mEpwbVgYHucgolUJnDNsg4WqzafEnsmWcnoN0KYM64N8Kek02WTre3AK9i2G39l1jG 01ENRmaf0vDBOD+EhxxTUa3ablmHYLXZiFgMXK9u3WGM8ZxDFdSBq+zVH0+++2E2kdUz k/FeAJ/Q++eZZ5NJWpF//Hng9skTZTR0PNAQc5CcbkYMQwN98jiqhBYM/3a8fGTfsnlr vvQr0fxB5hnSaZd03sIuHWO15Aatuw96LC2Lm3+arxQWxZSOPrAoCkug0SHHyvxJagTV DF92b0lvfEBwD3cHE3I1p2D3QLnpXXsm20w6O/8aVVFxGUBG8Dr75qJMA/lTV2+p4WqC 3okw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5/OSvdM8svsKp9FKG9cAaeJ/uVlEoEYn/jSI17Xmm3c=; b=ynV2x2eLbMbx9jse3fVnbPtaaCoLfxKngtVU+BZepBPxe9GoC0vNQM0Oo/0BpkQVZA hYdDSsRLcpXy2wZNlGbc10m6sCC5JfFi57b2FnsfSNU6UA4vM/q2SOHzEKPXlpVbEK/9 whCtA7HuHvg7JZaswyhlR77gTxMi8Lp9JStJbcqcQEeHirw5tvnZ+ni9BzDbXDZj8R2Z I4C1ZBpSlcLruCFfdg3q8UW7/D0aLL9UAHlfx+VeKuxNsol6IJhwXAuB2KcDWW8zQWD0 Z5tNwaH87OENkGmeCwXjBibSc6y9fXVLDC7ulv+UAUDgWBvWYPIu/vt3qk5cBxwdbeZh kVkg== X-Gm-Message-State: AFqh2kpuRjMiiJyLl5ry0sbh1dKra7Xa7EHafE9IjWd6Hohp0T4tTEvk yzs4QYpf1sDDOccTkQNxVEp1IurSgao= X-Google-Smtp-Source: AMrXdXuTwQe8otR85AsthQuzIsmVniRgamGT32kpw847Wn85vytkT0Npdq6QJ1LRMzRUqhRNaWxRgw== X-Received: by 2002:a92:b708:0:b0:30e:f604:9266 with SMTP id k8-20020a92b708000000b0030ef6049266mr8885872ili.25.1674142230255; Thu, 19 Jan 2023 07:30:30 -0800 (PST) Received: from washu-v4 (c-174-51-139-101.hsd1.co.comcast.net. [174.51.139.101]) by smtp.gmail.com with ESMTPSA id o17-20020a056e02093100b0030bb7c67efcsm167085ilt.16.2023.01.19.07.30.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 07:30:29 -0800 (PST) From: Katherine Cox-Buday To: John Kehayias Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , Efraim Flashner , guix-devel@gnu.org Subject: Re: Packages grow, no longer fit on a =?utf-8?Q?=F0=9F=92=BE?= References: <87tu0s7otg.fsf@inria.fr> <87ilh5dtiv.fsf@gnu.org> <87o7qw969a.fsf@protonmail.com> Date: Thu, 19 Jan 2023 08:30:28 -0700 In-Reply-To: <87o7qw969a.fsf@protonmail.com> (John Kehayias's message of "Tue, 17 Jan 2023 21:54:33 +0000") Message-ID: <87h6wmv8x7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::12f; envelope-from=cox.katherine.e@gmail.com; helo=mail-il1-x12f.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674142267; a=rsa-sha256; cv=none; b=LgiLdhoIx57FZkCvl1GUhLZ+fRRZi98aIDNJohCf4TF6dNPnK7IcwU5WExwpf9H+LOSEBp AIJV+dblx/4/R0rENu7F2mf7Q0FnV8wFWMVc+s+d9qzBTjVacGuMxoCKO1ifSgwpv00fYs 65p3CdVAt5KWxaGKqZLcZvKCjlB/l4klb3+BBKAulqtSt7XxWUplDEtBTiSo8A1Mbu5eVw dsm8Cw/7tolYGn5R6Ffppmr6vCTgz3VpwTU8OY3QUOcMigjwOIYuwklzIa3/ApKSb5MM7R bfe1OAPvzRGLPXJe2bKL7kWq6lG7tWz11kOkeiaX+onC+RH9D3g5VdsxU2BDzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mEpwbVgY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674142267; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=5/OSvdM8svsKp9FKG9cAaeJ/uVlEoEYn/jSI17Xmm3c=; b=gW69yBrkUbw+xTRp4Tw/sKfaWUkS06Txg9ejSP6ZDCQZoKNO+4/p8hlrk8yZYpYyzm/yLh 5bIOQpW0zBgGXld5mvK87xCSFtFRxdDJWHBEiTbivliEsfvd+vubs+ebmd7dNEeSIk+yhT elezLha1IbvaXm9mMF1AQ8iJngzxGPlVyBvJmxevsSgBuK/2RZ6AmYpYAynRFJu6JpzOTU oKdgM4intahnAv/WO2UdZGqZf20qwM/imUTnQbrC+kHwlcvClSdg2pMd7Kt4G1FFfnE0Rp FLclLRm33Y2BCIyjmKatoKAVAgqXr2r1R/K4pGScRNuouT9eXXLUQUN4EIhAVw== X-Spam-Score: -11.29 X-Migadu-Queue-Id: 282BB3E1C4 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mEpwbVgY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -11.29 X-TUID: sjj/uLeE61AG John Kehayias writes: >>> Efraim Flashner skribis: >>> >>> I've made some progress on LLVM and I think I have a working LLVM >>> that can be used as an input for mesa. This is awesome! Thank you Efraim! > I don't think there were any errors in building mesa with older LLVM, > but on current hardware (unfortunately brings in non-free > considerations) this was necessary. I believe this is the summary: > I can confirm that 3D acceleration would not work until LLVM-15 was used. I don't understand the entire rendering pipeline anymore, but I think it had something to do with Vulkan. > Props to katco on IRC for going through some long building and > debugging to track this down. Thanks, John! Part of the reason this was difficult to test (aside from having to discover the LLVM part) was discovering that the XORG_DRI_DRIVER_PATH environment variable wasn't being set correctly despite doing package rewriting to use a different version of Mesa. I ended up doing this: --8<---------------cut here---------------start------------->8--- (define-public (xorg-with-mesa xorg-server mesa) "Returns an xorg-server package which will wrap the call to Xorg to include the correct XORG_DRI_DRIVER_PATH for the mesa package provided." (package (inherit xorg-server) (arguments (substitute-keyword-arguments (package-arguments xorg-server) ((#:phases child-phases '%standard-phases) #~(modify-phases #$child-phases (add-after 'install 'wrap (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (bin (string-append out "/bin")) (xorg (string-append bin "/Xorg"))) (wrap-program xorg '("XORG_DRI_DRIVER_PATH" ":" = (#$(file-append mesa "/lib/dri"))))))))))))) --8<---------------cut here---------------end--------------->8--- But something like this (I'm sure I've gotten the gexps wrong) would have been made it much easier: --8<---------------cut here---------------start------------->8--- diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 5f073d05d3..d626e87073 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -196,7 +196,9 @@ (define-record-type* (server xorg-configuration-server ;file-like (default xorg-server)) (server-arguments xorg-configuration-server-arguments ;list of strings - (default %default-xorg-server-arguments))) + (default %default-xorg-server-arguments)) + (mesa xorg-configuration-mesa ; package + (default mesa))) (define (xorg-configuration->file config) "Compute an Xorg configuration file corresponding to CONFIG, an @@ -362,7 +364,7 @@ (define* (xorg-wrapper #:optional (config (xorg-configuration))) (define exp ;; Write a small wrapper around the X server. #~(begin - (setenv "XORG_DRI_DRIVER_PATH" (string-append #$mesa "/lib/dri")) + (setenv "XORG_DRI_DRIVER_PATH" (string-append #$(xorg-configuration-mesa config) "/lib/dri")) (setenv "XKB_BINDIR" (string-append #$xkbcomp "/bin")) (let ((X (string-append #$(xorg-configuration-server config) "/bin/X"))) --8<---------------cut here---------------end--------------->8--- -- Katherine