[devel] Что-то не хватает пакету для сборки lightdm-webkit2-greeter-buildroot

Ruslandh ruslandh на gmail.com
Вс Май 15 19:12:16 MSK 2022


14.05.2022 22:39, Yuri Sedunov пишет:
> В Сб, 14/05/2022 в 21:57 +0300, Ruslandh пишет:
>> 14.05.2022 19:01, Ruslandh пишет:
>>> 14.05.2022 18:29, Yuri Sedunov пишет:
>>>
>>>
>>>> BuildRequires: rpm-build-gir
>>>>
>>>>
>>>
>>> Спасибо, сейчас попробую ;-
>>
>> Не помогло.
>>
> 
> 
> @@ -19,12 +19,8 @@
>   Patch2: lightdm-webkit2-greeter-3.4.1-opt.patch
>   
>   
> -%add_python3_path   %_libdir/web-greeter/bridge/__init__.py
> -%add_python3_path   %_bindir/web-greeter
> -
> -%add_findprov_skiplist %_libdir/web-greeter/*.py
> -%add_findreq_skiplist %_libdir/web-greeter/*.py
> -
> +%add_python3_path   %_libdir/web-greeter
> +%add_python3_req_skip gi.repository.GLib
>   
>   BuildRequires(pre): rpm-build-python3 rpm-build-gir
>   
> @@ -50,6 +46,8 @@
>   
>   %prep
>   %setup
> +sed -i 's|\(#\!/usr/bin/env python\)$|\13|' src/bridge/*.py
> +
>   %make clean
>   %patch -p1
>   %patch1 -p1
> 
> 
> 

О, что-то "зафурычило", во всяком случае не выпадает:


# web-greeter --debug
2022-05-15 18:49:21 [ ERROR ] acpi - acpi.py:20 : __init__ | ACPI: 
acpi_listen does not exists
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to 
'/tmp/.private/root/runtime-root'
2022-05-15 18:49:24 [ DEBUG ] screensaver - screensaver.py:57 : 
set_screensaver | Screensaver timeout set
2022-05-15 18:49:24 [ DEBUG ] browser - browser.py:194 : init | 
Initializing Browser Window
[5115:5115:0515/184926.422770:ERROR:zygote_host_impl_linux.cc(90)] 
Running as root without --no-sandbox is not supported. See 
https://crbug.com/638180.

# web-greeter --debug --no-sandbox
2022-05-15 18:52:00 [ ERROR ] acpi - acpi.py:20 : __init__ | ACPI: 
acpi_listen does not exists
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to 
'/tmp/.private/root/runtime-root'
2022-05-15 18:52:03 [ DEBUG ] screensaver - screensaver.py:57 : 
set_screensaver | Screensaver timeout set
2022-05-15 18:52:03 [ DEBUG ] browser - browser.py:194 : init | 
Initializing Browser Window

DevTools listening on 
ws://127.0.0.1:12345/devtools/browser/7470d3d2-180d-4341-9453-f9cef1e686df
2022-05-15 18:52:13 [ DEBUG ] browser - browser.py:280 : 
_initialize_devtools | DevTools initialized
2022-05-15 18:52:16 [ DEBUG ] browser - browser.py:250 : init | Browser 
Window created
2022-05-15 18:52:16 [ ERROR ] Greeter - Greeter.py:98 : __init__ | 
lightdm_greeter_error: Unable to determine socket to daemon (1)
Remote debugging server started successfully. Try pointing a 
Chromium-based browser to http://127.0.0.1:12345
[root на localhost ~]# web-greeter --debug --no-sandbo

2022-05-15 18:55:11 [ ERROR ] acpi - acpi.py:20 : __init__ | ACPI: 
acpi_listen does not exists
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to 
'/tmp/.private/root/runtime-root'
2022-05-15 18:55:15 [ DEBUG ] screensaver - screensaver.py:57 : 
set_screensaver | Screensaver timeout set
2022-05-15 18:55:15 [ DEBUG ] browser - browser.py:194 : init | 
Initializing Browser Window

DevTools listening on 
ws://127.0.0.1:12345/devtools/browser/57f375b6-035e-4a30-9d65-7bb775e6cb99
2022-05-15 18:55:27 [ DEBUG ] browser - browser.py:280 : 
_initialize_devtools | DevTools initialized
2022-05-15 18:55:30 [ DEBUG ] browser - browser.py:250 : init | Browser 
Window created
2022-05-15 18:55:30 [ ERROR ] Greeter - Greeter.py:98 : __init__ | 
lightdm_greeter_error: Unable to determine socket to daemon (1)
Remote debugging server started successfully. Try pointing a 
Chromium-based browser to http://127.0.0.1:12345

** (process:5621): WARNING **: 18:56:04.450: Error getting user list 
from org.freedesktop.Accounts: 
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name 
org.freedesktop.Accounts was not provided by any .service files

** (process:5621): CRITICAL **: 18:56:08.439: 
lightdm_greeter_ensure_shared_data_dir_sync: assertion 'priv->connected' 
failed
2022-05-15 18:56:08 [ DEBUG ] Greeter - Greeter.py:116 : __init__ | 
LightDM API connected
2022-05-15 18:56:10 [ DEBUG ] browser - browser.py:474 : load_theme | 
Theme loaded
2022-05-15 18:56:14 [ DEBUG ] browser - browser.py:171 : show | Window 
is ready
2022-05-15 18:56:14 [ DEBUG ] browser - browser.py:175 : run | Web 
Greeter started
2022-05-15 18:56:18 [ ERROR ] 
devtools://devtools/bundled/screencast/screencast.js 761: Uncaught (in 
promise) TypeError: Cannot read property 'url' of undefined
2022-05-15 18:56:29 [ DEBUG ] browser - browser.py:474 : load_theme | 
Theme loaded
[5621:5621:0515/185629.294460:ERROR:CONSOLE(761)] "Uncaught (in promise) 
TypeError: Cannot read property 'url' of undefined", source: 
devtools://devtools/bundled/screencast/screencast.js (761)
2022-05-15 18:56:32 [ ERROR ] 
devtools://devtools/bundled/screencast/screencast.js 761: Uncaught (in 
promise) TypeError: Cannot read property 'url' of undefined
2022-05-15 18:57:00 [ DEBUG ] browser - browser.py:474 : load_theme | 
Theme loaded
[5621:5621:0515/185700.893891:ERROR:CONSOLE(761)] "Uncaught (in promise) 
TypeError: Cannot read property 'url' of undefined", source: 
devtools://devtools/bundled/screencast/screencast.js (761)
Traceback (most recent call last):
   File "/usr/lib64/web-greeter/bridge/Greeter.py", line 259, in layouts
     return [layout_to_dict(layout) for layout in LightDM.get_layouts()]
   File "/usr/lib64/web-greeter/bridge/Greeter.py", line 259, in <listcomp>
     return [layout_to_dict(layout) for layout in LightDM.get_layouts()]
   File "/usr/lib64/web-greeter/bridge/__init__.py", line 47, in 
layout_to_dict
     "short_description": layout.get_short_description()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 8: 
unexpected end of data
/usr/bin/web-greeter: строка 2:  5621 Аварийный останов         python3 
/usr/lib64/web-greeter $@


Пока не разобрался, как должно работать ;-)
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : OpenPGP_0x350D53215B5F8F62.asc
Тип     : application/pgp-keys
Размер  : 644 байтов
Описание: OpenPGP public key
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20220515/796603d9/attachment-0002.bin>
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : OpenPGP_signature
Тип     : application/pgp-signature
Размер  : 236 байтов
Описание: OpenPGP digital signature
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20220515/796603d9/attachment-0003.bin>


Подробная информация о списке рассылки Devel