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