Skip to contentSkip to conversation

build: Include grub-core/extra_deps.lst in dist

PATCH In review Oskari Pirhonen 4 participants 10 messages Dec 21, 2023 – Feb 22, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: Include grub-core/extra_deps.lst in dist

Fixes build failure due to the extra_deps.lst file not existing in the tarball. Found while trying to package GRUB 2.12 for Gentoo.

make[3]: *** No rule to make target '/var/tmp/portage/sys-boot/grub-2.12/work/grub-2.12/grub-core/extra_deps.lst', needed by 'syminfo.lst'. Stop.

Fixes 89fbe0cac (grub-core/Makefile.am: Make path to extra_deps.lst relative to $(top_srcdir)/grub-core)
Fixes 154dcb1ae (build: Allow explicit module dependencies)
---
 conf/Makefile.extra-dist | 1 +
 1 file changed, 1 insertion(+)
conf/Makefile.extra-dist +1 -0
index 5e7126f98..0bef2c752 100644
@@ -27,6 +27,7 @@ EXTRA_DIST += grub-core/gensyminfo.sh.in
 EXTRA_DIST += grub-core/gensymlist.sh
 EXTRA_DIST += grub-core/genemuinit.sh
 EXTRA_DIST += grub-core/genemuinitheader.sh
+EXTRA_DIST += grub-core/extra_deps.lst
 
 EXTRA_DIST += grub-core/lib/gnulib-patches/fix-width.patch
 
Signature · 7 lines
2.41.0


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
#2 lore raw

Quoting Olaf Hering (2023-12-21 10:12:24)

Quoted 5 lines

Thu, 21 Dec 2023 01:17:35 -0600 Oskari Pirhonen <[email protected]>:

Quoted 1 line

Fixes build failure due to the extra_deps.lst file not existing in the tarball.

Maybe maybe maybe this is another slight hint that this file needs to be generated at build time, like all the other similar files?

Although its name suggests that it is a generated file (.lst ending!), extra_deps.lst is actually tracked in git and is not generated by the build system.

It was introduced to track inter-module dependencies which the build system can not discover on its own. The reason was that the new bli module relies on GRUB to be able to parse GPT formatted disks. But it does not call any functions from the part_gpt module and thus this implicit dependency is not automatically discovered.

Oliver

Quoted 3 lines

Olaf

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#4 lore raw

Quoting Olaf Hering (2023-12-21 11:50:49)

Quoted 8 lines

Thu, 21 Dec 2023 02:42:46 -0800 Oliver Steffen <[email protected]>:

Quoted 3 lines

Although its name suggests that it is a generated file (.lst ending!), extra_deps.lst is actually tracked in git and is not generated by the build system.

I think a simple "echo 'content' > extra_deps.lst" in a Makefile would do.

I am fine with getting rid of this file. My intention was to track the module dependencies in an obviuos place and not lose it in one of the endless Makefiles.

Oliver

Quoted 2 lines

Olaf

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#5 lore raw
Quoted 7 lines · Oliver Steffen

Quoting Olaf Hering (2023-12-21 11:50:49)

Quoted 6 lines

Thu, 21 Dec 2023 02:42:46 -0800 Oliver Steffen <[email protected]>:

Quoted 3 lines

Although its name suggests that it is a generated file (.lst ending!), extra_deps.lst is actually tracked in git and is not generated by the build system.

Quoted 6 lines
Quoted 2 lines

I think a simple "echo 'content' > extra_deps.lst" in a Makefile would do.

I am fine with getting rid of this file. My intention was to track the module dependencies in an obviuos place and not lose it in one of the endless Makefiles.

I wonder if adding machinery which allows you to explicitly declare module dependencies in Makefile.core.def would be the best move going forward.

- Oskari

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#6 lore raw
Quoted 10 lines · Oskari Pirhonen
Quoted 9 lines · Oliver Steffen

