Bug#893540: telegram-desktop: Fails to build with Qt 5.10

2018-03-19 Thread Коля Гурьев
Hi,

To build the package in chroot, mount /dev/shm directory using the next
command:

sudo mount --bind /dev/shm /path/to/chroot/dev/shm

I hope this will fix the configuring error.



Bug#893540: telegram-desktop: Fails to build with Qt 5.10

2018-03-19 Thread Lisandro Damián Nicanor Pérez Meyer
Source: telegram-desktop
Version: 1.2.6-2
Severity: important
User: debian-qt-...@lists.debian.org
Usertags: qt5.10.1

Hi! Your package fails to build from source with Qt 5.10.1 in
experimental.

It is worth to note that:

- your package uses Qt's private headers, so you might need to fix code to 
solve this.
- I have tested this on a chroot but maybe something else is going on
  here.

I'm attaching the buildlog.

We plant to start the 5.10 transition soon.


-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
dpkg-buildpackage: info: source package telegram-desktop
dpkg-buildpackage: info: source version 1.2.6-2
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Nicholas Guriev 
 dpkg-source --before-build telegram-desktop-1.2.6
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean --sourcedirectory=obj-x86_64-linux-gnu/Release
   debian/rules override_dh_auto_clean
make[1]: Entering directory 
'/home/lisandro/debian/mentor/telegram-desktop/telegram-desktop-1.2.6'
dh_auto_clean || dh_auto_clean 
--sourcedirectory=/home/lisandro/debian/mentor/telegram-desktop/telegram-desktop-1.2.6
Use of uninitialized value $abspath in -d at 
/usr/share/perl5/Debian/Debhelper/Buildsystem.pm line 65.
dh_auto_clean: invalid or non-existing path to the source directory: 
obj-x86_64-linux-gnu/Release
rm -f Telegram/gyp/tests/*.test
make[1]: Leaving directory 
'/home/lisandro/debian/mentor/telegram-desktop/telegram-desktop-1.2.6'
   dh_clean -O--sourcedirectory=obj-x86_64-linux-gnu/Release
 dpkg-source -b telegram-desktop-1.2.6
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building telegram-desktop using existing 
./telegram-desktop_1.2.6.orig.tar.gz
dpkg-source: info: building telegram-desktop in 
telegram-desktop_1.2.6-2.debian.tar.xz
dpkg-source: info: building telegram-desktop in telegram-desktop_1.2.6-2.dsc
 debian/rules build
dh build --sourcedirectory=obj-x86_64-linux-gnu/Release
   dh_update_autotools_config -O--sourcedirectory=obj-x86_64-linux-gnu/Release
   dh_autoreconf -O--sourcedirectory=obj-x86_64-linux-gnu/Release
   debian/rules override_dh_auto_configure
make[1]: Entering directory 
'/home/lisandro/debian/mentor/telegram-desktop/telegram-desktop-1.2.6'
gyp --format=cmake --depth=Telegram/gyp --generator-output=../.. 
-Duse_packed_resources -Goutput_dir=obj-x86_64-linux-gnu -Gconfig=Release 
Telegram/gyp/Telegram.gyp
Traceback (most recent call last):
  File "/usr/bin/gyp", line 9, in 
load_entry_point('gyp==0.1', 'console_scripts', 'gyp')()
  File "/usr/lib/python2.7/dist-packages/gyp/__init__.py", line 545, in 
script_main
return main(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/gyp/__init__.py", line 538, in main
return gyp_main(args)
  File "/usr/lib/python2.7/dist-packages/gyp/__init__.py", line 514, in gyp_main
options.duplicate_basename_check)
  File "/usr/lib/python2.7/dist-packages/gyp/__init__.py", line 130, in Load
params['parallel'], params['root_targets'])
  File "/usr/lib/python2.7/dist-packages/gyp/input.py", line 2763, in Load
check, generator_input_info)
  File "/usr/lib/python2.7/dist-packages/gyp/input.py", line 596, in 
LoadTargetBuildFilesParallel
parallel_state.pool = multiprocessing.Pool(multiprocessing.cpu_count())
  File "/usr/lib/python2.7/multiprocessing/__init__.py", line 232, in Pool
return Pool(processes, initializer, initargs, maxtasksperchild)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 140, in __init__
self._setup_queues()
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 236, in _setup_queues
self._inqueue = SimpleQueue()
  File "/usr/lib/python2.7/multiprocessing/queues.py", line 352, in __init__
self._rlock = Lock()
  File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in 
__init__
SemLock.__init__(self, SEMAPHORE, 1, 1)
  File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 13] Permission denied
make[1]: *** [debian/rules:72: override_dh_auto_configure] Error 1
make[1]: Leaving directory 
'/home/lisandro/debian/mentor/telegram-desktop/telegram-desktop-1.2.6'
make: *** [debian/rules:57: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2