public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [release/branch] Set GDB version number to str 7.9.
@ 2015-02-19 12:04 Joel Brobecker
  2015-02-19 12:23 ` Joel Brobecker
  0 siblings, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2015-02-19 12:04 UTC (permalink / raw)
  To: gdb-patches

FYI:

In preparation for the GDB 7.9 release, I am about to push
this commit...

gdb/ChangeLog:

	* version.in: Set GDB version number to str 7.9.

Thanks,
-- 
Joel

---
 gdb/ChangeLog  | 4 ++++
 gdb/version.in | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5414247..b9ec454 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-19  Joel Brobecker  <brobecker@adacore.com>
+
+	* version.in: Set GDB version number to str 7.9.
+
 2015-02-17  Pedro Alves  <palves@redhat.com>
 
 	* event-loop.c: Don't declare nor define a queue type for
diff --git a/gdb/version.in b/gdb/version.in
index 8c98182..2d982e4 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-7.8.90.DATE-cvs
+str 7.9
-- 
1.9.1

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

* Re: [release/branch] Set GDB version number to str 7.9.
  2015-02-19 12:04 [release/branch] Set GDB version number to str 7.9 Joel Brobecker
@ 2015-02-19 12:23 ` Joel Brobecker
  2015-02-19 12:40   ` RFC: gdb-7.9-release tag on wrong commit (was: "Re: [release/branch] Set GDB version number to str 7.9.") Joel Brobecker
  0 siblings, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2015-02-19 12:23 UTC (permalink / raw)
  To: gdb-patches

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

> In preparation for the GDB 7.9 release, I am about to push
> this commit...
> 
> gdb/ChangeLog:
> 
> 	* version.in: Set GDB version number to str 7.9.
[...]
> diff --git a/gdb/version.in b/gdb/version.in
> index 8c98182..2d982e4 100644
> --- a/gdb/version.in
> +++ b/gdb/version.in
> @@ -1 +1 @@
> -7.8.90.DATE-cvs
> +str 7.9

For those who were actually paying attention (not me), there is
an obvious mistake in the version number.

For my penance, I'll explain how it happened:
I use a set of python scripts to do most of the grunt work.
The purpose is to make sure everything gets done without anything
falling through the cracks; and by doing most of it automatically,
I reduce the changes for errors. The scripts are configured via
a small yaml file. Normally, I'd just put write the version number
and done, but "7.9" looking like a float, I have to say "!!str 7.9"
instead. Except that I forgot the two leading "!!".

The scripts show me the diff before pushing, and asks me to confirm.
But I was sleeping at the wheel. Fortunately, I caught it slightly
later on. Attached is the patch that fixes the issue.

gdb/ChangeLog:

        * version.in: Change to "7.9" instead of "str 7.9".

-- 
Joel

[-- Attachment #2: 0001-Fix-the-gdb-version-number-7.9-instead-of-str-7.9.patch --]
[-- Type: text/x-diff, Size: 1021 bytes --]

From 3b41352824ddc32dabca2d3281a03b4a0b8c7a27 Mon Sep 17 00:00:00 2001
From: Joel Brobecker <brobecker@adacore.com>
Date: Thu, 19 Feb 2015 16:16:34 +0400
Subject: [PATCH] Fix the gdb version number ("7.9" instead of "str 7.9").

This fixes an obvious error in the previous change to this file.

gdb/ChangeLog:

        * version.in: Change to "7.9" instead of "str 7.9".
---
 gdb/ChangeLog  | 4 ++++
 gdb/version.in | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index dd40512..4fc8c2d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2015-02-19  Joel Brobecker  <brobecker@adacore.com>
 
+	* version.in: Set GDB version number to 7.9.
+
+2015-02-19  Joel Brobecker  <brobecker@adacore.com>
+
 	* version.in: Set GDB version number to str 7.9.
 
 2015-02-19  Joel Brobecker  <brobecker@adacore.com>
diff --git a/gdb/version.in b/gdb/version.in
index 2d982e4..fbf1779 100644
--- a/gdb/version.in
+++ b/gdb/version.in
@@ -1 +1 @@
-str 7.9
+7.9
-- 
1.9.1


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

* RFC: gdb-7.9-release tag on wrong commit (was: "Re: [release/branch] Set GDB version number to str 7.9.")
  2015-02-19 12:23 ` Joel Brobecker
