From patchwork Tue Mar 28 17:38:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 6738 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4PmH3p0LNcz3xCl for ; Tue, 28 Mar 2023 17:39:02 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4PmH3m4tY9z26R; Tue, 28 Mar 2023 17:39:00 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4PmH3m3vbPz30FC; Tue, 28 Mar 2023 17:39:00 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4PmH3l33x2z2xbt for ; Tue, 28 Mar 2023 17:38:59 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4PmH3k5BlzzKj; Tue, 28 Mar 2023 17:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1680025138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=r31gbfPg71gVlCYm17B/EFJv3Jb0fIZAG+FpkO/Z7/E=; b=j7bIm81/1FECHXbX7paCnNMUdD2JZMS3SGFFTzkKJ9rHMcW2arbeiWq+i3q9iuxEIvSrwY T7GkRmlFNAPtG3Gu9Xmrav+vHYJFQIJLRMTcJpM9TDh2s9cIkKbk9lq0VhW28wkzThtcCA sObl7Lpk8aL+uHZtJiGPBt8R1a5yiWsBE5dRq6tWGc4bXWOXoxt8QEiifPXNGR9DPOrkfh CvmwAPQYHt0/r/jIYsEbYytb9AjuNFOtp1e15uaJzrR4vEVCuTRnd4wc8c5pHKbAVpMnZt mQNa3P3DrUGJQhF9vFVZmj7AYXyktZnlNlNLGtrt84Lx3gAXTOYSBW+H1gSOZQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1680025138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=r31gbfPg71gVlCYm17B/EFJv3Jb0fIZAG+FpkO/Z7/E=; b=vdV701G33ImrDnSVrKls6LYeazh+u7cgwhmwzPHuhSAAAVB1zH+Nw7zdX8Yif01Sa8BekI iMMycxTg5EaToWDA== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] systemd: Move some basic tools into own package Date: Tue, 28 Mar 2023 19:38:52 +0200 Message-Id: <20230328173852.155595-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" The systemd-sysusers and systemd-tmpfiles tools are used by various services and the build system in order to install / build packages. Moving this tools into an own package allows us to early access them without requiremet to install the whole systemd package. Anyway the systemd package requires those tools to proper get installed and handle their own sysusers files. Signed-off-by: Stefan Schantl --- systemd/systemd.nm | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/systemd/systemd.nm b/systemd/systemd.nm index a01063828..a898c6826 100644 --- a/systemd/systemd.nm +++ b/systemd/systemd.nm @@ -5,7 +5,7 @@ name = systemd version = 253 -release = 2 +release = 3 maintainer = Stefan Schantl groups = System/Base @@ -227,6 +227,7 @@ packages python3-cairo python3-dbus python3-gobject3 + %{name}-basetools = %{thisver} %{name}-libs = %{thisver} util-linux >= 2.19 end @@ -315,6 +316,38 @@ packages end end + package %{name}-basetools + summary = Basetools from the systemd package, like sysuses and tmpfiles. + description + This package contains some very basic tools from systemd like + systemd-sysusers and systemd-tmpfiles. + + They mostly are required in a very early stage and shipping them + in an own package allows us to handle this properly. + end + + provides + systemd-sysusers = %{thisver} + systemd-tmpfiles = %{thisver} + end + + requires + %{name}-libs = %{thisver} + end + + files + %{bindir}/%{name}-sysusers + %{bindir}/%{name}-tmpfiles + %{mandir}/man1/%{name}-sysusers* + %{mandir}/man1/%{name}-tmpfiles* + + # Only ship the sysusers.d folder without + # any config files. + /usr/lib/sysusers.d + !/usr/lib/sysusers.d/*.conf + end + end + package %{name}-libs template LIBS @@ -339,6 +372,9 @@ packages systemd < %{thisver} end + files += \ + %{libdir}/%{name} + # Add myhostname to the hosts line of /etc/nsswitch.conf script postin if [ -f "/etc/nsswitch.conf" ]; then