All of lore.kernel.org
 help / color / mirror / Atom feed
* grub-1.97
@ 2009-10-28  1:59 Bruce Dubbs
  2009-10-28  9:21 ` grub-1.97 Colin Watson
  2009-10-28 11:34 ` grub-1.97 Michal Suchanek
  0 siblings, 2 replies; 10+ messages in thread
From: Bruce Dubbs @ 2009-10-28  1:59 UTC (permalink / raw)
  To: grub-devel

I am putting grub2 into the Linux From Scratch book and have built/tested it and 
it works quite well for us.  Thank you.

I do have a question.  After building a package, we like to test it for those 
packages that have tests built in.  When I tried `make test`, I got an error 
about missing m2c.  I then went to the Debian repository and built m2c.  Now I 
get the error:

bdubbs@core2:/usr/src/grub/grub-1.97$ make test
m2c    -o test -e test test.mod
m2c: unknown flag `-e'
make: *** [test] Error 1

What version of m2c are you using and where is it available?  Is this a valid 
way to run a regression test for grub-1.97?

I'd also like to make a comment.  It may be useful if you split up the build 
into subdirectories by component.  When I extracted the tarball, there were 57 
files/directories in the top of the build tree.  After configure it was 64.  So 
far so good.  However, after make it was over 2400 files, many with very long 
file names.  This makes it almost impossible to navigate form the command line, 
even on a very big screen.  If you split it up, you could also shorten the 
filenames.  I would think that would be an advantage to encourage programmers to 
read the code and contribute to the project.

   -- Bruce Dubbs
      linuxfromscratch.org



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: grub-1.97
  2009-10-28  1:59 grub-1.97 Bruce Dubbs
@ 2009-10-28  9:21 ` Colin Watson
  2009-10-28 15:40   ` grub-1.97 Bruce Dubbs
  2009-10-28 11:34 ` grub-1.97 Michal Suchanek
  1 sibling, 1 reply; 10+ messages in thread
From: Colin Watson @ 2009-10-28  9:21 UTC (permalink / raw)
  To: The development of GRUB 2

On Tue, Oct 27, 2009 at 08:59:15PM -0500, Bruce Dubbs wrote:
> I do have a question.  After building a package, we like to test it for 
> those packages that have tests built in.  When I tried `make test`, I got 
> an error about missing m2c.  I then went to the Debian repository and 
> built m2c.  Now I get the error:

I don't see the string "m2c" anywhere in GRUB. This is part of the
default 'make' rule for building Modula-2 programs, which is irrelevant
here; it's an accident of how files happen to be named that it's used at
all.

GRUB does not have a regression test suite.

-- 
Colin Watson                                       [cjwatson@ubuntu.com]



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: grub-1.97
  2009-10-28  1:59 grub-1.97 Bruce Dubbs
  2009-10-28  9:21 ` grub-1.97 Colin Watson
@ 2009-10-28 11:34 ` Michal Suchanek
  2009-10-28 16:02   ` grub-1.97 Bruce Dubbs
  1 sibling, 1 reply; 10+ messages in thread
From: Michal Suchanek @ 2009-10-28 11:34 UTC (permalink / raw)
  To: The development of GRUB 2

2009/10/28 Bruce Dubbs <bruce.dubbs@gmail.com>:
> I am putting grub2 into the Linux From Scratch book and have built/tested it
> and it works quite well for us.  Thank you.
>
> I do have a question.  After building a package, we like to test it for
> those packages that have tests built in.  When I tried `make test`, I got an
> error about missing m2c.  I then went to the Debian repository and built
> m2c.  Now I get the error:
>
> bdubbs@core2:/usr/src/grub/grub-1.97$ make test
> m2c    -o test -e test test.mod
> m2c: unknown flag `-e'
> make: *** [test] Error 1
>
> What version of m2c are you using and where is it available?  Is this a
> valid way to run a regression test for grub-1.97?
>
> I'd also like to make a comment.  It may be useful if you split up the build
> into subdirectories by component.  When I extracted the tarball, there were
> 57 files/directories in the top of the build tree.  After configure it was
> 64.  So far so good.  However, after make it was over 2400 files, many with
> very long file names.  This makes it almost impossible to navigate form the
> command line, even on a very big screen.  If you split it up, you could also
> shorten the filenames.  I would think that would be an advantage to
> encourage programmers to read the code and contribute to the project.
>

I guess it's meant to be used like this:

