From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id B977987D0F; Fri, 30 Sep 2022 12:50:07 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id EA1E087C10; Fri, 30 Sep 2022 12:49:56 +0000 (UTC) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by atuin.qyliss.net (Postfix) with ESMTPS id 7149987B76 for ; Fri, 30 Sep 2022 12:49:51 +0000 (UTC) Received: by mail-ej1-x634.google.com with SMTP id bj12so8765570ejb.13 for ; Fri, 30 Sep 2022 05:49:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unikie.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=PdLjjNLadePiPNSJoOFxjTeVDVRR1hMqn0luvRUiamU=; b=fLDmHJ8Fax5vexXSYwCFWbgwzGC+2Cdg9hZSkeM4RyJ2Joz9EV5umFcr+RvYLa7mus g22I80qUopQfIVj0ojUoYqLvZAfHklYmC3YOof1QJNvPX+j+lwK4MzvPlcO09QwMcz87 L+8T/UtVfBH/mPDOm2lf9huUGSqD0pXB2kMhQBMk86CzE/HU9N2eXc606r9V8MrgbFic zcc03Mep1aDoRptRZVGGjRXw4+alJ38xPDFlJQy4pcomO1LfMnfzJMPMphBXfMrhBtjC 3mCKFjAYillffRuxqpml1x4vsB2RYcoRaRi7dKOwxIWXz2VYumASXWwDE8Qxsz5toLXx xLvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=PdLjjNLadePiPNSJoOFxjTeVDVRR1hMqn0luvRUiamU=; b=Vy+k5avx9ulIY50u2V7+7yG+BBX5YnF/JFQzIgwsv9lPc0NHwGvpfTd4UJTyKugmRx GGm8bxoMRu8MV+aBWhFKfgJWKpA/8k4l0mhXatVdrj5Z4HEHhKWJjoiVlrZYAwjTHQiL ciDsF5qUYVmCpOUasruKgzkiv/ihrYERfOMMyTz5fQbZorquWZ7KYWbjgPIXpQA4zSh+ JYO5XKHP5bFSnAxiDRhcNJMVW3hI3uUe4CC+XyKGk2AQbmO8XLMsGkHU6AZ9IFdwxAew Tnm0qSSwpR8SNJUFTNyNk5wkZwwUYe0nUp/rp28qDjqlDIjvp0ehgBDsGRdzU+hBpztV LsOQ== X-Gm-Message-State: ACrzQf2pr8aLlqLEJccjYgxiEimFZ6MheHnBqG3vtDIf4kr4wiRQRrCX jiagNljsUTg45sTr5p6oNJCMrA== X-Google-Smtp-Source: AMsMyM5eHZo2mX9AMeh5UwjIMRQep7igy9quSsv2y3PcM/XznqnFL+yV07EOJwTPjGu9izC1YKCi/A== X-Received: by 2002:a17:906:5a45:b0:77a:406c:6867 with SMTP id my5-20020a1709065a4500b0077a406c6867mr6206648ejc.437.1664542191048; Fri, 30 Sep 2022 05:49:51 -0700 (PDT) Received: from x220.qyliss.net (p54b8e692.dip0.t-ipconnect.de. [84.184.230.146]) by smtp.gmail.com with ESMTPSA id vv3-20020a170907a68300b0077ab3ca93efsm1087689ejc.223.2022.09.30.05.49.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 05:49:50 -0700 (PDT) Received: by x220.qyliss.net (Postfix, from userid 1000) id A0E3B555; Fri, 30 Sep 2022 12:49:48 +0000 (UTC) From: Alyssa Ross To: devel@spectrum-os.org Subject: [RFC PATCH 04/10] vm-lib: add mesa drivers to VM Date: Fri, 30 Sep 2022 12:49:34 +0000 Message-Id: <20220930124940.1013577-5-alyssa.ross@unikie.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220930124940.1013577-1-alyssa.ross@unikie.com> References: <20220930124940.1013577-1-alyssa.ross@unikie.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID-Hash: 3PCGSGIF6RSE6A7DRLOXA4X26SWUN3GV X-Message-ID-Hash: 3PCGSGIF6RSE6A7DRLOXA4X26SWUN3GV X-MailFrom: alyssa.ross@unikie.com X-Mailman-Rule-Hits: header-match-devel.spectrum-os.org-0 X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1 CC: Puck Meerburg , Ville Ilvonen X-Mailman-Version: 3.3.5 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Alyssa Ross --- This is a dynamically-linked, Glibc version of Mesa. Dynamic linking is basically required for GUI stuff, but maybe it would be better to do this with Musl in the end. Not sure yet. It depends exactly what this shared base VM will be used for — will applications run it directly, or inside some other layer like Flatpak or Docker? How will that interact with Mesa? vm-lib/make-vm.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vm-lib/make-vm.nix b/vm-lib/make-vm.nix index 10646d3..20cdba4 100644 --- a/vm-lib/make-vm.nix +++ b/vm-lib/make-vm.nix @@ -29,9 +29,10 @@ runCommand "spectrum-vm-${name}" { mkdir root cd root ln -s ${run} run - comm -23 <(sort ${writeReferencesToFile run}) \ + ln -s ${config.pkgs.mesa.drivers}/lib + comm -23 <(sort -u ${writeReferencesToFile run} ${writeReferencesToFile config.pkgs.mesa.drivers}) \ <(sort ${writeReferencesToFile basePackages}) | - tar -cf ../run.tar --verbatim-files-from -T - run + tar -cf ../run.tar --verbatim-files-from -T - * tar2ext4 -i ../run.tar -o "$out/data/${name}/blk/run.img" e2label "$out/data/${name}/blk/run.img" ext -- 2.37.1