Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D1AC9C5478C for ; Fri, 23 Feb 2024 05:53:19 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdOUI-0003ax-TL; Fri, 23 Feb 2024 00:52:46 -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 1rdOUF-0003ag-Ut for grub-devel@gnu.org; Fri, 23 Feb 2024 00:52:44 -0500 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rdOUE-00036n-Fq for grub-devel@gnu.org; Fri, 23 Feb 2024 00:52:43 -0500 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a3f3d0d2787so480266b.3 for ; Thu, 22 Feb 2024 21:52:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708667559; x=1709272359; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=3u/MRpiMJPtjWsYY3sU9rXsVKx1+DRo/t9jDVYQZfhY=; b=AKtSMRHsVYVSJcvTI5XiQVHVddgA6P2+qGmHbkX57o27eVmjQVv7ZbbqwO/tPPkcRO vjSOzOAJiQxzZIMA4sxvLvxLo29h2+TfctLM6fN2DfVxAJdUIZNxz1Od+q5SX9a+4dav WJjDvy7u2uK4wgqJgzckiwU1Hn8DGSEf198Pkw37QRzDVFWaASB8MNhJUpstx60AdZop iWXeLUn52eTxH7PcyEGy29UT+PXy/EFCKsD+PYm1jJpK9RgcHCr8dqsfJTQ1YYybwUnH AXLaVfwtyXvkZKuhRsgGb7cQDiE9wlZM4jokGd4Q+6fUt3PP2w7GuAYVvXqODvVa6Wlg s5Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708667559; x=1709272359; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3u/MRpiMJPtjWsYY3sU9rXsVKx1+DRo/t9jDVYQZfhY=; b=asIfmnjYZvNDkib18a9nTe+HT5Vtx/bzcI6moRdfanW4NlhDFDb/uj9k+dxkiv3U+m arHi3XEYxbU0SeJAefnFmXSTEyajbnbBS9QDfkLtH3wWMdABt1Np7Sc/oCw0LuY3uUdK 2UCOv2ZgVh7tCASDBZH+zM17FW5Cnkzuy4v+qWk4sL8XNK7ocDTJxwRn72GPHg/fZqhu LydvNv7NkEILZB9fP9Eib/ip+perl55H054QSF1U6iN53FugPVNiyKYyNOgauh5cKfWm RXiPEtlEuOxh9hxLidBRhC9hHBqoJXimspQv+m1I6Ux97AhrsCgwGeqxWFlbqN4dq5dZ GiIw== X-Gm-Message-State: AOJu0Yz28KAVXjEaPCcpMZJXYwkHRnqaL4/1osS5iG6jFENhPXxHrYlM Vu77fKyKKlalczLqsIFRc3seobR/YKOM3GzcrpZB+SaZhrdLeVNop6zi2Zza X-Google-Smtp-Source: AGHT+IHYOLUJzU8nRJKxQhetUddth4+yAXV8vkYtMTmYOqZwEEH8+831N1V3nkoWF7Gf0/t6NAb8zA== X-Received: by 2002:a17:906:194a:b0:a3f:24a5:dc2b with SMTP id b10-20020a170906194a00b00a3f24a5dc2bmr463125eje.49.1708667559346; Thu, 22 Feb 2024 21:52:39 -0800 (PST) Received: from dj3ntoo (30.sub-97-147-14.myvzw.com. [97.147.14.30]) by smtp.gmail.com with ESMTPSA id g14-20020a170906594e00b00a3edde33e7esm3649528ejr.99.2024.02.22.21.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 21:52:38 -0800 (PST) Date: Thu, 22 Feb 2024 23:52:33 -0600 From: Oskari Pirhonen To: Oliver Steffen Cc: grub-devel@gnu.org, Olaf Hering , mate.kukri@canonical.com, Daniel Kiper Subject: Re: [RFC PATCH] Track explicit module dependencies in Makefile.core.def Message-ID: Mail-Followup-To: Oliver Steffen , grub-devel@gnu.org, Olaf Hering , mate.kukri@canonical.com, Daniel Kiper References: <20240222133231.145786-1-osteffen@redhat.com> MIME-Version: 1.0 In-Reply-To: <20240222133231.145786-1-osteffen@redhat.com> Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=xxc3ncoredxx@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The development of GNU GRUB Content-Type: multipart/mixed; boundary="===============7922868891965395428==" Errors-To: grub-devel-bounces+grub-devel=archiver.kernel.org@gnu.org Sender: grub-devel-bounces+grub-devel=archiver.kernel.org@gnu.org --===============7922868891965395428== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zHZUT8y4Sd2EF5QL" Content-Disposition: inline --zHZUT8y4Sd2EF5QL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 22, 2024 at 14:32:31 +0100, Oliver Steffen wrote: > Add a new keyword, "depends", to the module definition syntax > used in Makefile.core.def. This allows specifying explicit module > dependencies together with the module definition. >=20 > Do not track the "extra_deps.lst" file in the repository anymore, > it is now auto-generated. >=20 Trying to build with this, it looks like it might be broken at the site where the extra_deps.lst is used: 1. Apply this patch in a fresh git tree 2. Revert "build: Include grub-core/extra_deps.lst in dist" (after all, no need to include it if it's auto generated, right?) 3. Create a dist tarball $ ./bootstrap $ mkdir compile $ cd compile $ ../configure $ make dist 4. Unpack tarball (eg, into /tmp) 5. Try to build from the tarball $ cd /tmp/grub $ mkdir compile $ cd compile $ ../configure --with-platform=3Defi $ make ... cat kernel_syms.lst ../../grub-core/extra_deps.lst > syminfo.lst.new cat: ../../grub-core/extra_deps.lst: No such file or directory make[3]: *** [Makefile:51281: syminfo.lst] Error 1 make[3]: Leaving directory '/tmp/grub-2.13/compile/grub-core' make[2]: *** [Makefile:28866: all] Error 2 make[2]: Leaving directory '/tmp/grub-2.13/compile/grub-core' make[1]: *** [Makefile:12131: all-recursive] Error 1 make[1]: Leaving directory '/tmp/grub-2.13/compile' make: *** [Makefile:3958: all] Error 2 The file with the correct contents does get generated into grub-core/, but if I'm understanding the output correctly, it's trying to grab extra_deps.lst from outside the compile/ subdirectory. - Oskari > Make use of this new keyword in the bli module definition. >=20 > Signed-off-by: Oliver Steffen --zHZUT8y4Sd2EF5QL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQfOU+JeXjo4uxN6vCp8he9GGIfEQUCZdgymgAKCRCp8he9GGIf EWE2AP9m9VF0/X/H/qSW/SHHZZ+GDLHAROgcZN5Vo+OQoEDloAEAsDni5CYEZPz7 dMEZgWrM6SlviwjyRui71CbxuSeiuQg= =xrl7 -----END PGP SIGNATURE----- --zHZUT8y4Sd2EF5QL-- --===============7922868891965395428== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KR3J1Yi1kZXZl bCBtYWlsaW5nIGxpc3QKR3J1Yi1kZXZlbEBnbnUub3JnCmh0dHBzOi8vbGlzdHMuZ251Lm9yZy9t YWlsbWFuL2xpc3RpbmZvL2dydWItZGV2ZWwK --===============7922868891965395428==--