From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8K+oIPVNm2OWDgAAbAwnHQ (envelope-from ) for ; Thu, 15 Dec 2022 17:40:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gCy6IPVNm2MwuAAAauVa8A (envelope-from ) for ; Thu, 15 Dec 2022 17:40:21 +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 17AF32EB59 for ; Thu, 15 Dec 2022 17:40:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5rHC-0005gc-TV; Thu, 15 Dec 2022 11:40:06 -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 1p5rH8-0005gJ-LJ for guix-patches@gnu.org; Thu, 15 Dec 2022 11:40:02 -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 1p5rH8-0002u5-Co for guix-patches@gnu.org; Thu, 15 Dec 2022 11:40:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5rH7-0008QV-Sr for guix-patches@gnu.org; Thu, 15 Dec 2022 11:40:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51737] [PATCH v3 1/8] gnu: Add linux-libre-waydroid. Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 15 Dec 2022 16:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51737 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Julien Lepiller Cc: Maxime Devos , Ludovic =?UTF-8?Q?Court=C3=A8s?= , "51737@debbugs.gnu.org" <51737@debbugs.gnu.org>, phodina , Liliana Marie Prikler Received: via spool by 51737-submit@debbugs.gnu.org id=B51737.167112235232366 (code B ref 51737); Thu, 15 Dec 2022 16:40:01 +0000 Received: (at 51737) by debbugs.gnu.org; 15 Dec 2022 16:39:12 +0000 Received: from localhost ([127.0.0.1]:43638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5rGK-0008Py-4n for submit@debbugs.gnu.org; Thu, 15 Dec 2022 11:39:12 -0500 Received: from cyberdimension.org ([80.67.179.20]:52760 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5rGE-0008Ps-D1 for 51737@debbugs.gnu.org; Thu, 15 Dec 2022 11:39:10 -0500 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 88432029; Thu, 15 Dec 2022 16:36:12 +0000 (UTC) Received: from primary_laptop (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 596302fb; Thu, 15 Dec 2022 16:36:12 +0000 (UTC) Date: Thu, 15 Dec 2022 17:38:36 +0100 From: Denis 'GNUtoo' Carikli Message-ID: <20221215173836.49271218@primary_laptop> In-Reply-To: <3294542A-ABDB-4C8A-A2C8-C8A55EDECC57@lepiller.eu> References: <95979f80d53295fa999af83919909ee786fde125.camel@telenet.be> <8fzx37ONySCMqGXHR4oPO5rd9PWHkHEZVvAb7fGF4EY8pcYugP0Sc8WyO2odhu5SJBfPDbnjkOjxga5n91wMcEKWdSOYYlYKX-ITndH2WUM=@protonmail.com> <9768fe9c925723795a7b9c24504cfec57f5bfde4.camel@gmail.com> <3294542A-ABDB-4C8A-A2C8-C8A55EDECC57@lepiller.eu> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.30; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/1BscYVV3QjCQEF2Xzw8HRw3"; protocol="application/pgp-signature"; micalg=pgp-sha256 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: , 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 ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671122421; a=rsa-sha256; cv=none; b=e1/eiZiF7oYxmXYBVxfjN4lYysTf4yzABs7CO9OfCXFF+IV+13iIp9IrM3MtLdspUJ2mj7 ik3uML2DSmfTjRrgeCqDvz8XBE1ZBqe70jldArIgYmlyqvXQzsb4Gw5jPXHxLsNU21SY8A 3pmEnNGKK2dEVl/04FCzht+rATwUw/2TjGYC7a51Zi0PXSkqKyGPfothGBna1fU+eX4k9v diFuY4C7Nj01kIL5eNtCmsLQSuw56zq3h0TMuWoeQJ6/iVFu6Gn4UXPVXYpPfRLBRhdAY4 zom41i8DSR9FoVlQaKdmCcOwKYPsoaIg1ivbWq+0t/vvL1dJ6MaXAW1qJBXnJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671122421; 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; bh=K1lig/mChRi+BNMkvfzcKVudH0alfMs+9zVVO1PpU/s=; b=H9Em9NdA9q6hcs2iGgOOm+MNyaB7XKf2qOaSYsg/Y7iuUiAW9jtjAmMpB/Qc5NWHNyREks P9dm0Mj9xIYpsXLWe9YX7M8dvphjCw/NZ3C9aVzy0j/maKJtSMXzrMRxERHQl3v9EY3PZ/ Jc/WAdxU75GDsIoriQuUB3CvqLNq28s+nmBITcIhfk3hYP5FnPgvXSD4iNJ64okxFWm5+K l17n5WhwDYhg9gfJ47X5KOYrmfoFLaA8tmQzXzsTMSvQjvwHhBbL/1k0alyWzsl/lid/gA /6eJknRi3eR1IKp7/JbD7qXOYCosE+wVk3U4q5lHwAPvvCNuLbUkzYI+TJfLEA== X-Migadu-Spam-Score: -2.38 X-Spam-Score: -2.38 X-Migadu-Queue-Id: 17AF32EB59 Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=none X-Migadu-Scanner: scn0.migadu.com X-TUID: cf/pUJuM6niA --Sig_/1BscYVV3QjCQEF2Xzw8HRw3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 13 Dec 2022 19:23:06 +0100 Julien Lepiller wrote: > I managed to build bionic in the time frame I envisionned, but I have > some issues with recursive module imports when trying to define the > base inputs for the gnu-build-system (and ultimately the > blueprint-build-system). >=20 > One concern I have is that Lineage OS includes some non free > components, though I'm not sure what exactly (at least non-free > firmware in the kernel, probably drivers too). Part of the work of making an FSDG compliant LineageOS derivative can be really easy: - The kernel can be removed as it's not needed here. I'm not sure where the kernel headers are but they are most likely separate. - Most of the device repositories (in device//) contain scripts whose only goal is to download (from the device) the required nonfree software. - All hardware related HAL that depends on these nonfree software can be removed. Here in practice it means forking the LineageOS manifest and removing the offending repositories. The hard part is with the rest of the code: With Android, knowing the license of the repositories is not easy because you don't have package definitions and you probably don't have very strict copyright requirements (like in Debian).=20 There are empty files like LICENSE_APACHE2 in some repositories, and=20 that is used to indicate the license (it's the closest we have to a license field in a package definition), but I've no idea how precise they are. These are used by code that generate the list of licenses displayed in the phone settings, but I didn't look yet how it works. So if we want to do it right we'd probably need to review at least the usual suspect ourselves (like libraries with fat code, AAC related code, try to look if there are nonfree binaries left, etc). If people want to use LineageOS as a base, they need to check the DivestOS project as they have a script that can partially deblob more recent versions of LineageOS (they also informed Replicant of some of the blobs Replicant missed). They don't remove all the blobs though, so it might be a good idea to check with them what blobs still need to be removed. Replicant 6.0 is based on LineageOS 13.0 which is based on Android 6.0.1, and over time we found and/or were notified of freedom and privacy issues (that both conflicted with the FSDG). And none of these issues were present in AOSP. At least some of these issues came from CyanogenMod, so maybe they are not present anymore. Another option is to use AOSP instead of LineageOS. This could make FSDG compliance easier as there won't be any potential issues with LineageOS additions. It will also enable to share more work because several Android distributions using AOSP and kernels based on upstream Linux started to create a community[1] to share work. So for instance the vibrator HAL of Waydroid could be replaced by the "Force Feedback haptic hal" that is generic. Replicant has applied for funding through NLnet to improve the sharing of work through that community. So for the long term maintenance of such a project, using AOSP might be a better bet, especially if distributions like Guix start packaging more and more AOSP components (this way we'd share more and more work on reviewing licensing information). As for linux-libre-waydroid itself, if the only change is to enable Android drivers, maybe the kernel could be renamed to something more generic like linux-libre-android. And if for instance we package for instance userspace tools to test the binder driver, and with that we might already have a use case and be able to test this kernel anyway. And I've not reviewed the patch but the maintenance here could be completely automatized (so when somebody updates linux-libre, linux-libre-android gets updated automatically). PS: To all readers: I'm not a Guix maintainer, so I can't decide if patches get in or not. References: ----------- [1]https://aosp-developers-community.github.io Denis. --Sig_/1BscYVV3QjCQEF2Xzw8HRw3 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmObTYwACgkQX138wUF3 4mOQZxAAhlbP2zUwMvrilYUVRM26pGSv6lbTbRP1kZN9gYFqi+YU5m86pysxBCpS zPu0/q+epHVTxtQ33YiKJilAcOpGryAK8OFRW/wfiCRB97Umx+VxN48b40CwSIAF 6gdyyPKfwANdUVDSTtl9oT43plsA9Crq0N4SqlYjx6amYjLRd4w04+Od+trvuUWa ljrentxvW26zC96P+YtmAVSD5SBL5ZOFaORWXZSfZ4eNHfD4XjHJg+I/VGIQm6S2 rdqz39N9aQlDVMCyYkZEqdotUbZpEsmPGw0sDiDj4EBwevmr45aue4oR2D7W3EeV rTbs8Lg60tITXyjm+bZUr3VeN4s/VGaH23CwPm/PMmOKkP3ImO5O8YR1Qhk+Alq9 0BouJaB+KsatL8Itd6lh/mO63hIDeSDpFP4yT8H8MvTprD/pCBlp2J9drtI+R9QU crOsX3LUO8HgsaE3uZp+jrolWVo0VoOxCp62JslNK0dBlv3dqbKcva/Ij0MTGaql ZYi0uLlPpI+i2+SwxuJuJCze9aOzhcnUuGgIRXXtrmkVkVmbFT8yIkYdEMS9pWHb xfHKQu+lId5fqtxT2IPY8X/y1DyHuxHSt72mKBtzqkg8lvVpNgnLZiXPWdJ/SA1X RTOLn2WSXicrr6MGnhtivo92xafxZA6Y4lokdc7gCoRoOR3NJbg= =zHzt -----END PGP SIGNATURE----- --Sig_/1BscYVV3QjCQEF2Xzw8HRw3--