Quoting Olaf Hering (2023-12-21 11:50:49)

Quoted 8 lines

Thu, 21 Dec 2023 02:42:46 -0800 Oliver Steffen <[email protected]>:

Quoted 3 lines

Although its name suggests that it is a generated file (.lst ending!), extra_deps.lst is actually tracked in git and is not generated by the build system.

I think a simple "echo 'content' > extra_deps.lst" in a Makefile would do.

Quoted 7 lines
Quoted 3 lines

I am fine with getting rid of this file. My intention was to track the module dependencies in an obviuos place and not lose it in one of the endless Makefiles.

I wonder if adding machinery which allows you to explicitly declare module dependencies in Makefile.core.def would be the best move going forward.

I am not convinced this potential machinery will be used often but if somebody is willing to make it I am OK with reviewing patches.

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#7 lore raw
In reply to Oskari Pirhonen

Quoting Oskari Pirhonen (2023-12-21 08:17:35)

Quoted 26 lines

Fixes build failure due to the extra_deps.lst file not existing in the tarball. Found while trying to package GRUB 2.12 for Gentoo.

make[3]: *** No rule to make target '/var/tmp/portage/sys-boot/grub-2.12/work/grub-2.12/grub-core/extra_deps.lst', needed by 'syminfo.lst'. Stop.

Fixes 89fbe0cac (grub-core/Makefile.am: Make path to extra_deps.lst relative to $(top_srcdir)/grub-core)
Fixes 154dcb1ae (build: Allow explicit module dependencies)
---
 conf/Makefile.extra-dist | 1 +
 1 file changed, 1 insertion(+)
conf/Makefile.extra-dist +1 -1
index 5e7126f98..0bef2c752 100644
@@ -27,6 +27,7 @@ EXTRA_DIST += grub-core/gensyminfo.sh.in
 EXTRA_DIST += grub-core/gensymlist.sh
 EXTRA_DIST += grub-core/genemuinit.sh
 EXTRA_DIST += grub-core/genemuinitheader.sh
+EXTRA_DIST += grub-core/extra_deps.lst
 
 EXTRA_DIST += grub-core/lib/gnulib-patches/fix-width.patch
 
--
Quoted 2 lines

2.41.0

Looks good to me and seems to fix the issue.

Oliver

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reviewed-by on v1 1/1
#8 lore raw
In reply to Oskari Pirhonen
Quoted 9 lines · Oskari Pirhonen

Fixes build failure due to the extra_deps.lst file not existing in the tarball. Found while trying to package GRUB 2.12 for Gentoo.

make[3]: *** No rule to make target '/var/tmp/portage/sys-boot/grub-2.12/work/grub-2.12/grub-core/extra_deps.lst', needed by 'syminfo.lst'. Stop.

Fixes 89fbe0cac (grub-core/Makefile.am: Make path to extra_deps.lst relative to $(top_srcdir)/grub-core)
Fixes 154dcb1ae (build: Allow explicit module dependencies)

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#9 lore raw

Quoting Daniel Kiper (2023-12-22 15:18:44)

Quoted 6 lines · Oskari Pirhonen
Quoted 5 lines

Fixes build failure due to the extra_deps.lst file not existing in the tarball. Found while trying to package GRUB 2.12 for Gentoo.

make[3]: *** No rule to make target '/var/tmp/portage/sys-boot/grub-2.12/work/grub-2.12/grub-core/extra_deps.lst', needed by 'syminfo.lst'. Stop.

Quoted 9 lines
Quoted 4 lines
Fixes 89fbe0cac (grub-core/Makefile.am: Make path to extra_deps.lst relative to $(top_srcdir)/grub-core)
Fixes 154dcb1ae (build: Allow explicit module dependencies)

Daniel

I had assumed that this went in already.

I think this is OK if we want the simple solution. For the more elaborate machinery see my patch I just sent.

Anyway,

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel