From patchwork Tue Sep 5 20:42:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamil Rytarowski X-Patchwork-Id: 22659 Received: (qmail 66763 invoked by alias); 5 Sep 2017 20:55:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 66267 invoked by uid 89); 5 Sep 2017 20:55:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1281, D*gmx.com, our X-HELO: mout.gmx.net Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.15.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 05 Sep 2017 20:55:06 +0000 Received: from localhost.localdomain ([185.58.161.191]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0Lvkwm-1dQHbe2SJ2-017Xuy; Tue, 05 Sep 2017 22:54:54 +0200 From: Kamil Rytarowski To: jhb@FreeBSD.org Cc: gdb-patches@sourceware.org, Kamil Rytarowski Subject: [PATCH] Correct shell compatibility issue detected with pkgsrc. Date: Tue, 5 Sep 2017 22:42:39 +0200 Message-Id: <20170905204239.17030-1-n54@gmx.com> X-UI-Out-Filterresults: notjunk:1; V01:K0:v5mF8u9PRIg=:Cddrl8e//SeiLglVsnIlW+ VgBvVGIQH8UDVrLWIQbK1GjIgpJyQCynYSeUTT6UTTkAnTkw8SIx4yZU8L/tADDRMfXwoGCOm hiMPrRlN4rZYUXpEiZOYuYN2JkJNx2Q+W6IUg9D721aDSD498oKz7OGfF8p1PiGihboL5kXxl U2vEU9tfNH2h4UKGeD5Pm6V733QUSii2mcXx1BYCMelSfR/uS7VxcRSuvtNNw9/cs9QIQxTUo Ch5K7fjIQHw1opsvIYEOxXjsovrJKHBfvTBTSCBNVgl90Qb5bLDiByh0t/s1tWiJK8g8ifQ0X BKvATPf+iMbjMnLgDCGP2WeBMLpBfSdQWC37PZpaC0wc7GMA9ZSvWSrDjFR+VBg8GZ6rb7hO4 C7J03riwR76hPvueRqqSeFnAxlLojfe1ylOE64U2rrw/RlKBN1DYDWETJOhjYmWaPz7lDW4e6 kgBBAwyNRJOLiX91JmEq1XEGPgSXy31NzSXPW+GyhthAf8yBeI2q7ZB2a8OCq/SFPuXQ5t83d moZy6cwYWiSOxQAWvxAYM5fzNcYz9ive/S5NPlCH4nRL5/QCpeCYJI7AKEXaHuEw7l9NXX8+a 5p1wCBOMVJuhJ0aq0W8A7puV61eTl4AZV//VQls/+l5StxYHDkR5A753GTxW+BwYQ8MHUnU0w 9TGaXa2+fcT0DjMPu1RLp2RcwtkWzURZDNg34rfa8FTlenX7Y9y77YQ8mCXTB1flz0ylryfu+ 2C2ssf9DwDDKVwhNpashu4qzItfmHSvocMLbFLfl82Dyriy8aNvm0zNNeWcBAdagOkwcdfOvG x133cG+yNKtuYXHeqiRRKVO0BlBVw== X-IsSubscribed: yes 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 * 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 + + * config/djgpp/djconfig.sh: Correct shell portability issue. + 2017-09-05 Philippe Waroquiers * 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