Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Correct shell compatibility issue detected with pkgsrc.
@ 2017-09-05 20:55 Kamil Rytarowski
  2017-09-06  0:17 ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Kamil Rytarowski @ 2017-09-05 20:55 UTC (permalink / raw)
  To: jhb; +Cc: gdb-patches, Kamil Rytarowski

String comparison of in a POSIX bourne shell must be done
with '=', not '=='. For example the NetBSD sh(1) does not
support it.

gdb/ChangeLog
2017-09-05  Kamil Rytarowski <n54@gmx.com>

	* config/djgpp/djconfig.sh: Correct shell portability issue
---
 gdb/ChangeLog                | 4 ++++
 gdb/config/djgpp/djconfig.sh | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6d2eae58bc..a8e1837b6a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2017-09-05  Kamil Rytarowski <n54@gmx.com>
+
+	* config/djgpp/djconfig.sh: Correct shell portability issue.
+
 2017-09-05  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
 
 	* objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
diff --git a/gdb/config/djgpp/djconfig.sh b/gdb/config/djgpp/djconfig.sh
index 6c0d8698e8..dbaf8f5d76 100644
--- a/gdb/config/djgpp/djconfig.sh
+++ b/gdb/config/djgpp/djconfig.sh
@@ -92,7 +92,7 @@ TMPFILE="${TMPDIR-.}/cfg.tmp"
 
 # We need to skip the build directory if it is a subdirectory of $srcdir,
 # otherwise we will have an infinite recursion on our hands...
-if test "`pwd`" == "${srcdir}" ; then
+if test "`pwd`" = "${srcdir}" ; then
   SKIPDIR=""
   SKIPFILES=""
 else
-- 
2.14.1


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

* Re: [PATCH] Correct shell compatibility issue detected with pkgsrc.
  2017-09-05 20:55 [PATCH] Correct shell compatibility issue detected with pkgsrc Kamil Rytarowski
@ 2017-09-06  0:17 ` Joel Brobecker
  2017-09-06  0:30   ` Kamil Rytarowski
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Brobecker @ 2017-09-06  0:17 UTC (permalink / raw)
  To: Kamil Rytarowski; +Cc: jhb, gdb-patches

> String comparison of in a POSIX bourne shell must be done
> with '=', not '=='. For example the NetBSD sh(1) does not
> support it.
> 
> gdb/ChangeLog
> 2017-09-05  Kamil Rytarowski <n54@gmx.com>
> 
> 	* config/djgpp/djconfig.sh: Correct shell portability issue

Indeed. Looks good, so go ahead and push to master.

I did notice you were missing a period at the end of the sentence
in the ChangeLog entry above, but it's in the diff. Can you fix it
before pushing?

Thanks!

> ---
>  gdb/ChangeLog                | 4 ++++
>  gdb/config/djgpp/djconfig.sh | 2 +-
>  2 files changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/gdb/ChangeLog b/gdb/ChangeLog
> index 6d2eae58bc..a8e1837b6a 100644
> --- a/gdb/ChangeLog
> +++ b/gdb/ChangeLog
> @@ -1,3 +1,7 @@
> +2017-09-05  Kamil Rytarowski <n54@gmx.com>
> +
> +	* config/djgpp/djconfig.sh: Correct shell portability issue.
> +
>  2017-09-05  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
>  
>  	* objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
> diff --git a/gdb/config/djgpp/djconfig.sh b/gdb/config/djgpp/djconfig.sh
> index 6c0d8698e8..dbaf8f5d76 100644
> --- a/gdb/config/djgpp/djconfig.sh
> +++ b/gdb/config/djgpp/djconfig.sh
> @@ -92,7 +92,7 @@ TMPFILE="${TMPDIR-.}/cfg.tmp"
>  
>  # We need to skip the build directory if it is a subdirectory of $srcdir,
>  # otherwise we will have an infinite recursion on our hands...
> -if test "`pwd`" == "${srcdir}" ; then
> +if test "`pwd`" = "${srcdir}" ; then
>    SKIPDIR=""
>    SKIPFILES=""
>  else
> -- 
> 2.14.1

