* [devel] dist-upgrade: чей скрипт?
@ 2024-03-10 19:48 Sergey Y. Afonin
2024-03-10 23:03 ` Leonid Krivoshein
0 siblings, 1 reply; 2+ messages in thread
From: Sergey Y. Afonin @ 2024-03-10 19:48 UTC (permalink / raw)
To: devel
Приветствую.
А как вот такие штуки правильно дебажить и куда баги вешать?
156: NetworkManager-l2tp-1.20.10-alt0.p1########################################################################### [100%]
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
Done.
Как догадаться, чей это скрипт? Или только глазами в каждый пакет
смотреть?
--
С уважением, Сергей Афонин
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [devel] dist-upgrade: чей скрипт?
2024-03-10 19:48 [devel] dist-upgrade: чей скрипт? Sergey Y. Afonin
@ 2024-03-10 23:03 ` Leonid Krivoshein
0 siblings, 0 replies; 2+ messages in thread
From: Leonid Krivoshein @ 2024-03-10 23:03 UTC (permalink / raw)
To: devel
Добрый день!
On 3/10/24 22:48, Sergey Y. Afonin wrote:
> Приветствую.
>
> А как вот такие штуки правильно дебажить и куда баги вешать?
>
> 156: NetworkManager-l2tp-1.20.10-alt0.p1########################################################################### [100%]
> Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
> Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
> Done.
Видимо systemctl --user запущен под root'ом, а не под обычным
пользователем. Он м.б. скрыт макросом, но сходу с --user я макросов не
нашёл. В отличии от консоли, где смешиваются stdout и stderr, а также
сообщения валятся из фона в рассинхроне, в журнале такие ошибки д.б.
упорядочены, следовательно достаточно его изучить, увеличив шумливость
вывода.
> Как догадаться, чей это скрипт? Или только глазами в каждый пакет
> смотреть?
$ rpm --querytags покажет доступные таги, можно грепать интересующее,
например, как-то так:
$ rpm -qa --qf '>>>
%{NAME}-%{EVR}\n%{PREIN}\n%{PREUN}\n%{POSTIN}\n%{POSTUN}\n%{FILETRIGGERSCRIPTS}\n%{TRANSFILETRIGGERSCRIPTS}\n%{TRIGGERSCRIPTS}\n\n'
|grep -v '(none)' |grep -B10 -- '--user'
(только по всем установленным пакетам). А по всему Сизифу можно git grep
в spec.git:
https://github.com/search?q=repo%3Aaltlinux%2Fspecs%20systemctl%20--user%20enable&type=code
--
WBR, Leonid Krivoshein.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-10 23:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-10 19:48 [devel] dist-upgrade: чей скрипт? Sergey Y. Afonin
2024-03-10 23:03 ` Leonid Krivoshein
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git