* [RFA] adjust src-release following the renaming of gdb/common/ to gdb/gdbsupport/
@ 2019-07-12 23:13 Joel Brobecker
2019-07-13 5:45 ` Richard Biener
0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2019-07-12 23:13 UTC (permalink / raw)
To: gcc-patches; +Cc: gdb-patches, Sergio Durigan Junior, Tom Tromey
Hello,
A recent change renamed the common/ directory into gdbsupport/ in gdb.
This causes problems in the getver function in the src-release script
which doesn't find the create-version.sh script anymore. As a result,
it falls back on using the version.in file verbatim, meaning that
the "DATE" placeholder doesn't get replaced with the snapshot date,
and the "-git" suffix doesn't get stripped. More precisely, we get
snapshots called "gdb-8.3.50-DATE-git.tar" instead of (e.g.)
"gdb-8.3-20190712.tar".
For those who have been getting snapshots from sourceware, this is also
why recent snapshots are missing.
This commit fixes the issue by adding support for this situation.
I left the support for $tool/common/create-version.sh, because
the sim still uses that directory structure.
ChangeLog:
* src-release (getver): If $tool/gdbsupport/create-version.sh
exists, use that to determine the version number.
Tested on x86_64-linux, by running the src-release script with "gdb"
as the argument, and verifying that the name of the tarball is now
correct.
OK to push?
Thanks!
--
Joel
---
src-release.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src-release.sh b/src-release.sh
index 1654656146f..90d556896c9 100755
--- a/src-release.sh
+++ b/src-release.sh
@@ -61,6 +61,10 @@ getver()
$tool/common/create-version.sh $tool 'dummy-host' 'dummy-target' VER.tmp
cat VER.tmp | grep 'version\[\]' | sed 's/.*"\([^"]*\)".*/\1/' | sed 's/-git$//'
rm -f VER.tmp
+ elif test -f $tool/gdbsupport/create-version.sh; then
+ $tool/gdbsupport/create-version.sh $tool 'dummy-host' 'dummy-target' VER.tmp
+ cat VER.tmp | grep 'version\[\]' | sed 's/.*"\([^"]*\)".*/\1/' | sed 's/-git$//'
+ rm -f VER.tmp
elif test -f $tool/version.in; then
head -1 $tool/version.in
else
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFA] adjust src-release following the renaming of gdb/common/ to gdb/gdbsupport/
2019-07-12 23:13 [RFA] adjust src-release following the renaming of gdb/common/ to gdb/gdbsupport/ Joel Brobecker
@ 2019-07-13 5:45 ` Richard Biener
2019-07-14 1:02 ` Joel Brobecker
0 siblings, 1 reply; 3+ messages in thread
From: Richard Biener @ 2019-07-13 5:45 UTC (permalink / raw)
To: gcc-patches, Joel Brobecker
Cc: gdb-patches, Sergio Durigan Junior, Tom Tromey
On July 13, 2019 1:12:56 AM GMT+02:00, Joel Brobecker <brobecker@adacore.com> wrote:
>Hello,
>
>A recent change renamed the common/ directory into gdbsupport/ in gdb.
>This causes problems in the getver function in the src-release script
>which doesn't find the create-version.sh script anymore. As a result,
>it falls back on using the version.in file verbatim, meaning that
>the "DATE" placeholder doesn't get replaced with the snapshot date,
>and the "-git" suffix doesn't get stripped. More precisely, we get
>snapshots called "gdb-8.3.50-DATE-git.tar" instead of (e.g.)
>"gdb-8.3-20190712.tar".
>
>For those who have been getting snapshots from sourceware, this is also
>why recent snapshots are missing.
>
>This commit fixes the issue by adding support for this situation.
>I left the support for $tool/common/create-version.sh, because
>the sim still uses that directory structure.
>
>ChangeLog:
>
> * src-release (getver): If $tool/gdbsupport/create-version.sh
> exists, use that to determine the version number.
>
>Tested on x86_64-linux, by running the src-release script with "gdb"
>as the argument, and verifying that the name of the tarball is now
>correct.
>
>OK to push?
Ok.
Richard.
>
>Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA] adjust src-release following the renaming of gdb/common/ to gdb/gdbsupport/
2019-07-13 5:45 ` Richard Biener
@ 2019-07-14 1:02 ` Joel Brobecker
0 siblings, 0 replies; 3+ messages in thread
From: Joel Brobecker @ 2019-07-14 1:02 UTC (permalink / raw)
To: Richard Biener
Cc: gcc-patches, gdb-patches, Sergio Durigan Junior, Tom Tromey
> >ChangeLog:
> >
> > * src-release (getver): If $tool/gdbsupport/create-version.sh
> > exists, use that to determine the version number.
> >
> >Tested on x86_64-linux, by running the src-release script with "gdb"
> >as the argument, and verifying that the name of the tarball is now
> >correct.
>
> Ok.
Thanks Richard. Pushed to the master branch in binutils-gdb. I looked at
the GCC repository, and couldn't find it there, so synchronization to do
between the two, after all!
--
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-14 1:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-12 23:13 [RFA] adjust src-release following the renaming of gdb/common/ to gdb/gdbsupport/ Joel Brobecker
2019-07-13 5:45 ` Richard Biener
2019-07-14 1:02 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox