From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 699DB138346 for ; Tue, 7 Jan 2020 06:11:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F1CFE08ED; Tue, 7 Jan 2020 06:11:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ABC47E085B for ; Tue, 7 Jan 2020 06:11:23 +0000 (UTC) Received: from pomiot (c142-245.icpnet.pl [85.221.142.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id B8C3C34DE4E; Tue, 7 Jan 2020 06:11:21 +0000 (UTC) Message-ID: <7a2681fa5c716250c85f0190672635ab1b588afd.camel@gentoo.org> Subject: Re: [gentoo-dev] [PATCH v2 1/4] kernel-install.eclass: Install logic for dist-kernels From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Date: Tue, 07 Jan 2020 07:11:17 +0100 In-Reply-To: References: <20200105062741.82357-1-mgorny@gentoo.org> Organization: Gentoo Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-efx47Jk8AFv8UHLKKj7b" User-Agent: Evolution 3.32.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 X-Archives-Salt: 5cbc50c1-3c40-4057-85e9-85048faa0b71 X-Archives-Hash: 32c0ea9764e4d8453f3d7c3d488f39ef --=-efx47Jk8AFv8UHLKKj7b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 2020-01-05 at 07:30 +0000, Robin H. Johnson wrote: > On Sun, Jan 05, 2020 at 07:27:38AM +0100, Micha=C5=82 G=C3=B3rny wrote: > > Introduce a new eclass that contains common logic needed to test > > and install distribution kernels. This is the eclass common both > > to kernels built from source and installed from binary packages. > I'm 100% in favour of the concept here, but I have some implementation > concerns. >=20 > For the (public) record, Infra has been wrapping genkernel to build > binary kernel + initramfs for internal usage for 5 years now. >=20 > Conceptually, can you clarify why you are depending on dracut here, > rather than using genkernel's initramfs mode? For a start, because dracut is not bundling all its dependencies. It's also tested outside Gentoo, so it has much wider testing than genkernel, and doesn't suffer from intermediate deaths, -next forks and total confusion over which version should be used. > I'm not sure you're going to get correct build output in cases like > x86_64 -> x86 cross-compiles. Cross-compile support is untested, and provided merely where it was clear how to do it. I'm happy to fix it later, when someone figures it out. > Why not call genkernel from the ebuild instead of re-inventing the > wheel to compile the kernel yourself. Have you read the logic and found a way to achieve all that from genkernel, without 1) losing advantages of my approach, 2) adding a huge dependency to replace 5 lines of code? --=20 Best regards, Micha=C5=82 G=C3=B3rny --=-efx47Jk8AFv8UHLKKj7b Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQGTBAABCgB9FiEEx2qEUJQJjSjMiybFY5ra4jKeJA4FAl4UIQVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEM3 NkE4NDUwOTQwOThEMjhDQzhCMjZDNTYzOUFEQUUyMzI5RTI0MEUACgkQY5ra4jKe JA59fwf9GIuJmcIoVVi4ejp34cKsPMVGdafxVtVhG1DsH6troSlwCXCuITN4QzmH zNp6k6+u0aU/jHmxHba51QXR8lNfBkEIbAipxLw87EfWXwZUj85W+GHhY/NpnUvQ PuyyQrXlHvn9fJTjN+Jd0wHGoabhcYrYr8i36zA9oD1QkgmBSV0XMd++Bpry76iv 0FPcX0v4/5Hq/ljgjL3WmV2v7aA5Q9/5wtoN+2WdV6PnTAkesnmh0kEoRaMj8HML wD1mhfv6NrHPUAorA0UIiuEeq4eEDkFZBB1adWNq66D0Fnwiem/3jTGnHvayE4bM XUcuzzwBpDhgvuYuIS6oL9f34byDBA== =D5L2 -----END PGP SIGNATURE----- --=-efx47Jk8AFv8UHLKKj7b--