From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aP8GGfGcYGdIgQEAe85BDQ:P1 (envelope-from ) for ; Mon, 16 Dec 2024 21:34:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id aP8GGfGcYGdIgQEAe85BDQ (envelope-from ) for ; Mon, 16 Dec 2024 22:34:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=aDGkQx1F; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=duiXYmD1; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict), DKIM not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734384881; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=SSl1WNyNfdSLXvZtofF2hihE83TuFPRqe5QfLJQBizo=; b=MEbuKb4qcOX4LDOWJzVwfzeG4nupkZyLeA/v54FpzjNLDNa1DEfMj6ydM5Qzm9R5ougGHU eKkQyCP+fnOKUoeBoqSdTEoc8OrFZiM5wfriUSoY1cFKa000IWQpyYb2xEvvlEDPu+vusa mFMD93yM0CJ+uTcpk0wClHy34Kne2HrGy3MMs73wSs4t6Ha8NigP65RGtSVzBWuSx8ol5h ilBoJPcV3+tr9Y2a1qZtTSC9YMiIlUbC+k7Dqq8AqaNOrHLBiTzmQFEgX5Zu5nILHXYES5 AIzTh6lcTTWKv7CAnmF1i6x6N4z41RXjm0q395uyCwtdc7aIlNXRX2pjzHKYDw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734384881; a=rsa-sha256; cv=none; b=hQv8DMyL8FypYGL+FvLcurkZAhDi5+Q7cAtUGHsdpuOVJDKBMSpXzL+u5SQhX4MUfMDKjT rD8leXQQdPETGvwCaG0GYoYFYp0GyUq3nE4bLoYDy/KaqjNEZnvlTjjAQTXF83RD0TIIrn Q0BCEV/NIZz2HdSXtCyoi6v9k2bcjXfMCKDcbtOOY72f5OCHx6Vd3x4jSLtHT2kwpKswHV 7RV3icFG4GcqWwNI/DcK+UJZFmZFYrZs0foL9erH2vo1sbJv3Y3WTmI68LerD7pO1i99L2 Gl07nCYKyY7ATjWx8Hb62F604ha/yWOjgy5pfwCPJ17iAsY2AGvepL0Cm/YlmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=aDGkQx1F; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=duiXYmD1; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict), DKIM not aligned (strict)" header.from=posteo.net (policy=none) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 14FCC7CECE for ; Mon, 16 Dec 2024 22:34:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNIj7-00065f-Jx; Mon, 16 Dec 2024 16:34:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNIj5-00062A-CN for bug-guix@gnu.org; Mon, 16 Dec 2024 16:34:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNIj5-0003uz-4T for bug-guix@gnu.org; Mon, 16 Dec 2024 16:34:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=SSl1WNyNfdSLXvZtofF2hihE83TuFPRqe5QfLJQBizo=; b=aDGkQx1FkqyhOIQbn4T9Uf9AO20Z7qtHXMaCsyzHbkUMuE2mIaUqsfiRKvi/n2zDLBzhuW5iAgS1GmOLJfWPfM0VdoQC9WkETt0t+af4uTbiJvPhbDyMZ45oX16y/HrEvAcLDjT2Os0rvS8wNrIZn5M52caj9QjCdqKBIFAreB+rRItk/TR7lgaS96ZqWj3iQdCI6jLxlTe0qWYBFze+mw2dVYKltuYIrESSsegcpqs5UFmMTHwNL8PVb0wUtTzS7DSfBG4gwYN+DxzgD0UpQiUCqeCmwsogKdEnwVZllDOgCXf2jUhZPZKyPU8qX6MjokbqiuAJntfqXd0iF3Ww+Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNIj4-0002wP-Mi; Mon, 16 Dec 2024 16:34:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#73903: [PATCH 1/2] gnu: Add shepherd-for-home. Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: sharlatanus@gmail.com, bug-guix@gnu.org Resent-Date: Mon, 16 Dec 2024 21:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73903 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 73903@debbugs.gnu.org Cc: Dariqq , Sharlatan Hellseher X-Debbugs-Original-Xcc: Sharlatan Hellseher Received: via spool by 73903-submit@debbugs.gnu.org id=B73903.173438482211241 (code B ref 73903); Mon, 16 Dec 2024 21:34:02 +0000 Received: (at 73903) by debbugs.gnu.org; 16 Dec 2024 21:33:42 +0000 Received: from localhost ([127.0.0.1]:56524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNIik-0002v9-9x for submit@debbugs.gnu.org; Mon, 16 Dec 2024 16:33:42 -0500 Received: from mout02.posteo.de ([185.67.36.66]:55363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNIii-0002uj-60 for 73903@debbugs.gnu.org; Mon, 16 Dec 2024 16:33:40 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 55571240101 for <73903@debbugs.gnu.org>; Mon, 16 Dec 2024 22:33:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1734384814; bh=aIxYr0NUaWuGoQHYGQJf6+pQJhnM6lRjX6TKvptCCsA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=duiXYmD1IdO7QYl2BNyb07h9qDF6w8CU0hxBsRFF6k3bG26fAS26R8ybA1X1C+GYX 9Q0u7zTvSoXalyXqe+FsLQo49rPk5oeXlKh4aavEciMTlTiXPABpyDaT6xU3vlaRBE YKWFUV6rV10lAEFqOjdLW9J/W4/GlTfgpvLiBK11Htmrh9ohlz5wvmJPwiJCXNo7rf 0ohnx1rZwXp3TiZL+xal9PAqEhC05QrUEmkQniD7TIM+wiG7IjvI83tYHjqHdidaKX T2zvk2O1mlYGrwjq4wb6O3/xk0IkX2DI2ev75k/fU3lCiLQ9iNVCMRXWnnNEI9TRJY TbwDJ5pqcmz4w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YBtV52dMXz9rxN; Mon, 16 Dec 2024 22:33:33 +0100 (CET) From: Dariqq Date: Mon, 16 Dec 2024 21:33:12 +0000 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.84 X-Spam-Score: -1.84 X-Migadu-Queue-Id: 14FCC7CECE X-Migadu-Scanner: mx11.migadu.com X-TUID: dZCtaJo98ExB * gnu/packages/admin.scm (shepherd-for-home): New variable. Change-Id: If66c7e7b688de239ca862326b51592b43ba22c25 --- gnu/packages/admin.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 77d02baa4e..08ac3d582a 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -428,6 +428,33 @@ (define-public shepherd-1.0 (define-public shepherd shepherd-0.10) +;; A variant of shepherd without sbin to not mask +;; halt and reboot on foreign distributions +(define-public shepherd-for-home + (let ((base shepherd-1.0)) + (hidden-package + (package/inherit base + (name "shepherd-for-home") + (source #f) + (build-system trivial-build-system) + (arguments + (list + #:modules '((guix build union) + (guix build utils)) + #:builder + #~(begin + (use-modules (guix build union) + (guix build utils)) + (union-build #$output + (list #$(this-package-input "shepherd")) + #:create-all-directories? #t) + (delete-file-recursively + (string-append #$output "/sbin")) + (delete-file-recursively + (string-append #$output "/share/man/man8"))))) + (native-inputs '()) + (inputs (list base)))))) + (define-public guile2.2-shepherd (package (inherit shepherd-0.10) -- 2.46.0