Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC] a script to update our gnulib import...
@ 2011-12-12  0:25 Joel Brobecker
  2011-12-12  1:22 ` Alfred M. Szmidt
  2011-12-12 12:53 ` Pedro Alves
  0 siblings, 2 replies; 9+ messages in thread
From: Joel Brobecker @ 2011-12-12  0:25 UTC (permalink / raw)
  To: gdb-patches

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

Hello,

My ultimate goal is to import gnulib's update-copyright to the list
of gnulib modules we import in the GDB sources. This is in preparation
for the 2012 Start of Year procedure which is going to come soon...
I thought I'd do it in two steps:

  1. Refresh our gnulib import to the latest sources;
  2. Add/import update-copyright.

This way, I know that the patch for the step 1 is a pure refresh.
And that the patch for step 2 is a pure import of a new module.

But the thing is, the import procedure is not completely obvious
to me. I eventually managed to make it work (meaning it built on
x86_64-linux) but I'm not sure I didn't break something on another
more exotic platform. Also, it's not clear to me which modules we
have imported so far.

This is why I thought the whole process should be somewhat done
by a script which anyone can run to do an update, or to add a new
module.  Attached is a first attempt at the script.

gdb/ChangeLog:

        * update-gnulib.sh: New script.

Still to be done/discussed:

 (a) Is the list of modules complete? I listed the three that I could
     figure out.  I deleted the whole gnulib/ subdirectory and
     recreated it using the script and GDB seems to build. Nothing
     seems to be deleted except some files in gnulib/extra
     (arg-nonnull.h, c++defs.h, warn-on-use.h). Are we using those?

 (b) Is the update procedure to regenerate configure, Makefiles et al
     complete? Right now, after the gnulib-tool is called, we do
     the following:

        aclocal -Ignulib/m4 &&
        autoconf &&
        automake

     Do we need to call autoheader, aclocal without argument, etc?

Thoughts?

Thanks,
-- 
Joel

PS: The suggestion to use gnulib's update-copyright was made because
    it handles more files than our emacs-based copyright.sh script
    does.  And it will hopefully be much faster as well.

[-- Attachment #2: update-gnulib.sh --]
[-- Type: application/x-sh, Size: 3153 bytes --]

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

end of thread, other threads:[~2011-12-21 21:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-12  0:25 [RFC] a script to update our gnulib import Joel Brobecker
2011-12-12  1:22 ` Alfred M. Szmidt
2011-12-12 12:53 ` Pedro Alves
2011-12-19  7:57   ` Joel Brobecker
2011-12-19 19:09     ` Alfred M. Szmidt
2011-12-20 10:42       ` Joel Brobecker
2011-12-20 23:31         ` Alfred M. Szmidt
2011-12-21 17:25           ` Tom Tromey
2011-12-21 21:30             ` Alfred M. Szmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox