diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-09-22 16:39:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-09-22 18:52:14 +0200 |
commit | 27b70777888f9e98380ce6d1e7f777b4135dadcc (patch) | |
tree | 4deaacbdf0651ec213b84236dcc392ef7a7c2e2e /sysui | |
parent | 8898955456ce6a6dc0ce9401ee05ce9d04e13668 (diff) |
Suppress PYTHONWARNINGS=error in system g-ir-scanner
With 315919306c7b6e95db6a280c4aa8d2203970e292 "Set PYTHONWARNINGS to error by
default for --enable-werror" my build on Fedora 32 started to fail in
CustomTarget_sysui/share with
> Exception ignored in: <socket.socket fd=4, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
> Traceback (most recent call last):
> File "/usr/lib/python3.8/site-packages/abrt_exception_handler3.py", line 93, in write_dump
> response = send(data)
> ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
> Traceback (most recent call last):
> File "/usr/bin/g-ir-scanner", line 103, in <module>
> from giscanner.scannermain import scanner_main
> File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 35, in <module>
> from giscanner.ast import Include, Namespace
> File "/usr/lib64/gobject-introspection/giscanner/ast.py", line 29, in <module>
> from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
> File "/usr/lib64/gobject-introspection/giscanner/sourcescanner.py", line 24, in <module>
> from .libtoolimporter import LibtoolImporter
> File "/usr/lib64/gobject-introspection/giscanner/libtoolimporter.py", line 21, in <module>
> import imp
> File "/usr/lib64/python3.8/imp.py", line 31, in <module>
> warnings.warn("the imp module is deprecated in favour of importlib; "
> DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
Change-Id: I919caaad482e844ef1549f248a2faf2274c9efa0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103177
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sysui')
-rw-r--r-- | sysui/CustomTarget_share.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysui/CustomTarget_share.mk b/sysui/CustomTarget_share.mk index f4c38f813a09..47f86ba37420 100644 --- a/sysui/CustomTarget_share.mk +++ b/sysui/CustomTarget_share.mk @@ -194,7 +194,7 @@ ifneq ($(INTROSPECTION_SCANNER),) $(share_WORKDIR)/%/LOKDocView-0.1.gir: \ $(call gb_Library_get_target,libreofficekitgtk) mkdir -p $(dir $@) - g-ir-scanner "${SRCDIR}/include/LibreOfficeKit/LibreOfficeKitGtk.h" \ + PYTHONWARNINGS=default g-ir-scanner "${SRCDIR}/include/LibreOfficeKit/LibreOfficeKitGtk.h" \ "${SRCDIR}/libreofficekit/source/gtk/lokdocview.cxx" \ `${PKG_CONFIG} --cflags gobject-introspection-1.0 gtk+-3.0` \ -I"${SRCDIR}/include/" \ |