Bug#972858: zim FTBFS: FileNotFoundError: [Errno 2] No such file or directory: '/run/user/2952'

2020-10-25 Thread Raphael Hertzog
FWIW, this is really a bug in the build daemon that should not
set XDG_RUNTIME_DIR to some incorrect value:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842565

But I'll work around it in the mean time.

Cheers,
-- 
  ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog 
  ⣾⠁⢠⠒⠀⣿⡁
  ⢿⡄⠘⠷⠚⠋The Debian Handbook: https://debian-handbook.info/get/
  ⠈⠳⣄   Debian Long Term Support: https://deb.li/LTS



Bug#972858: zim FTBFS: FileNotFoundError: [Errno 2] No such file or directory: '/run/user/2952'

2020-10-25 Thread Adrian Bunk
Source: zim
Version: 0.73.3-1
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/fetch.php?pkg=zim&arch=all&ver=0.73.3-1&stamp=1603610569&raw=0

...
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:217: python3.8 setup.py clean
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(setup.py:32456): Gdk-CRITICAL **: 07:22:44.197: gdk_keymap_get_for_display: 
assertion 'GDK_IS_DISPLAY (display)' failed

(setup.py:32456): Gdk-CRITICAL **: 07:22:44.197: gdk_keymap_get_modifier_mask: 
assertion 'GDK_IS_KEYMAP (keymap)' failed

(setup.py:32456): Gdk-CRITICAL **: 07:22:44.197: gdk_keymap_get_for_display: 
assertion 'GDK_IS_DISPLAY (display)' failed

(setup.py:32456): Gtk-CRITICAL **: 07:22:44.197: 
_gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
Traceback (most recent call last):
  File "/<>/zim/main/ipc.py", line 82, in 
os.mkdir(runtime_dir, mode=0o700)
FileNotFoundError: [Errno 2] No such file or directory: '/run/user/2952'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 25, in 
import makeman # helper script
  File "/<>/makeman.py", line 13, in 
from zim.main import HelpCommand
  File "/<>/zim/main/__init__.py", line 39, in 
from .ipc import dispatch as _ipc_dispatch
  File "/<>/zim/main/ipc.py", line 90, in 
raise AssertionError('Either you are not the owner of "%s" or the 
permissions are un-safe.\n'
AssertionError: Either you are not the owner of "/run/user/2952" or the 
permissions are un-safe.
If you can not resolve this, try setting $XDG_RUNTIME_DIR or set $TMP to a 
different location.
E: pybuild pybuild:352: clean: plugin distutils failed with: exit code=1: 
python3.8 setup.py clean
dh_auto_clean: error: pybuild --clean -i python{version} -p 3.8 returned exit 
code 13
make: *** [debian/rules:12: clean] Error 25