-- 
Joel


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

* Re: [PATCH] Correct shell compatibility issue detected with pkgsrc.
  2017-09-06  0:17 ` Joel Brobecker
@ 2017-09-06  0:30   ` Kamil Rytarowski
  2017-09-06  1:04     ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Kamil Rytarowski @ 2017-09-06  0:30 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: jhb, gdb-patches


[-- Attachment #1.1: Type: text/plain, Size: 1937 bytes --]

On 06.09.2017 02:17, Joel Brobecker wrote:
>> String comparison of in a POSIX bourne shell must be done
>> with '=', not '=='. For example the NetBSD sh(1) does not
>> support it.
>>
>> gdb/ChangeLog
>> 2017-09-05  Kamil Rytarowski <n54@gmx.com>
>>
>> 	* config/djgpp/djconfig.sh: Correct shell portability issue
> 
> Indeed. Looks good, so go ahead and push to master.
> 
> I did notice you were missing a period at the end of the sentence
> in the ChangeLog entry above, but it's in the diff. Can you fix it
> before pushing?
> 
> Thanks!
> 

I've fixed it locally but I cannot push the patch myself.

$ git push upstream master
fatal: remote error: access denied or repository not exported:
/git/binutils-gdb.git

I have the papers done for GNU binutils, GDB and GCC.

>> ---
>>  gdb/ChangeLog                | 4 ++++
>>  gdb/config/djgpp/djconfig.sh | 2 +-
>>  2 files changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/gdb/ChangeLog b/gdb/ChangeLog
>> index 6d2eae58bc..a8e1837b6a 100644
>> --- a/gdb/ChangeLog
>> +++ b/gdb/ChangeLog
>> @@ -1,3 +1,7 @@
>> +2017-09-05  Kamil Rytarowski <n54@gmx.com>
>> +
>> +	* config/djgpp/djconfig.sh: Correct shell portability issue.
>> +
>>  2017-09-05  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
>>  
>>  	* objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
>> diff --git a/gdb/config/djgpp/djconfig.sh b/gdb/config/djgpp/djconfig.sh
>> index 6c0d8698e8..dbaf8f5d76 100644
>> --- a/gdb/config/djgpp/djconfig.sh
>> +++ b/gdb/config/djgpp/djconfig.sh
>> @@ -92,7 +92,7 @@ TMPFILE="${TMPDIR-.}/cfg.tmp"
>>  
>>  # We need to skip the build directory if it is a subdirectory of $srcdir,
>>  # otherwise we will have an infinite recursion on our hands...
>> -if test "`pwd`" == "${srcdir}" ; then
>> +if test "`pwd`" = "${srcdir}" ; then
>>    SKIPDIR=""
>>    SKIPFILES=""
>>  else
>> -- 
>> 2.14.1
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [PATCH] Correct shell compatibility issue detected with pkgsrc.
  2017-09-06  0:30   ` Kamil Rytarowski
@ 2017-09-06  1:04     ` Joel Brobecker
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Brobecker @ 2017-09-06  1:04 UTC (permalink / raw)
  To: Kamil Rytarowski; +Cc: jhb, gdb-patches

> I've fixed it locally but I cannot push the patch myself.
> 
> $ git push upstream master
> fatal: remote error: access denied or repository not exported:
> /git/binutils-gdb.git
> 
> I have the papers done for GNU binutils, GDB and GCC.

Time to give you Write After Approval access.
I'll contact you privately about it.

-- 
Joel


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

end of thread, other threads:[~2017-09-06  1:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-05 20:55 [PATCH] Correct shell compatibility issue detected with pkgsrc Kamil Rytarowski
2017-09-06  0:17 ` Joel Brobecker
2017-09-06  0:30   ` Kamil Rytarowski
2017-09-06  1:04     ` Joel Brobecker

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