From: Leonid Krivoshein <klark.devel@gmail.com>
To: devel@lists.altlinux.org
Subject: Re: [devel] dist-upgrade: чей скрипт?
Date: Mon, 11 Mar 2024 02:03:49 +0300
Message-ID: <b1af2163-d270-4837-bc4a-c86cbf26ac6c@gmail.com> (raw)
In-Reply-To: <202403102348.21734.asy@altlinux.org>
Добрый день!
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.
prev parent reply other threads:[~2024-03-10 23:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-10 19:48 Sergey Y. Afonin
2024-03-10 23:03 ` Leonid Krivoshein [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b1af2163-d270-4837-bc4a-c86cbf26ac6c@gmail.com \
--to=klark.devel@gmail.com \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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