All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Remove conf/*.mk from svn
  2008-07-25 15:18 ` Remove conf/*.mk from svn (was: Re: Linking) Colin D Bennett
@ 2008-07-25 18:41   ` Christian Franke
  2008-07-27  7:17     ` Pavel Roskin
  2008-08-05 10:40   ` Marco Gerards
  1 sibling, 1 reply; 13+ messages in thread
From: Christian Franke @ 2008-07-25 18:41 UTC (permalink / raw)
  To: The development of GRUB 2

Colin D Bennett wrote:
> On Thu, 24 Jul 2008 22:17:06 -0700 (PDT)
> Viswesh S <...> wrote:
>
>   
>> I have modified the conf/common.mk accordingly as shown below.
>>     
>
> GRUB developers,
>
> I think we should remove conf/*.mk from the Subversion repository.  If
> people are going to be developing on GRUB and checking out svn
> branches, then I think it's fine to require them to have Ruby.  For
> released tarballs that we expect non-developers to use, we just need to
> generate the *.mk files and include them in the tarball.
>
> What is the benefit of having conf/*.mk files in svn?  They cause lots
> of merge conflicts: sure, the conflicts are easy to resolve by simply
> choosing to take one of the revisions, but then that merge really has
> not meaning, since it won't be in sync with your .rmk file until it's
> once again regenerated and checked in.
>
> Removing the autogenerated .mk files would also eliminate problems new
> developers like Viswesh and I have encountered -- we won't be tempted
> to modify a non-versioned file like this.
>
>   

I agree, the files generated by ./autogen.sh should be included in 
tarball, but not in the repo.
Additional prerequisites (autoconf, ruby) for builds from svn are IMO OK.

In my local grub2 git repo, these files are excluded:
configure
config.h.in
stamp-h.in
conf/*.mk

BTW: autogen.sh should "touch stamp-h.in" to be consistent with the 
Makefile rule for config.h.in.

Christian




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

* Re: Remove conf/*.mk from svn
  2008-07-25 18:41   ` Remove conf/*.mk from svn Christian Franke
@ 2008-07-27  7:17     ` Pavel Roskin
  2008-07-27 22:28       ` Christian Franke
  0 siblings, 1 reply; 13+ messages in thread
From: Pavel Roskin @ 2008-07-27  7:17 UTC (permalink / raw)
  To: The development of GRUB 2

On Fri, 2008-07-25 at 20:41 +0200, Christian Franke wrote:

> I agree, the files generated by ./autogen.sh should be included in 
> tarball, but not in the repo.
> Additional prerequisites (autoconf, ruby) for builds from svn are IMO OK.

I agree.

At least we should put a message into *.mk files that would make it
clear that they are generated.

> BTW: autogen.sh should "touch stamp-h.in" to be consistent with the 
> Makefile rule for config.h.in.

What difference would it make?

-- 
Regards,
Pavel Roskin



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

* Re: Remove conf/*.mk from svn
  2008-07-27  7:17     ` Pavel Roskin
@ 2008-07-27 22:28       ` Christian Franke
  2008-07-28 22:43         ` Pavel Roskin
  2008-08-05 10:38         ` Marco Gerards
  0 siblings, 2 replies; 13+ messages in thread
From: Christian Franke @ 2008-07-27 22:28 UTC (permalink / raw)
  To: The development of GRUB 2

Pavel Roskin wrote:
> On Fri, 2008-07-25 at 20:41 +0200, Christian Franke wrote:
>
>   
>> I agree, the files generated by ./autogen.sh should be included in 
>> tarball, but not in the repo.
>> Additional prerequisites (autoconf, ruby) for builds from svn are IMO OK.
>>     
>
> I agree.
>
> At least we should put a message into *.mk files that would make it
> clear that they are generated.
>
>   

Yes.

For a release tarball, It IMO also makes sense to include 
util/parser.tab.c. It is platform-independent and rarely changed. This 
would remove bison from the list of prerequisites.


>> BTW: autogen.sh should "touch stamp-h.in" to be consistent with the 
>> Makefile rule for config.h.in.
>>     
>
> What difference would it make?
>
>   


$ patch < patch_changing_configure.ac_or_aclocal.m4

$ ./autogen.sh # runs autoheader etc.

$ ./configure

$ make # re-runs autoheader because stamp-h.in was not updated

Christian




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

* Re: Remove conf/*.mk from svn
  2008-07-27 22:28       ` Christian Franke
@ 2008-07-28 22:43         ` Pavel Roskin
  2008-08-05 10:38         ` Marco Gerards
  1 sibling, 0 replies; 13+ messages in thread
From: Pavel Roskin @ 2008-07-28 22:43 UTC (permalink / raw)
  To: The development of GRUB 2

On Mon, 2008-07-28 at 00:28 +0200, Christian Franke wrote:
> Pavel Roskin wrote:

> > At least we should put a message into *.mk files that would make it
> > clear that they are generated.
> >
> >   
> 
> Yes.

Done.

> For a release tarball, It IMO also makes sense to include 
> util/parser.tab.c. It is platform-independent and rarely changed. This 
> would remove bison from the list of prerequisites.

It seems to me that gendistlist.sh should be rewritten from scratch.
It's completely outdated.  It should sort its output in C locale for
consistency.  It should be smart enough not to pick *.sh files for which
*.sh.in exists.  It should include documentation and all C files barred
known exceptions (symlist.c, grub_*_init.c, mod-*.c)

Once gendistlist.sh is good enough to allow "make distcheck" to pass,
then we can do little adjustments and decide what should or should not
be in the distribution.

> >> BTW: autogen.sh should "touch stamp-h.in" to be consistent with
> the 
> >> Makefile rule for config.h.in.
> >>     
> >
> > What difference would it make?
> >
> >   
> 
> 
> $ patch < patch_changing_configure.ac_or_aclocal.m4
> 
> $ ./autogen.sh # runs autoheader etc.
> 
> $ ./configure
> 
> $ make # re-runs autoheader because stamp-h.in was not updated

Thanks.  Fixed.

-- 
Regards,
Pavel Roskin



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

* Re: Remove conf/*.mk from svn
  2008-07-27 22:28       ` Christian Franke
  2008-07-28 22:43         ` Pavel Roskin
@ 2008-08-05 10:38         ` Marco Gerards
  1 sibling, 0 replies; 13+ messages in thread
From: Marco Gerards @ 2008-08-05 10:38 UTC (permalink / raw)
  To: The development of GRUB 2

Hi,

Christian Franke <Christian.Franke@t-online.de> writes:

> For a release tarball, It IMO also makes sense to include
> util/parser.tab.c. It is platform-independent and rarely changed. This
> would remove bison from the list of prerequisites.

Fine for me.

--
Marco




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

* Re: Remove conf/*.mk from svn
  2008-07-25 15:18 ` Remove conf/*.mk from svn (was: Re: Linking) Colin D Bennett
  2008-07-25 18:41   ` Remove conf/*.mk from svn Christian Franke
@ 2008-08-05 10:40   ` Marco Gerards
  2008-08-05 15:38     ` Vesa Jääskeläinen
  1 sibling, 1 reply; 13+ messages in thread
From: Marco Gerards @ 2008-08-05 10:40 UTC (permalink / raw)
  To: The development of GRUB 2

Hi,

Colin D Bennett <colin@gibibit.com> writes:

[...]

> I think we should remove conf/*.mk from the Subversion repository.  If
> people are going to be developing on GRUB and checking out svn
> branches, then I think it's fine to require them to have Ruby.  For
> released tarballs that we expect non-developers to use, we just need to
> generate the *.mk files and include them in the tarball.

I do not have problems with this.  Besides this, it will stop people
from sending in patches with .mk changes in it :-)

--
Marco




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

* Re: Remove conf/*.mk from svn
  2008-08-05 10:40   ` Marco Gerards
@ 2008-08-05 15:38     ` Vesa Jääskeläinen
  2008-08-05 15:48       ` Marco Gerards
  0 siblings, 1 reply; 13+ messages in thread
From: Vesa Jääskeläinen @ 2008-08-05 15:38 UTC (permalink / raw)
  To: The development of GRUB 2

Marco Gerards wrote:
> Colin D Bennett <colin@gibibit.com> writes:
>> I think we should remove conf/*.mk from the Subversion repository.  If
>> people are going to be developing on GRUB and checking out svn
>> branches, then I think it's fine to require them to have Ruby.  For
>> released tarballs that we expect non-developers to use, we just need to
>> generate the *.mk files and include them in the tarball.
> 
> I do not have problems with this.  Besides this, it will stop people
> from sending in patches with .mk changes in it :-)

I think Okuji's objection is based on fact that it makes it harder for 
people to compile from sources. Now what if we would generate those 
files when making a release? Of course this should be enabled to 
script/makefile to make it automatically so it is not forgotten ;)

Thanks,
Vesa Jääskeläinen



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

* Re: Remove conf/*.mk from svn
  2008-08-05 15:38     ` Vesa Jääskeläinen
@ 2008-08-05 15:48       ` Marco Gerards
  2008-08-05 15:55         ` Felix Zielcke
  2008-08-05 18:41         ` Javier Martín
  0 siblings, 2 replies; 13+ messages in thread
From: Marco Gerards @ 2008-08-05 15:48 UTC (permalink / raw)
  To: The development of GRUB 2

Vesa Jääskeläinen <chaac@nic.fi> writes:

> Marco Gerards wrote:
>> Colin D Bennett <colin@gibibit.com> writes:
>>> I think we should remove conf/*.mk from the Subversion repository.  If
>>> people are going to be developing on GRUB and checking out svn
>>> branches, then I think it's fine to require them to have Ruby.  For
>>> released tarballs that we expect non-developers to use, we just need to
>>> generate the *.mk files and include them in the tarball.
>>
>> I do not have problems with this.  Besides this, it will stop people
>> from sending in patches with .mk changes in it :-)
>
> I think Okuji's objection is based on fact that it makes it harder for
> people to compile from sources. Now what if we would generate those
> files when making a release? Of course this should be enabled to
> script/makefile to make it automatically so it is not forgotten ;)

Right.  Just to be clear, personally I didn't have these objections
but Okuji has.

Actually, since ruby is required to generate these files, I guess we
can better keep the .mk files.

--
Marco




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

* Re: Remove conf/*.mk from svn
  2008-08-05 15:48       ` Marco Gerards
@ 2008-08-05 15:55         ` Felix Zielcke
  2008-08-05 18:41         ` Javier Martín
  1 sibling, 0 replies; 13+ messages in thread
From: Felix Zielcke @ 2008-08-05 15:55 UTC (permalink / raw)
  To: The development of GRUB 2

Am Dienstag, den 05.08.2008, 17:48 +0200 schrieb Marco Gerards:

> 
> Actually, since ruby is required to generate these files, I guess we
> can better keep the .mk files.
> 

Just a little note from me:

The Debian package build depends already on ruby so this won't be a
problem for all Debian guys and especially not for Robert or me.

On Debian/Ubuntu you can just use 'apt-get build-dep grub2' and it
installs every package for you which you need to build grub2 so ruby
will be always needed/installed for the Debian package.

But well Debian isn't the only distribution and I don't know how others
deal with grub2 :)




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

* Re: Remove conf/*.mk from svn
  2008-08-05 15:48       ` Marco Gerards
  2008-08-05 15:55         ` Felix Zielcke
@ 2008-08-05 18:41         ` Javier Martín
  2008-08-05 18:51           ` Colin D Bennett
  1 sibling, 1 reply; 13+ messages in thread
From: Javier Martín @ 2008-08-05 18:41 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]

El mar, 05-08-2008 a las 17:48 +0200, Marco Gerards escribió:
> Vesa Jääskeläinen <chaac@nic.fi> writes:
> 
> > Marco Gerards wrote:
> >> Colin D Bennett <colin@gibibit.com> writes:
> >>> I think we should remove conf/*.mk from the Subversion repository.  If
> >>> people are going to be developing on GRUB and checking out svn
> >>> branches, then I think it's fine to require them to have Ruby.  For
> >>> released tarballs that we expect non-developers to use, we just need to
> >>> generate the *.mk files and include them in the tarball.
> >>
> >> I do not have problems with this.  Besides this, it will stop people
> >> from sending in patches with .mk changes in it :-)
> >
> > I think Okuji's objection is based on fact that it makes it harder for
> > people to compile from sources. Now what if we would generate those
> > files when making a release? Of course this should be enabled to
> > script/makefile to make it automatically so it is not forgotten ;)
> 
> Right.  Just to be clear, personally I didn't have these objections
> but Okuji has.
> 
> Actually, since ruby is required to generate these files, I guess we
> can better keep the .mk files.
Why not rewrite genmk.rb in a more common language (i.e. with an
interpreter more commonly found in stock GNU installs) like Python or
Perl?

Habbit

[-- Attachment #2: Esta parte del mensaje está firmada digitalmente --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

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

* Re: Remove conf/*.mk from svn
  2008-08-05 18:41         ` Javier Martín
@ 2008-08-05 18:51           ` Colin D Bennett
  0 siblings, 0 replies; 13+ messages in thread
From: Colin D Bennett @ 2008-08-05 18:51 UTC (permalink / raw)
  To: grub-devel

On Tue, 05 Aug 2008 20:41:53 +0200
Javier Martín <lordhabbit@gmail.com> wrote:

> El mar, 05-08-2008 a las 17:48 +0200, Marco Gerards escribió:
> > Vesa Jääskeläinen <chaac@nic.fi> writes:
> > 
> > > Marco Gerards wrote:
> > >> Colin D Bennett <colin@gibibit.com> writes:
> > >>> I think we should remove conf/*.mk from the Subversion
> > >>> repository.  If people are going to be developing on GRUB and
> > >>> checking out svn branches, then I think it's fine to require
> > >>> them to have Ruby.  For released tarballs that we expect
> > >>> non-developers to use, we just need to generate the *.mk files
> > >>> and include them in the tarball.
> > >>
> > >> I do not have problems with this.  Besides this, it will stop
> > >> people from sending in patches with .mk changes in it :-)
> > >
> > > I think Okuji's objection is based on fact that it makes it
> > > harder for people to compile from sources. Now what if we would
> > > generate those files when making a release? Of course this should
> > > be enabled to script/makefile to make it automatically so it is
> > > not forgotten ;)
> > 
> > Right.  Just to be clear, personally I didn't have these objections
> > but Okuji has.
> > 
> > Actually, since ruby is required to generate these files, I guess we
> > can better keep the .mk files.
> Why not rewrite genmk.rb in a more common language (i.e. with an
> interpreter more commonly found in stock GNU installs) like Python or
> Perl?

Fine with me.  It shouldn't be too hard for someone who understands it.

Based on the discussions following my initial suggestion, it sounds
like it is considered too much work for people compiling from a svn
checkout to install Ruby?

Did I emphasize enough that released tarballs or any sort of archived
snapshot should be generated *with* the .mk files?  I am concerned only
with the files under version control -- the point being that files
generated from often-modified files (such as the ``conf/*.rmk`` which
are often modified) have no business being under version control.  I
think that this is even more important than lesser modified files such
as the configure script, etc., since fewer developers have to touch
that.

Regards,
Colin



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

* Re: Remove conf/*.mk from svn
@ 2008-08-06  4:58 Viswesh S
  2008-08-06 14:56 ` Vesa Jääskeläinen
  0 siblings, 1 reply; 13+ messages in thread
From: Viswesh S @ 2008-08-06  4:58 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 1332 bytes --]

Hi,
I have a small suggestion.
Why cant we document in a small file, the procedures, or the dont's while adding modules or modifying grub2.A FAQ file may be.
That will help us in the long run.
Viswesh


----- Original Message ----
From: Felix Zielcke <fzielcke@z-51.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Sent: Tuesday, 5 August, 2008 9:25:43 PM
Subject: Re: Remove conf/*.mk from svn

Am Dienstag, den 05.08.2008, 17:48 +0200 schrieb Marco Gerards:

> 
> Actually, since ruby is required to generate these files, I guess we
> can better keep the .mk files.
> 

Just a little note from me:

The Debian package build depends already on ruby so this won't be a
problem for all Debian guys and especially not for Robert or me.

On Debian/Ubuntu you can just use 'apt-get build-dep grub2' and it
installs every package for you which you need to build grub2 so ruby
will be always needed/installed for the Debian package.

But well Debian isn't the only distribution and I don't know how others
deal with grub2 :)



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel



      Download prohibited? No problem. CHAT from any browser, without download. Go to http://in.webmessenger.yahoo.com/

[-- Attachment #2: Type: text/html, Size: 2089 bytes --]

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

* Re: Remove conf/*.mk from svn
  2008-08-06  4:58 Remove conf/*.mk from svn Viswesh S
@ 2008-08-06 14:56 ` Vesa Jääskeläinen
  0 siblings, 0 replies; 13+ messages in thread
From: Vesa Jääskeläinen @ 2008-08-06 14:56 UTC (permalink / raw)
  To: The development of GRUB 2

Viswesh S wrote:
> Hi,
> I have a small suggestion.

> Why cant we document in a small file, the procedures, or the dont's 
> while adding modules or modifying grub2.A FAQ file may be.
> 
> That will help us in the long run.
> 
> Viswesh

A) We have Wiki for that purpose. Please use that to fill this information.

B) Please reply to threads, do not start new threads for comments to 
previous threads. Please do not reply above message.




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

end of thread, other threads:[~2008-08-06 14:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06  4:58 Remove conf/*.mk from svn Viswesh S
2008-08-06 14:56 ` Vesa Jääskeläinen
  -- strict thread matches above, loose matches on Subject: below --
2008-07-25  5:17 Linking Viswesh S
2008-07-25 15:18 ` Remove conf/*.mk from svn (was: Re: Linking) Colin D Bennett
2008-07-25 18:41   ` Remove conf/*.mk from svn Christian Franke
2008-07-27  7:17     ` Pavel Roskin
2008-07-27 22:28       ` Christian Franke
2008-07-28 22:43         ` Pavel Roskin
2008-08-05 10:38         ` Marco Gerards
2008-08-05 10:40   ` Marco Gerards
2008-08-05 15:38     ` Vesa Jääskeläinen
2008-08-05 15:48       ` Marco Gerards
2008-08-05 15:55         ` Felix Zielcke
2008-08-05 18:41         ` Javier Martín
2008-08-05 18:51           ` Colin D Bennett

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.