tar -jxvf grub-version.tar.bz2
cd grub-version
mkdir build
cd build
../configure --prefix=/some_prefix --options
make
make install

Now you have 2k files in the build directory but the ones that are
useful can be found under /some_prefix

You can find the files installed under /some_prefix in the build
directory so you can use them directly as well.

Many of the object files are replicated numerous times because of the
way grub links its modules. This may be addressed at later time, there
were some patches for simplifying this process.

I have no problems navigating the directory from command line although
the layout does seem a bit odd. Maybe it's related to the fact I have
some 700 files (excluding .files) in ~.

Thanks

Michal



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: grub-1.97
  2009-10-28  9:21 ` grub-1.97 Colin Watson
@ 2009-10-28 15:40   ` Bruce Dubbs
  0 siblings, 0 replies; 10+ messages in thread
From: Bruce Dubbs @ 2009-10-28 15:40 UTC (permalink / raw)
  To: The development of GRUB 2

Colin Watson wrote:
> On Tue, Oct 27, 2009 at 08:59:15PM -0500, Bruce Dubbs wrote:
>> I do have a question.  After building a package, we like to test it for 
>> those packages that have tests built in.  When I tried `make test`, I got 
>> an error about missing m2c.  I then went to the Debian repository and 
>> built m2c.  Now I get the error:
> 
> I don't see the string "m2c" anywhere in GRUB. This is part of the
> default 'make' rule for building Modula-2 programs, which is irrelevant
> here; it's an accident of how files happen to be named that it's used at
> all.
> 
> GRUB does not have a regression test suite.

Thanks for the confirmation.  I had checked to see where m2c was used and 
couldn't find it either.

   -- Bruce





^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: grub-1.97
  2009-10-28 11:34 ` grub-1.97 Michal Suchanek
@ 2009-10-28 16:02   ` Bruce Dubbs
  2009-10-28 16:39     ` grub-1.97 Felix Zielcke
  2009-10-29  3:50     ` grub-1.97 richardvoigt
  0 siblings, 2 replies; 10+ messages in thread
From: Bruce Dubbs @ 2009-10-28 16:02 UTC (permalink / raw)
  To: The development of GRUB 2

Michal Suchanek wrote:
> 2009/10/28 Bruce Dubbs <bruce.dubbs@gmail.com>:

>> I'd also like to make a comment.  It may be useful if you split up the build
>> into subdirectories by component.  When I extracted the tarball, there were
>> 57 files/directories in the top of the build tree.  After configure it was
>> 64.  So far so good.  However, after make it was over 2400 files, many with
>> very long file names.  This makes it almost impossible to navigate form the
>> command line, even on a very big screen.  If you split it up, you could also
>> shorten the filenames.  I would think that would be an advantage to
>> encourage programmers to read the code and contribute to the project.
>>
> 
> I guess it's meant to be used like this:
> 
> tar -jxvf grub-version.tar.bz2
> cd grub-version
> mkdir build
> cd build
> ../configure./configure --prefix=/usr \
             --sysconfdir=/etc \
             --disable-largefile     \
             --disable-grub-emu      \
             --disable-grub-emu-usb  \
             --disable-grub-fstest   \
             --disable-efiemu --prefix=/some_prefix --options
> make
> make install

Yes, that is exactly what we are doing.  Right now the configure line is

./configure --prefix=/usr           \
             --sysconfdir=/etc       \
             --disable-largefile     \
             --disable-grub-emu      \
             --disable-grub-emu-usb  \
             --disable-grub-fstest   \
             --disable-efiemu

> Now you have 2k files in the build directory but the ones that are
> useful can be found under /some_prefix

Right and 1200 of them are *.lst files, many of which have 30+ character 
filenames.  Doing an ls puts everything in one column.  Even if I expand my 
terminal to 269 characters, I only get 4 columns of files.  It's just hard to 
navigate.

> You can find the files installed under /some_prefix in the build
> directory so you can use them directly as well.

Yes, but you have to do `ls -l|grep ^d` just to find out what the directories are.

> Many of the object files are replicated numerous times because of the
> way grub links its modules. This may be addressed at later time, there
> were some patches for simplifying this process.

