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 ABDF47270D; Fri, 30 Sep 2022 21:36:12 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 35B6272675; Fri, 30 Sep 2022 21:36:10 +0000 (UTC) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by atuin.qyliss.net (Postfix) with ESMTPS id 805E2725DC for ; Fri, 30 Sep 2022 21:36:08 +0000 (UTC) Received: by mail-ej1-x62e.google.com with SMTP id 13so11627600ejn.3 for ; Fri, 30 Sep 2022 14:36:08 -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=mOWfT7dubSBsw2Qjoi7OPgtnAYFtK7jbfCFavfaNgeApTGIojXK7jt11KY4F5sOfAI uaxnKNX1LJ1EjasydhV9OF54hJ3TQzRO0ygNUuaLKJ1T/OL1lpYIGuyBflSRpjm60I7c x3DA35xF8jXlOHEMkYz1ZrnZTnR1KkYVL6vXbW9M04NOJP06yLVUCluph12/yMtQZmVT JgEfwmaFvDjLu6R0+ka6wXhRnf8j19QGY44/x7wZ2Vl4tgjsuz6B4mMIYOpm9wo5EwW2 TLIa9VqT7XgedSAy/oSLoJbVND0jxp0JPxBdxbmfvC37Ht5BkBwfYouLpLAMyehUEOm2 K0sg== 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=B8A0tNMRFWQ2oANQU49BMkh3RtTwfkkXhXIdknmXZ1kaYJFuI+2vwwdg8iIrRq/1Hr syf0nhghxf3bAp8lc6RFowBtePKIi/4F6To0jT0Dqm143/grKNWozkG9TXCjJHxHGRwO 7bNMCm2pEsrLwCeYiQj4Io9plXQeNcEOSw1gDODdA3+lmu17wOxdU/CrYIlWlBI0T2FW fPQBYTmFrwZkrfj2DFvvF4otdiRNM7oylCsidMotgOXHEswadhS0LkZCGxz0Pfa8ePig 126iPyyKaZhnaV0bl1qYcbRpMZ5AqzIjdnMGcXPALJp+86JwCfiUw6gliylWxupejz+6 d9GA== X-Gm-Message-State: ACrzQf1tQ3onOWLek8LQkPWpk/oduGULJ92ux0fSOZWmAWONL2753ZiE 1EzQGcPcjlcDlniO6YDXIZK9cw== X-Google-Smtp-Source: AMsMyM6rpXN10dT+6gQ/HIghUiu1TXmW/B46OnXvk9wR5TsyOIcOYM4r+umRrkjH1rpqUNOQiR2Sbg== X-Received: by 2002:a17:906:fe4a:b0:781:3b6:f8b0 with SMTP id wz10-20020a170906fe4a00b0078103b6f8b0mr8077661ejb.183.1664573768138; Fri, 30 Sep 2022 14:36:08 -0700 (PDT) Received: from x220.qyliss.net (p200300ed67079c010000000000000003.dip0.t-ipconnect.de. [2003:ed:6707:9c01::3]) by smtp.gmail.com with ESMTPSA id lb19-20020a170907785300b007306a4ecc9dsm1762683ejc.18.2022.09.30.14.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 14:36:07 -0700 (PDT) Received: by x220.qyliss.net (Postfix, from userid 1000) id 5FB56689; Fri, 30 Sep 2022 21:36:07 +0000 (UTC) From: Alyssa Ross To: devel@spectrum-os.org Subject: [RFC PATCH v2 04/10] vm-lib: add mesa drivers to VM Date: Fri, 30 Sep 2022 21:35:27 +0000 Message-Id: <20220930213533.1710618-5-alyssa.ross@unikie.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220930213533.1710618-1-alyssa.ross@unikie.com> References: <20220930213533.1710618-1-alyssa.ross@unikie.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID-Hash: 5IKHWVOQEPEZDKWIPWDKKXZ44QFZRCMN X-Message-ID-Hash: 5IKHWVOQEPEZDKWIPWDKKXZ44QFZRCMN 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