enable buildable targets by default
PATCH 1/1 enable buildable targets by default
Hello. We often faced breakages of components which aren't enabled by default. So Robert Millan proposed to enable all buildable tagets by default. Here is an implementation. Additionally at the end of output it writes how exactly grub will be built for easier overview
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko
ChangeLog +7 -0
@@ -1,3 +1,10 @@ +2009-06-17 Vladimir Serbinenko <[email protected]> + + Enable all targets that can be built by default + + * configure.c: enable efiemu runtime, grub-emu, grub-emu-usb, + grub-mkfont and grub-fstest if they can be built + 2009-06-16 James Jarvis <[email protected]> * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
configure.ac +143 -22
216 lines not on this page · raw message
comitted
Quoted 9 lines · Vladimir 'phcoder' Serbinenko
Hello. We often faced breakages of components which aren't enabled by default. So Robert Millan proposed to enable all buildable tagets by default. Here is an implementation. Additionally at the end of output it writes how exactly grub will be built for easier overview
--
Regards
Vladimir 'phcoder' Serbinenko
Signature · 4 lines
Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
Quoting Vladimir 'phcoder' Serbinenko <[email protected]>:
Quoted 1 line
comitted
I wish I had time to review it :-(
I have fixed the easy stuff (spelling, wrong variables, use of "$no", use of "-c" in CFLAGS). The remaining problem is that efiemu only compiles on i386-pc, but configure not only checks for the necessary flags on other platforms, but also announces that it will be built.
Perhaps we can compile efiemu on i386 and x86_64, but certainly not on powerpc and sparc.
Once everything is compiled by default, some of the configure options become less meaningful, so we can consider removing them. It's not so important to disable some feature as it is to enable it.
Signature · 2 lines
Regards, Pavel Roskin
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Vladimir 'phcoder' Serbinenko
Quoted 7 lines · Pavel Roskin
Quoting Vladimir 'phcoder' Serbinenko <[email protected]>:
Quoted 1 line
comitted
I wish I had time to review it :-(
I have fixed the easy stuff (spelling, wrong variables, use of "$no",
Thanks
Quoted 1 line
use of "-c" in CFLAGS).
This was done on purpose so that we don't need gcc-multilib for tests
AC_COMPILE_IFELSE already means that the program is compiled but not linked. I tried removing glibc-devel.i586, and everything is still OK.
Quoted 7 lines
Quoted 3 lines
The remaining problem is that efiemu only compiles on i386-pc, but configure not only checks for the necessary flags on other platforms, but also announces that it will be built.
Actually the check is necessary only for efiemu64. Perhaps we should always build efiemu32 and make grub fallback to efiemu32 even on 64-bit platform if efiemu64 is unavailable. Then enable-efiemu would be renamed to enable-efiemu64
That's a separate issue. And then there is a problem that efiemu is undocumented, so users cannot decide whether they need it or not.
Quoted 8 lines
Quoted 6 lines
Perhaps we can compile efiemu on i386 and
x86_64, but certainly not on powerpc and sparc.Once everything is compiled by default, some of the configure options become less meaningful, so we can consider removing them. It's not so important to disable some feature as it is to enable it.
IMO if user does some not so useful things it's his problems. It's not a reason to limit flexibility
I think we should provide meaningful options. For example, an option to disable compiling debugging tools, or an option to add extra sanity checks. An option to disable efiemu64 is not meaningful for someone who doesn't know how to use efiemu64.
Signature · 2 lines
Regards, Pavel Roskin
Quoted 7 lines · Pavel Roskin
Once everything is compiled by default, some of the configure options become less meaningful, so we can consider removing them. [...]
I think we should provide meaningful options. For example, an option to disable compiling debugging tools, or an option to add extra sanity checks. An option to disable efiemu64 is not meaningful for someone who doesn't know how to use efiemu64.
I fully agree. The idea with my proposal (we talked this on IRC, I think) was to simplify things, so I proposed that we enable everything so we don't have to provide flags, etc.
I prefer if we got rid of the flags, or at least most of them (lumping them together with a flag to disable debug tools or so), and remove the summary message as well.
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Robert Millan
Quoted 7 lines · Pavel Roskin
Once everything is compiled by default, some of the configure options become less meaningful, so we can consider removing them. [...]
I think we should provide meaningful options. For example, an option to disable compiling debugging tools, or an option to add extra sanity checks. An option to disable efiemu64 is not meaningful for someone who doesn't know how to use efiemu64.
Quoted 3 lines
I fully agree. The idea with my proposal (we talked this on IRC, I think) was to simplify things, so I proposed that we enable everything so we don't have to provide flags, etc.
The main pro was to avoid frequent breakage as we experienced with grub-emu.
Quoted 3 lines
I prefer if we got rid of the flags, or at least most of them (lumping them together with a flag to disable debug tools or so),
I'm undecided on this point. On one hand they can be useful if used correctly on the other hand if removing them would avoid users doing errors
Quoted 3 lines
and remove the summary
message as well.
However I really think summary message should remain. It avoids developpers to scroll through tons of messages to find out if the part they need is built and if it isn't why
Quoted 7 lines
--
Robert MillanThe DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
--
Regards
Vladimir 'phcoder' Serbinenko
Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
Signature · 4 lines
Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
Quoted 4 lines · Vladimir 'phcoder' Serbinenko
Quoted 3 lines
I fully agree. The idea with my proposal (we talked this on IRC, I think) was to simplify things, so I proposed that we enable everything so we don't have to provide flags, etc.
The main pro was to avoid frequent breakage as we experienced with grub-emu.
I just use a script to build grub for all supported platforms with all supported options. It's quite good for finding such errors. As it stands now, there are no errors and no warnings. But it took a while to fix everything.
I think we should eventually revert to not building debug tools by default.
Quoted 2 lines
Quoted 2 lines
I prefer if we got rid of the flags, or at least most of them (lumping them together with a flag to disable debug tools or so),
I agree. grub-emu, grub-fstest and efiemu are debug tools. Neither is needed for normal operation on any platform.
Quoted 3 lines
I'm undecided on this point. On one hand they can be useful if used correctly on the other hand if removing them would avoid users doing errors
What kind of errors do you mean?
Quoted 6 lines
Quoted 3 lines
and remove the summary
message as well.However I really think summary message should remain. It avoids developpers to scroll through tons of messages to find out if the part they need is built and if it isn't why
The summary message is OK with me, be we should keep it short and to the point.
Signature · 2 lines
Regards, Pavel Roskin
Quoted 7 lines · Pavel Roskin
Quoted 4 lines · Vladimir 'phcoder' Serbinenko
Quoted 3 lines
I fully agree. The idea with my proposal (we talked this on IRC, I think) was to simplify things, so I proposed that we enable everything so we don't have to provide flags, etc.
The main pro was to avoid frequent breakage as we experienced with grub-emu.
Quoted 7 lines
I just use a script to build grub for all supported platforms with all supported options. It's quite good for finding such errors. As it stands now, there are no errors and no warnings. But it took a while to fix everything.
I think we should eventually revert to not building debug tools by default.
Your script can detect regressions once they're committed, but enabling them by default helps prevents them from being committed in first place. I think it's an advantage.
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
I prefer if we got rid of the flags, or at least most of them (lumping them together with a flag to disable debug tools or so),
I agree. grub-emu, grub-fstest and efiemu are debug tools. Neither is needed for normal operation on any platform.
I think efiemu is needed for some loaders. It's not a debug tool AFAIK.
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."