Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] gdb: suppress runtime warning
Date: Thu, 26 Dec 2019 14:29:54 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-17794@inbox.vuxu.org> (raw)

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

There is a new pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages gdb-runtime-warning
https://github.com/void-linux/void-packages/pull/17794

gdb: suppress runtime warning


A patch file from https://github.com/void-linux/void-packages/pull/17794.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gdb-runtime-warning-17794.patch --]
[-- Type: text/x-diff, Size: 1739 bytes --]

From c299f285d09b11ae6e109aa0be0abb2df725f495 Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Thu, 26 Dec 2019 19:18:37 +0700
Subject: [PATCH] gdb: suppress runtime warning

---
 srcpkgs/gdb/patches/runtime-warning.patch | 20 ++++++++++++++++++++
 srcpkgs/gdb/template                      |  2 +-
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/gdb/patches/runtime-warning.patch

diff --git a/srcpkgs/gdb/patches/runtime-warning.patch b/srcpkgs/gdb/patches/runtime-warning.patch
new file mode 100644
index 00000000000..d136e5704aa
--- /dev/null
+++ b/srcpkgs/gdb/patches/runtime-warning.patch
@@ -0,0 +1,20 @@
+--- a/gdb/python/lib/gdb/command/prompt.py
++++ b/gdb/python/lib/gdb/command/prompt.py
+@@ -45,7 +45,7 @@
+         self.hook_set = False
+ 
+     def get_show_string (self, pvalue):
+-        if self.value is not '':
++        if self.value is not None and self.value != '':
+            return "The extended prompt is: " + self.value
+         else:
+            return "The extended prompt is not set."
+@@ -57,7 +57,7 @@
+         return ""
+ 
+     def before_prompt_hook(self, current):
+-        if self.value is not '':
++        if self.value is not None and self.value != '':
+             return gdb.prompt.substitute_prompt(self.value)
+         else:
+             return None
diff --git a/srcpkgs/gdb/template b/srcpkgs/gdb/template
index 39aab79d08a..f024c655e9d 100644
--- a/srcpkgs/gdb/template
+++ b/srcpkgs/gdb/template
@@ -1,7 +1,7 @@
 # Template file for 'gdb'
 pkgname=gdb
 version=8.3.1
-revision=2
+revision=3
 build_style=gnu-configure
 pycompile_dirs="/usr/share/gdb"
 configure_args="--disable-werror --disable-nls --with-system-readline

             reply	other threads:[~2019-12-26 13:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-26 13:29 voidlinux-github [this message]
2019-12-26 21:08 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-17794@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).