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 qEgWDWqGBGQJzAAAbAwnHQ (envelope-from ) for ; Sun, 05 Mar 2023 13:09:14 +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 2GTFDGqGBGRsBwEA9RJhRA (envelope-from ) for ; Sun, 05 Mar 2023 13:09:14 +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 DEA7816CAE for ; Sun, 5 Mar 2023 13:09:13 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=burningswell-com.20210112.gappssmtp.com header.s=20210112 header.b=TwLppZHh; dmarc=none; 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=1678018154; 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: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=7EqlK4i3HnHoHGLiKdU0hvlmLHkxZJmYo0EH624Ns/c=; b=que+cd7XSUugDah310az2nn8/LKpH/0SreSEqq6kaC9w7aDyafIdaNOinien+Z5ixLhUjS X2DWgabcz4WKCD7pnkQ40j3tI46IysXkVlilIuJ+mDSUwzA3eisnIq5yMeanOgkW0qYfNQ DFNNks7bR046Rd+b5tebVTWED1/RooRaxK518Bw+pNNmC8vuyIQhIJ1jiDLrbKNCT5MW/8 Z2Q8K1pZiW3/p2SpCh5/2G4i8k1R8GcEXFrEGP7GWHvtOMNzE9wITQ3DTIFOyI64TRZsNl OmUeVvJ+aU6UURAwlQvVvAGe/bAqkeCwN7d8HRnDy2I5Rnrm8xjnhXxP/Le1VQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=burningswell-com.20210112.gappssmtp.com header.s=20210112 header.b=TwLppZHh; dmarc=none; 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=1678018154; a=rsa-sha256; cv=none; b=dz6Jfdln/pBvRjvwdlDlkngazzX5fZvQ1OIip790M+GARgSrpiWqx/dGriqIlnV8tGRSPJ KJ9CyPdo3xXWXoNrOQw/lPfVtz2+muHpCoxFDtqphX4LJXbqPNprr0Wj/2PPMEnjVK1P3S 9CsaAFerCGK+Y6dZWxIgA21dfZingSv1GVCdJTCu4k2MqMjKTMCWc+jjThClQyxWE7MflG Hv1Kjkr8yDgBonx4z0LAap99nmCkGlKVZA1G6E6GYpV0PWO28Yp7iv/zp2qgU0eGOW7Rz1 ag2ytnXxtp3mwIdXTkoDVqBvWyYgwLzphQbMBdPWygoLnB5ToyATZCFQKWtgKQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYnAn-0001Sr-M8; Sun, 05 Mar 2023 07:09:05 -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 1pYnAl-0001SZ-Qp for guix-patches@gnu.org; Sun, 05 Mar 2023 07:09:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYnAl-0008BY-1n for guix-patches@gnu.org; Sun, 05 Mar 2023 07:09:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pYnAk-0004Im-E9 for guix-patches@gnu.org; Sun, 05 Mar 2023 07:09:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61959] [PATCH 0/7] Add some Asahi Linux packages Resent-From: Roman Scherer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 05 Mar 2023 12:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61959 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ricardo Wurmus Cc: 61959@debbugs.gnu.org, winter@winter.cafe Received: via spool by 61959-submit@debbugs.gnu.org id=B61959.167801813516520 (code B ref 61959); Sun, 05 Mar 2023 12:09:02 +0000 Received: (at 61959) by debbugs.gnu.org; 5 Mar 2023 12:08:55 +0000 Received: from localhost ([127.0.0.1]:38638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYnAd-0004IO-5A for submit@debbugs.gnu.org; Sun, 05 Mar 2023 07:08:55 -0500 Received: from mail-ed1-f42.google.com ([209.85.208.42]:34675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYnAb-0004IA-2q for 61959@debbugs.gnu.org; Sun, 05 Mar 2023 07:08:54 -0500 Received: by mail-ed1-f42.google.com with SMTP id g3so27803416eda.1 for <61959@debbugs.gnu.org>; Sun, 05 Mar 2023 04:08:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20210112.gappssmtp.com; s=20210112; t=1678018127; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=7EqlK4i3HnHoHGLiKdU0hvlmLHkxZJmYo0EH624Ns/c=; b=TwLppZHhKrVhTRZ0YFI613XY19714hxhKHJOHyKUQ5KfVB5wpBzFT+sHOwXZqMhIyC Dgr3TgvMHdR+D+gdCRvBplq2p77uhsYoebKQAFGuY9HlFLpHA4CDljFAJz0uoxq5sBsG 3Tlxc1zaaIcihnUbJE29HfJvy0uGz4u2Ew3tax/r2kKxBo4G2pEiC7jOiu1MjvBrp5ew 1xeOta+21aVhW/2WFVRDilXnnfIVpotkvR7a3hoU7E2CinSad6wpuLCq4IsvKeMzvM6F UkkIGXCOLDl3RPtOEnFG1G3401qm3/v8kiTlEPyDdj6sDBavytFYveWxBmnTP3/PuO/h qv5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678018127; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7EqlK4i3HnHoHGLiKdU0hvlmLHkxZJmYo0EH624Ns/c=; b=BImhIE/zggi9rFrkMbiw8RBGsyS/eI69O2nzW8AKBEd1R6vNBXqDDc+pfHlcfb6/Qg ysCSkVq1fpbIbuC79IPycvAn34pYSDZRgXpGMr8bXXCIA3vA9z8MnB8X/Q4tEo/LqPMQ dVovXgBWvcB9JN7YOnr1MObCde8ZO7WWvDs7G6bnjdQ+wGXN4n6hModbJCdxH5hUHIpR UoTvAIPKrxqJfcppKnn2YsKPiG81l1zs/29ghwmDBohLz87pNeT7da6kKcvbJXxN2gpf Pa3qpFOFpbSJW7O+f7pVRPDzbxaAdfr7pLlI15OorJ3TQZadG3tKpcpLpE6HlTDC1zMK N+Ow== X-Gm-Message-State: AO0yUKXnebLRRKLm/LgNtn9McJ2wF+LEElfKvpwf8x8w7UH3QBoRobBB uqh4E6rgyuvEXGyO0/Tcjykw7g== X-Google-Smtp-Source: AK7set+Cr6KI4YPUm6ymgkCm7FtRJ3xBlvIhoaVEY49Wm2dC6jE0zjssOKN7/TylSxxRFxr3SopUWA== X-Received: by 2002:a17:907:7e8a:b0:908:7fed:f0f with SMTP id qb10-20020a1709077e8a00b009087fed0f0fmr9302478ejc.42.1678018126864; Sun, 05 Mar 2023 04:08:46 -0800 (PST) Received: from bombaclaat ([2a01:598:b1ad:1fff:8e8b:b210:246d:cd7a]) by smtp.gmail.com with ESMTPSA id v19-20020a170906b01300b008db605598b9sm3149228ejy.67.2023.03.05.04.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Mar 2023 04:08:46 -0800 (PST) References: <87mt4sl88u.fsf@elephly.net> <86zg8rlb6k.fsf@burningswell.com> User-agent: mu4e 1.8.13; emacs 29.0.60 From: Roman Scherer Date: Sun, 05 Mar 2023 12:15:58 +0100 In-reply-to: <86zg8rlb6k.fsf@burningswell.com> Message-ID: <86zg8rient.fsf@burningswell.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: DEA7816CAE X-Spam-Score: -4.11 X-Migadu-Spam-Score: -4.11 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-TUID: naTM7/86CYSC --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ricardo & Winter, I didn't receive Winter's email and just saw it in the web interface after I sent v2 of the patch series. Should I be subscribed to the whole guix-patches mailing list as well to receive them? I'm new to the email based workflow and sometimes still a bit lost. I will address the feedback I got from Winter and send a v3. @Winter, I will address your comments. You are right about the order of libdrm, it should come before mesa-asahi. > The next step would be to support building a Linux with Rust > modules. I'm waiting for some patches from the Rust team to do this. About this next step. The Asahi Linux team has a version of the Linux kernel that contains a GPU kernel module written in Rust. To build this module I used customize-linux and added the rust and the rust-bindgen-cli packages to its native inputs. This is what I currently did: ``` (define (make-asahi-linux name config) (let* ((version "6.2-rc3-6") (base (customize-linux #:linux linux-libre-arm64-generic #:name name #:source (origin (method url-fetch) (uri (string-append "https://github.com/AsahiLin= ux/linux/archive/" "asahi-" version ".tar.gz")) (sha256 (base32 "0bk4grzcizk48hhalyyaa4alk5069z102vx5dd= w12jfqzsrdfccn")))))) (package (inherit base) (version version) (arguments (substitute-keyword-arguments (package-arguments base) ((#:phases phases '%standard-phases) #~(modify-phases #$phases (add-before 'configure 'configure-rust (lambda* (#:key inputs #:allow-other-keys) (setenv "LIBCLANG_PATH" (string-append (assoc-ref inputs "clang") "/lib")) (setenv "RUST_LIB_SRC" (string-append (assoc-ref inputs "rust-src") "/lib/rustlib/src/rust/library")))) (replace 'configure (lambda* (#:key inputs #:allow-other-keys) (copy-file #$config ".config") (chmod ".config" #o644))))))) (native-inputs `(("clang" ,clang) ("llvm" ,llvm) ("python" ,python) ("rust" ,(replace-jemalloc (@@ (gnu packages rust) rust-1.62))) ("rust-bindgen-cli" ,(replace-jemalloc rust-bindgen-cli)) ("rust-src" ,rust-src-1.62) ("zstd" ,zstd) ,@(package-native-inputs base))) (home-page "https://asahilinux.org") (synopsis "Linux on Apple Silicon") (description "Asahi Linux is a project and community with the goal of= porting Linux to Apple Silicon Macs, starting with the 2020 M1 Mac Mini, MacBook Air, and MacBook Pro.")))) (define-public asahi-linux (make-asahi-linux "asahi-linux" (local-file "kernel.config"))) (define-public asahi-linux-edge (make-asahi-linux "asahi-linux-edge" (local-file "kernel.edge.config"))) ``` However, rust-bindgen-cli isn't yet packaged, and the version I used previously (0.59.2) somehow disappeared from crates.io. They now only have versions > 0.61.0 available, which I plan to package. The rust team is updating many packages at the moment, so my plan was to wait until those made it into the main branch. I think the differences of package/inherit vs (inherit) aren't very clear to me. I'm guess I should use package/inherit to be able to use input transformations. Is that correct? Roman Roman Scherer writes: > [[PGP Signed Part:Undecided]] > > Hi Ricardo, > > I updated the patch series and sent v2 of it. > > Thanks for your review! > > Roman > > Ricardo Wurmus writes: > >> Thank you for the patches. >> >> Here a couple of comments: >> >> * Please do not use Github archive URLs like >> "https://github.com/AsahiLinux/m1n1/archive/v=E2=80=A6.tar.gz". These= are >> automatically generated and have changed in the past, leading to >> different hashes. In the interest of reproducibility please use >> =E2=80=9Cgit-fetch=E2=80=9D with plain commit hashes instead. >> >> * Please use G-expressions instead of simple quoting with (assoc-ref >> outputs "out"). Instead of this: >> >> --8<---------------cut here---------------start------------->8--- >> (arguments >> `(#:phases >> (modify-phases %standard-phases >> (replace 'configure >> (lambda _ >> (setenv "RELEASE" "1"))) >> (replace 'install >> (lambda* (#:key outputs #:allow-other-keys) >> (let ((dir (string-append (assoc-ref outputs "out") "/libex= ec/"))) >> (mkdir-p dir) >> (copy-file "build/m1n1.bin" (string-append dir "m1n1.bin"= ))))) >> ;; There are no tests >> (delete 'check)))) >> --8<---------------cut here---------------end--------------->8--- >> >> >> Please do this: >> >> --8<---------------cut here---------------start------------->8--- >> (arguments >> (list >> ;; There are no tests >> #:tests? #false >> #:phases >> #~(modify-phases %standard-phases >> (replace 'configure >> (lambda _ >> (setenv "RELEASE" "1"))) >> (replace 'install >> (lambda _ >> (let ((dir (string-append #$output "/libexec/"))) >> (mkdir-p dir) >> (copy-file "build/m1n1.bin" (string-append dir "m1n1.bin"= )))))))) >> --8<---------------cut here---------------end--------------->8--- >> >> This also applies to =E2=80=9Casahi-fwextract=E2=80=9D. >> >> * The string labels for inputs are a deprecated style. Please use plain >> lists of package variables. If you want to modify an inherited list >> of inputs such as in =E2=80=9Casahi-mesa=E2=80=9D please use =E2=80=9C= modify-inputs=E2=80=9D. >> >> * In =E2=80=9Casahi-fwextract=E2=80=9D the build phase =E2=80=9C'remove-= vendor=E2=80=9D should be a >> source snippet instead. >> >> * Please use pyproject-build-system instead of python-build-system. The >> pyproject-build-system is going to be the default in the future, and >> it would be good to use it already to address any incompatibilities >> early. >> >> Could you please send a new version of this patch set? Thanks again! > > [[End of PGP Signed Part]] --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmQEhkYfHHJvbWFuLnNj aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmRaHCACmr2REUg8+nONX q2JrKw+yjovyuVoL6LSqOlDyLKVNNcy7RCNdScJJlkTdGPZARZ13uJxXBgH00w7o jJ3E03atfrMRrPq5LkVOB1UNaNVCr3j54xJ2EOsj8U8gn4rcmnc0zK1Lrn4cLbIr qnDyH1wQnTgptq7djv/H83fUGp/Ya5oT+hrdnwTNcQweUx4Ck/c1uPAApFx5J4eY 0B+B8wxEt/kNT5zW/NhD9FEG5pRRGf0QuD5RWndja2X9zMCxQ1IM8EqOz2Ny17Ao jl3PyTmbp/AT1bOxEBgUJc10Bw/fFwLH/FwDIrAF5SDnGh7hoHf7JHmXEOzPQ02d RXze0qsL =M5Gr -----END PGP SIGNATURE----- --=-=-=--