Since there is only one Makefile, I could take a shot at creating a patch to 
address this problem.  Would you be interested in such a patch?

   -- Bruce



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: grub-1.97
  2009-10-28 16:02   ` grub-1.97 Bruce Dubbs
@ 2009-10-28 16:39     ` Felix Zielcke
  2009-10-28 17:23       ` grub-1.97 Felix Zielcke
  2009-10-28 17:41       ` grub-1.97 Bruce Dubbs
  2009-10-29  3:50     ` grub-1.97 richardvoigt
  1 sibling, 2 replies; 10+ messages in thread
From: Felix Zielcke @ 2009-10-28 16:39 UTC (permalink / raw)
  To: The development of GRUB 2

Am Mittwoch, den 28.10.2009, 11:02 -0500 schrieb Bruce Dubbs:
> Since there is only one Makefile, I could take a shot at creating a
> patch to 
> address this problem.  Would you be interested in such a patch? 

That's wrong that there is just one Makefile. Well it's true that there
is just one file named like that, but the main Makefiles are the
conf/*.mk files generated from conf/*.rmk by genmk.rb.

There wasn't yet much talk about improving our build system.
Bean just made it less complex in his lib branch (IIRC he called it
something like that)
But except of this nobody had much interest/time to improve or even
directly replace our build system by something better.
Okuji already objected against automake because according to him it
doestn't satisfy the needs for our build system.

-- 
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: grub-1.97
  2009-10-28 16:39     ` grub-1.97 Felix Zielcke
@ 2009-10-28 17:23       ` Felix Zielcke
  2009-10-28 17:41       ` grub-1.97 Bruce Dubbs
  1 sibling, 0 replies; 10+ messages in thread
From: Felix Zielcke @ 2009-10-28 17:23 UTC (permalink / raw)
  To: The development of GRUB 2

