File: silence-inkscape-output.patch

package info (click to toggle)
oxygencursors 0.0.2012-06-kde4.8-7
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,732 kB
  • sloc: sh: 54; makefile: 53; python: 39
file content (34 lines) | stat: -rw-r--r-- 1,595 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: =?utf-8?q?Christian_G=C3=B6ttsche?= <cgzones@googlemail.com>
Date: Tue, 12 May 2020 17:51:17 +0200
Subject: silence inkscape output

Every call to inkscape prints the following output:

    Unable to init server: Could not connect: Connection refused
    Failed to get connection
    ** (inkscape:18528): CRITICAL **: 15:48:06.682: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed

    ** (inkscape:18528): CRITICAL **: 15:48:06.682: dbus_g_proxy_call: assertion 'DBUS_IS_G_PROXY (proxy)' failed

    ** (inkscape:18528): CRITICAL **: 15:48:06.682: dbus_g_connection_register_g_object: assertion 'connection != NULL' failed

    ** (inkscape:18528): WARNING **: 15:48:06.795: Fonts dir '/usr/share/inkscape/fonts' does not exist and will be ignored.

They are caused by the minimal chroot and are non critical.
Especially in parallel builds these messages make the build log almost unreadable.
---
 cursors.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cursors.cmake b/cursors.cmake
index cb61f7e..dcaa2b4 100644
--- a/cursors.cmake
+++ b/cursors.cmake
@@ -22,6 +22,7 @@ macro(add_cursor cursor color theme dpi)
                            COMMAND ${INKSCAPE} --export-dpi=${resolution}
                                                --export-filename=${CMAKE_BINARY_DIR}/oxy-${theme}/png/${resolution}/${cursor}.png
                                                ${CMAKE_BINARY_DIR}/oxy-${theme}/svg/${cursor}.svg
+                                               > /dev/null 2>&1
                           )
     endforeach(resolution)
 endmacro(add_cursor)