[Libreoffice-commits] core.git: solenv/gdb

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Fri Oct 9 15:05:09 UTC 2020


 solenv/gdb/boost/util/printing.py       |    5 ++++-
 solenv/gdb/libreoffice/util/printing.py |    5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

New commits:
commit f9d9a21d0271d3ddc689dfe12983ec6c96d8ccbc
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Oct 9 15:25:06 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Oct 9 17:04:24 2020 +0200

    Adapt solenv/gdb/ to old Python
    
    After 4a899a5f8a72ea29a6919316afe3627de9f33e95 "Fix Python deprecation warnings"e.g. <https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/70542/console>
    started to complain
    
    > Traceback (most recent call last):
    >   File "/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/instdir/program/libuno_sal.so.3-gdb.py", line 23, in <module>
    >     module = importlib.import_module('libreoffice.' + mod)
    >   File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    >     __import__(name)
    >   File "/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/solenv/gdb/libreoffice/sal.py", line 14, in <module>
    >     from libreoffice.util import printing
    >   File "/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/solenv/gdb/libreoffice/util/printing.py", line 10, in <module>
    >     from collections.abc import Mapping
    > ImportError: No module named abc
    
    etc. when lode's bin/kill-wrapper calls gdb to obtain backtraces of hung
    processes.
    
    Change-Id: I4fe6c6fa97bbb455a071dd28e5c1ab33f2337a0f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104119
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/solenv/gdb/boost/util/printing.py b/solenv/gdb/boost/util/printing.py
index 85a91c9340a4..22bf29f8030a 100644
--- a/solenv/gdb/boost/util/printing.py
+++ b/solenv/gdb/boost/util/printing.py
@@ -19,7 +19,10 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-from collections.abc import Mapping
+try:
+    from collections.abc import Mapping
+except:
+    from collections import Mapping
 import gdb
 import re
 import six
diff --git a/solenv/gdb/libreoffice/util/printing.py b/solenv/gdb/libreoffice/util/printing.py
index 30e311678025..a31e353cfa4d 100644
--- a/solenv/gdb/libreoffice/util/printing.py
+++ b/solenv/gdb/libreoffice/util/printing.py
@@ -7,7 +7,10 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 #
 
-from collections.abc import Mapping
+try:
+    from collections.abc import Mapping
+except:
+    from collections import Mapping
 import gdb
 import re
 import six


More information about the Libreoffice-commits mailing list