Am Mittwoch, den 28.10.2009, 17:39 +0100 schrieb Felix Zielcke:
> Am Mittwoch, den 28.10.2009, 11:02 -0500 schrieb Bruce Dubbs:
> > Since there is only one Makefile, I could take a shot at creating a
> > patch to 
> > address this problem.  Would you be interested in such a patch? 
> 
> That's wrong that there is just one Makefile. Well it's true that there
> is just one file named like that, but the main Makefiles are the
> conf/*.mk files generated from conf/*.rmk by genmk.rb.
> 
> There wasn't yet much talk about improving our build system.
> Bean just made it less complex in his lib branch (IIRC he called it
> something like that)
> But except of this nobody had much interest/time to improve or even
> directly replace our build system by something better.
> Okuji already objected against automake because according to him it
> doestn't satisfy the needs for our build system.

Uhm correction: I totally forgot about Vladimirs one Makefile
implementation.
Sorry Vladimir.

But IIRC even about this there wasn't much talk about.


-- 
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: grub-1.97
  2009-10-28 16:39     ` grub-1.97 Felix Zielcke
  2009-10-28 17:23       ` grub-1.97 Felix Zielcke
@ 2009-10-28 17:41       ` Bruce Dubbs
  1 sibling, 0 replies; 10+ messages in thread
From: Bruce Dubbs @ 2009-10-28 17:41 UTC (permalink / raw)
  To: The development of GRUB 2

Felix Zielcke wrote:
> Am Mittwoch, den 28.10.2009, 11:02 -0500 schrieb Bruce Dubbs:
>> Since there is only one Makefile, I could take a shot at creating a
>> patch to 
>> address this problem.  Would you be interested in such a patch? 
> 
> That's wrong that there is just one Makefile. Well it's true that there
> is just one file named like that, but the main Makefiles are the
> conf/*.mk files generated from conf/*.rmk by genmk.rb.

Yes I see that now.  Obviously I spoke before reviewing the internals of the 
build system.  I'll review it in a bit more detail and see if I can contribute 
something useful.

> There wasn't yet much talk about improving our build system.

Yes, that and documentation are generally the last things to be considered in a 
project.

> But except of this nobody had much interest/time to improve or even
> directly replace our build system by something better.

I have some interest, but I'm not sure of the time.  I can at least look at it 
and possibly make some suggestions/patches.

> Okuji already objected against automake because according to him it
> doestn't satisfy the needs for our build system.

I'm not a great fan of automake either.

   -- Bruce



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: grub-1.97
  2009-10-28 16:02   ` grub-1.97 Bruce Dubbs
  2009-10-28 16:39     ` grub-1.97 Felix Zielcke
@ 2009-10-29  3:50     ` richardvoigt
  2009-10-29  4:44       ` grub-1.97 Bruce Dubbs
  1 sibling, 1 reply; 10+ messages in thread
From: richardvoigt @ 2009-10-29  3:50 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, Oct 28, 2009 at 11:02 AM, Bruce Dubbs <bruce.dubbs@gmail.com> wrote:
> Michal Suchanek wrote:
>>
>> 2009/10/28 Bruce Dubbs <bruce.dubbs@gmail.com>:
>
>>> I'd also like to make a comment.  It may be useful if you split up the
>>> build
>>> into subdirectories by component.  When I extracted the tarball, there
>>> were
>>> 57 files/directories in the top of the build tree.  After configure it
>>> was
>>> 64.  So far so good.  However, after make it was over 2400 files, many
>>> with
>>> very long file names.  This makes it almost impossible to navigate form
>>> the
>>> command line, even on a very big screen.  If you split it up, you could
>>> also
>>> shorten the filenames.  I would think that would be an advantage to
>>> encourage programmers to read the code and contribute to the project.
>>>
>>
>> I guess it's meant to be used like this:
>>
>> tar -jxvf grub-version.tar.bz2
>> cd grub-version
>> mkdir build
>> cd build
>> ../configure./configure --prefix=/usr \
>
>            --sysconfdir=/etc \
>            --disable-largefile     \
>            --disable-grub-emu      \
>            --disable-grub-emu-usb  \
>            --disable-grub-fstest   \
>            --disable-efiemu --prefix=/some_prefix --options
>>
>> make
>> make install
>
> Yes, that is exactly what we are doing.  Right now the configure line is

Not "exactly", and the difference is important.Michal suggested
running "../configure" with a double-dot meaning parent directory.
Your line has only a single dot, meaning current directory.  As a
result your files are all mixed together instead of separated as
intended.

>
> ./configure --prefix=/usr           \
>            --sysconfdir=/etc       \
>            --disable-largefile     \
>            --disable-grub-emu      \
>            --disable-grub-emu-usb  \
>            --disable-grub-fstest   \
>            --disable-efiemu



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: grub-1.97
  2009-10-29  3:50     ` grub-1.97 richardvoigt
@ 2009-10-29  4:44       ` Bruce Dubbs
  0 siblings, 0 replies; 10+ messages in thread
From: Bruce Dubbs @ 2009-10-29  4:44 UTC (permalink / raw)
  To: The development of GRUB 2

richardvoigt@gmail.com wrote:
> On Wed, Oct 28, 2009 at 11:02 AM, Bruce Dubbs <bruce.dubbs@gmail.com> wrote:
>> Michal Suchanek wrote:

>>> I guess it's meant to be used like this:
>>>
>>> tar -jxvf grub-version.tar.bz2
>>> cd grub-version
>>> mkdir build
>>> cd build
>>> ../configure./configure --prefix=/usr \
>>            --sysconfdir=/etc \
>>            --disable-largefile     \
>>            --disable-grub-emu      \
>>            --disable-grub-emu-usb  \
>>            --disable-grub-fstest   \
>>            --disable-efiemu --prefix=/some_prefix --options
>>> make
>>> make install
>> Yes, that is exactly what we are doing.  Right now the configure line is
> 
> Not "exactly", and the difference is important.Michal suggested
> running "../configure" with a double-dot meaning parent directory.
> Your line has only a single dot, meaning current directory.  As a
> result your files are all mixed together instead of separated as
> intended.
> 
>> ./configure --prefix=/usr           \
>>            --sysconfdir=/etc       \
>>            --disable-largefile     \
>>            --disable-grub-emu      \
>>            --disable-grub-emu-usb  \
>>            --disable-grub-fstest   \
>>            --disable-efiemu

Ah yes.  Thank you Richard.  Either systems works, but using a separate build 
directory keeps all the 2400 generated files out of the main directory.  I'll 
change to that in LFS.

   -- Bruce



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-10-29  4:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28  1:59 grub-1.97 Bruce Dubbs
2009-10-28  9:21 ` grub-1.97 Colin Watson
2009-10-28 15:40   ` grub-1.97 Bruce Dubbs
2009-10-28 11:34 ` grub-1.97 Michal Suchanek
2009-10-28 16:02   ` grub-1.97 Bruce Dubbs
2009-10-28 16:39     ` grub-1.97 Felix Zielcke
2009-10-28 17:23       ` grub-1.97 Felix Zielcke
2009-10-28 17:41       ` grub-1.97 Bruce Dubbs
2009-10-29  3:50     ` grub-1.97 richardvoigt
2009-10-29  4:44       ` grub-1.97 Bruce Dubbs

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.