From patchwork Mon Jun 15 07:20:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Norbert Lange X-Patchwork-Id: 1309265 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Y0EJD7pR; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49ljSM2L83z9sRf for ; Mon, 15 Jun 2020 17:21:39 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CD2C68705D; Mon, 15 Jun 2020 07:21:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vc4-lKi5JFUA; Mon, 15 Jun 2020 07:21:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 22CCD87074; Mon, 15 Jun 2020 07:21:36 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 482C71BF4E7 for ; Mon, 15 Jun 2020 07:21:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 452C98705D for ; Mon, 15 Jun 2020 07:21:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YgbtQFMLIUaK for ; Mon, 15 Jun 2020 07:21:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id A539786F9A for ; Mon, 15 Jun 2020 07:21:31 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id p5so15888711wrw.9 for ; Mon, 15 Jun 2020 00:21:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Pr5nfaGQCasi4jZAffcOExxVBPnRCoGObBvCVSJBc3k=; b=Y0EJD7pRyu/ys+Gzj3ON1axuX4fjNpQ/+Nd3q3XxNi6zqq7gdhhC2buXAmruKvfpfR 3ATOK0/nHhX5YeecyybtkJiKaywMxUgsovA0aPgKgXEFU8T9LlPnkDckgG3IlNoDs9kF SQSafMC9ojSM8lEmKuL3FZVza4Kse9FHww6d1wWADf4BYWkbm8lWkT3TsjU1lRm6x7lx 5Mz7xFrwTJReAazNvHBbjLqhTfflBEartRN+WXkefd6OwEWAqXbAX/F4EERiCTbGjq/P lP1IOFkbMxy39TgbV7uc4uscYM41Iyi/HVq+A6CA1lg60yt1lSc3sPuu3R36Kg38c0zi ooTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Pr5nfaGQCasi4jZAffcOExxVBPnRCoGObBvCVSJBc3k=; b=IFcy4t3dXoO4Shf5xe/3AW9L2K8zYvzuL/0fuYHqzbqIfnZHrKJkH+DfRRPqoqum1d NavKBpHaU7MwJgBjpIr3uJj609fbGRCX3amIkT25aU2ucrQYdSBG/BmPiNR5PK+YX0K7 8eBMiMN7oxoHjk7SNRZ/feoMY0hlhtWvy6njtRi2hFWJM1xYF0GV7FZGbS/yP+2fyIz0 JzV8CkcwGBmUHljR9yx1MtJAfnNL8YRhG43R8y2Y3TLHS+FLj0GHdjBLqk6UFT71Jb72 U7b6ZGeByKnn5tSBfwiB1Wc44TmFsfecYAwMxc/mumJgaZjByEXkvc8A3gn14Vip0jHZ bDiQ== X-Gm-Message-State: AOAM5308I+hnBxNSBWdfQIT9UzxvAueRfJ+5k6wF8fImd/mWT+lp2hA5 bVFDhjcy0FIZCImgs24FONtavEW12PObkQ== X-Google-Smtp-Source: ABdhPJxWdk5GI7rmRbUwO0Eog2F3O9uB12UkYdqpeq9JPLvpihvX/k2FFkewFXaKOuPzESX0QDGycQ== X-Received: by 2002:adf:e744:: with SMTP id c4mr29170317wrn.71.1592205689790; Mon, 15 Jun 2020 00:21:29 -0700 (PDT) Received: from localhost.localdomain (84-114-45-16.cable.dynamic.surfer.at. [84.114.45.16]) by smtp.gmail.com with ESMTPSA id q4sm5605291wmc.1.2020.06.15.00.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 00:21:29 -0700 (PDT) From: Norbert Lange To: buildroot@buildroot.org Date: Mon, 15 Jun 2020 09:20:53 +0200 Message-Id: <20200615072055.2083-14-nolange79@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200615072055.2083-1-nolange79@gmail.com> References: <20200615072055.2083-1-nolange79@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 13/14] systemd: remove hard dependency on dbus X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Norbert Lange , jeremy.rosen@smile.fr, "Yann E. MORIN" , Adam Duskett , Maxime Hadjinlian Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" A substantial functionality of systemd does not depend on dbus anymore. It is certainly possible to used most of its core system managment functionality inclusive logging. In other words, most commands from systemctl and loginctl do work, aslong as used from root. These features will need dbus (incomplete list): - Access to systemd from non-root - Loginctl - Timedatectl Signed-off-by: Norbert Lange --- package/systemd/Config.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/systemd/Config.in b/package/systemd/Config.in index b09bd36ab6..a7f41d2a38 100644 --- a/package/systemd/Config.in +++ b/package/systemd/Config.in @@ -25,7 +25,6 @@ menuconfig BR2_PACKAGE_SYSTEMD depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 depends on BR2_HOST_GCC_AT_LEAST_5 # host-systemd select BR2_PACKAGE_HAS_UDEV - select BR2_PACKAGE_DBUS # runtime dependency only select BR2_PACKAGE_LIBCAP select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBBLKID @@ -90,6 +89,10 @@ if BR2_PACKAGE_SYSTEMD config BR2_PACKAGE_PROVIDES_UDEV default "systemd" +comment "systemd recommends enabling a dbus daemon" + depends on !BR2_PACKAGE_DBUS + depends on !BR2_PACKAGE_DBUS_BROKER + config BR2_PACKAGE_SYSTEMD_BOOT bool "systemd-boot" depends on BR2_i386 || BR2_x86_64