@ 2015-02-19 12:40   ` Joel Brobecker
  2015-02-19 12:45     ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2015-02-19 12:40 UTC (permalink / raw)
  To: gdb-patches

On Thu, Feb 19, 2015 at 04:23:19PM +0400, Joel Brobecker wrote:
> > In preparation for the GDB 7.9 release, I am about to push
> > this commit...
> > 
> > gdb/ChangeLog:
> > 
> > 	* version.in: Set GDB version number to str 7.9.
> [...]
> > diff --git a/gdb/version.in b/gdb/version.in
> > index 8c98182..2d982e4 100644
> > --- a/gdb/version.in
> > +++ b/gdb/version.in
> > @@ -1 +1 @@
> > -7.8.90.DATE-cvs
> > +str 7.9
> 
> For those who were actually paying attention (not me), there is
> an obvious mistake in the version number.
[...]
> But I was sleeping at the wheel. Fortunately, I caught it slightly
> later on. Attached is the patch that fixes the issue.

Humpf, I am realizing now that this was not soon enough:
I already pushed the gdb-7.9-release tag, and that tag
points to the first commit, and therefore has the wrong
version number in it.

The normal thing to do in those cases is to just accept the mistake
and create a new tag, tagging the correct commit. I find it so very
very ugly, but if I were to fix the tag, anyone having pulled from
sourceware would already have the "wrong" one, and would later on
have to delete the tag from their repository before they can get
the new one.

I'm not sure what to do:
  1. Create a new tag  (Eg: "gdb-7.9.0-release")
  2. Just re-do the tag (aka "the insane way")
  3. Leave things as is
  4. Abandon "7.9" and release "7.9.1" instead...

I am leaning towards option 4...

Thoughts?
-- 
Joel

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

* Re: RFC: gdb-7.9-release tag on wrong commit (was: "Re: [release/branch] Set GDB version number to str 7.9.")
  2015-02-19 12:40   ` RFC: gdb-7.9-release tag on wrong commit (was: "Re: [release/branch] Set GDB version number to str 7.9.") Joel Brobecker
@ 2015-02-19 12:45     ` Eli Zaretskii
  2015-02-19 12:57       ` RFC: gdb-7.9-release tag on wrong commit Pedro Alves
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2015-02-19 12:45 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

> Date: Thu, 19 Feb 2015 16:40:10 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> 
> I'm not sure what to do:
>   1. Create a new tag  (Eg: "gdb-7.9.0-release")
>   2. Just re-do the tag (aka "the insane way")
>   3. Leave things as is
>   4. Abandon "7.9" and release "7.9.1" instead...
> 
> I am leaning towards option 4...

Wouldn't it be even more confusing to have 7.9.1 without 7.9?

I'd say creating a new tag is good enough.

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

* Re: RFC: gdb-7.9-release tag on wrong commit
  2015-02-19 12:45     ` Eli Zaretskii
@ 2015-02-19 12:57       ` Pedro Alves
  2015-02-19 13:46         ` Joel Brobecker
  0 siblings, 1 reply; 6+ messages in thread
From: Pedro Alves @ 2015-02-19 12:57 UTC (permalink / raw)
  To: Eli Zaretskii, Joel Brobecker; +Cc: gdb-patches

On 02/19/2015 12:45 PM, Eli Zaretskii wrote:
>> Date: Thu, 19 Feb 2015 16:40:10 +0400
>> From: Joel Brobecker <brobecker@adacore.com>
>>
>> I'm not sure what to do:
>>   1. Create a new tag  (Eg: "gdb-7.9.0-release")
>>   2. Just re-do the tag (aka "the insane way")
>>   3. Leave things as is
>>   4. Abandon "7.9" and release "7.9.1" instead...
>>
>> I am leaning towards option 4...
> 
> Wouldn't it be even more confusing to have 7.9.1 without 7.9?
> 
> I'd say creating a new tag is good enough.

Agreed.

To minimize confusion, you can also delete the bad tag, and
then most people won't ever see it.  Those who managed to
pull in the bad tag in can get rid of it with
e.g., "git pull --prune --tags".

Thanks,
Pedro Alves

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

* Re: RFC: gdb-7.9-release tag on wrong commit
  2015-02-19 12:57       ` RFC: gdb-7.9-release tag on wrong commit Pedro Alves
@ 2015-02-19 13:46         ` Joel Brobecker
  0 siblings, 0 replies; 6+ messages in thread
From: Joel Brobecker @ 2015-02-19 13:46 UTC (permalink / raw)
  To: Pedro Alves; +Cc: Eli Zaretskii, gdb-patches

> > Wouldn't it be even more confusing to have 7.9.1 without 7.9?
> > 
> > I'd say creating a new tag is good enough.
> 
> Agreed.
> 
> To minimize confusion, you can also delete the bad tag, and
> then most people won't ever see it.  Those who managed to
> pull in the bad tag in can get rid of it with
> e.g., "git pull --prune --tags".

I would have documented it in both NEWS and website, but
deleting the tag is indeed a good idea. I will create a new one
momentarily.

Thanks for your feedback.

-- 
Joel

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

end of thread, other threads:[~2015-02-19 13:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-19 12:04 [release/branch] Set GDB version number to str 7.9 Joel Brobecker
2015-02-19 12:23 ` Joel Brobecker
2015-02-19 12:40   ` RFC: gdb-7.9-release tag on wrong commit (was: "Re: [release/branch] Set GDB version number to str 7.9.") Joel Brobecker
2015-02-19 12:45     ` Eli Zaretskii
2015-02-19 12:57       ` RFC: gdb-7.9-release tag on wrong commit Pedro Alves
2015-02-19 13:46         ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).