build: Include grub-core/extra_deps.lst in dist
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.
--- conf/Makefile.extra-dist | 1 + 1 file changed, 1 insertion(+)
conf/Makefile.extra-dist +1 -0
@@ -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
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?
Olaf
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
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
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.
Olaf
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
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
Makefilewould 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
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
Makefilewould 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
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
Makefilewould 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
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)Signed-off-by Oskari Pirhonen <[email protected]>--- conf/Makefile.extra-dist | 1 + 1 file changed, 1 insertion(+)conf/Makefile.extra-dist +1
-1@@ -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
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)Signed-off-by Oskari Pirhonen <[email protected]>
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Oliver Steffen
Acked-byQuoting 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)Signed-off-by Oskari Pirhonen <[email protected]>Reviewed-by Daniel Kiper <[email protected]>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