From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MOX/A53E+GPdlAAAbAwnHQ (envelope-from ) for ; Fri, 24 Feb 2023 15:07:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wKkFBJ3E+GOg3QAA9RJhRA (envelope-from ) for ; Fri, 24 Feb 2023 15:07:25 +0100 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 BB7DC37542 for ; Fri, 24 Feb 2023 15:07:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVYj2-0000Xe-9K; Fri, 24 Feb 2023 09:07:04 -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 1pVYj1-0000XP-1U for guix-patches@gnu.org; Fri, 24 Feb 2023 09:07:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVYj0-0000tF-P2 for guix-patches@gnu.org; Fri, 24 Feb 2023 09:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVYj0-000708-JQ for guix-patches@gnu.org; Fri, 24 Feb 2023 09:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61750] [PATCH 1/2] gnu: shepherd: Build Shepherd from git. Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Feb 2023 14:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61750 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61750@debbugs.gnu.org Cc: Attila Lendvai X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167724759326874 (code B ref -1); Fri, 24 Feb 2023 14:07:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Feb 2023 14:06:33 +0000 Received: from localhost ([127.0.0.1]:36379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVYiX-0006zO-5H for submit@debbugs.gnu.org; Fri, 24 Feb 2023 09:06:33 -0500 Received: from lists.gnu.org ([209.51.188.17]:45134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVYiV-0006zG-Lu for submit@debbugs.gnu.org; Fri, 24 Feb 2023 09:06:32 -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 1pVYiU-0000SV-HC for guix-patches@gnu.org; Fri, 24 Feb 2023 09:06:30 -0500 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVYiS-0000ix-BI for guix-patches@gnu.org; Fri, 24 Feb 2023 09:06:30 -0500 Received: by mail-ed1-x52c.google.com with SMTP id cq23so54927079edb.1 for ; Fri, 24 Feb 2023 06:06:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=lNv4PeQUBX2s86eTmG2NspXuE6EL0JLweCbfhhOpeGM=; b=XSI9qKEKE84GE5dDCFKWxbNtWAs0dFvxBlhDXy+P12mzx3DaHvVV2WwEFesEQIN8n7 kUhFtT4og9JvgQjqcIJZy69oR6IXghneXGg30uzwlCfKa4DW83toNlKQ/2GdvXj8Kx14 hUBgINKGR4/1QCXjXCUBceC5xYf9TSHyNVO3fUs7YE5oAb8VCjouJ+ZjheALRYc5CMkA TPMqPnpEW9KTsND1Y9wQD9BtXSjdrmT82npz427Y3OsQxQIzTjqNJdr1KY58fHEO7NEm btPwC/Bmhcdf3tC5gK/JgpZngpsCyJylPLAw3hTO/rffZAu195NkGuTt5iTJrqVgZtUd qTmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lNv4PeQUBX2s86eTmG2NspXuE6EL0JLweCbfhhOpeGM=; b=Au/gE87WOGWIUWfBNXvT0YlbsvYmWlXUEOokhDfBuLgtAFYipflctU+2P4cJldimVR S9urCwiB6fvbfO32J0uXqwRC9YNHyHUjB+I/xYamdh8jUSUy48NshugIwYlDbFNx45Ng GeMVTxmALg6+8mHP3HvtrXKXWC+FvdmEzRRbLuVpa+jQ+MeRq05KFGiCrzYzFFEjLYBs REwahJD7sWwMh1wPx0r41FzeBFyVHfW5AOKhAzKCyB2VaGJxHxYEo8LsMkh2KSLXBuaD ScUIZcYr8++GDwIwHZ2lzS5mMVo/2kFge6/RmNwQuNGnbotU0PCeXowqPYW0e9ivsziR 7IXg== X-Gm-Message-State: AO0yUKUMhzi7y+FYP3JpoqtG2RXBcTuxFLluhKj3WAZbfBIVO68J+KJg xypEZLn0LVDvovR/UWfe6xkXSUWT4Fs= X-Google-Smtp-Source: AK7set+UyFBEAAtYNs2SMpKBUZqs5UywK8EIaYwfOsqwZLcz4gNGSmzXZC7qQHkjlvb5hQN5V4XbjQ== X-Received: by 2002:a17:907:60d4:b0:8e1:cc38:6e78 with SMTP id hv20-20020a17090760d400b008e1cc386e78mr16765249ejc.39.1677247585658; Fri, 24 Feb 2023 06:06:25 -0800 (PST) Received: from lelap.lan (catv-80-98-247-145.catv.fixed.vodafone.hu. [80.98.247.145]) by smtp.gmail.com with ESMTPSA id de30-20020a1709069bde00b008d57e796dcbsm6166398ejc.25.2023.02.24.06.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 06:06:25 -0800 (PST) From: Attila Lendvai Date: Fri, 24 Feb 2023 15:02:43 +0100 Message-Id: <20230224140243.15315-1-attila@lendvai.name> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=attila.lendvai@gmail.com; helo=mail-ed1-x52c.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677247644; a=rsa-sha256; cv=none; b=kK781svADifTLpGKAOhNo+ZeysErCUwDPaAuB1w2gj4uSEM2rObCG1msVoC0GkhrTtZoVo Q30DENRkCu2teK10MzOp6J1r0Qy7n1JA3Eqpy/W4ZB4lC7KrvVbPO8hzyjt7luONXCDEOP 7rl5eDI2cZmQ8OpzebrN6LgKKqiZGy5j/K2aYhoGaa7cHxWKdr/EJ/graUz+SFsYG9pB+2 6zcOj913ND7wT4d7lzgoRYcag8EFZ5ni2TQFhF4yoO07xUSI907avWL1ATtOuTFNxMQIdS jm09YeOAf0hPQSgLnNtrAspj8CU1HT/Ytvys02KcyTHrHby5XH0NoPHaE4zn/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=XSI9qKEK; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677247644; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=lNv4PeQUBX2s86eTmG2NspXuE6EL0JLweCbfhhOpeGM=; b=n7SpmYGLKADTAYRIb755t+KKS23hc8CVGKgh09VYAQhBDcnC+iPVhCH23LHhVhbdoOniEG NXxPq9E0/dQVYg64bPqukGdfIuwSyLw/cUJ2AdLjWvjP2nqQdJr3tMqm73NSRUyddxdjNQ 1CcVKerwia4U3CahUsb1zw0VwVOYcMUosr4ZQddkiB0/EX2TJ03VCZ+ie/NXwj9AB+sBr1 ANAT4Amtt1kGAyofH0OV3OkdVksLu64EAGh7EKFAi2KIlAyF5X5gSauCOVZ37Ogoe+s8Yz 2S0wYnZ4G+Cdmop1Bo10gqp8D6GwHmQpx5EQWXku8UH2mI5gkIN8EE3QndiYfw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Queue-Id: BB7DC37542 X-Migadu-Spam-Score: -0.88 X-Spam-Score: -0.88 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=XSI9qKEK; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: IFZsMMgd+2iR The rationale for this is that it makes it simpler to start VM's with a Shepherd that is compiled from a local checkout. This facilitates hacking on Shepherd itself, and testing it in the Guix init environment, by speeding up the edit-compile-test cycle. * gnu/packages/admin.scm (shepherd-0.9): Source points to the git repo; adjust native-inputs accordingly. Also delete the strip build phase. --- the first commit works, except when cross-compiling: help2man wants to run the foreign binary, and fails. the second commit is a WIP attempt to get the compiled man pages from the native package when cross compiling. it's not ready, but i got stuck at needing to gunzip the man pages, and where to put them to convince the makefile to not execute help2man, etc. my suggestion is to simply get rid of the not-very-useful auto generated man page to fix cross-compilation. if that's not desirable, then the second commit needs to be polished, or implemented some other way. gnu/packages/admin.scm | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index d4cc8ca6ca..91f98bf48e 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -335,12 +335,13 @@ (define-public shepherd-0.9 (inherit shepherd) (version "0.9.3") (source (origin - (method url-fetch) - (uri (string-append "mirror://gnu/shepherd/shepherd-" - version ".tar.gz")) + (method git-fetch) + (uri (git-reference + (url "https://git.savannah.gnu.org/git/shepherd.git/") + (commit (string-append "v" version)))) + (file-name (git-file-name "shepherd" version)) (sha256 - (base32 - "0qy2yq13xhf05an5ilz7grighdxicx56211yaarqq5qigiiybc32")))) + (base32 "1pvdpx2mfki8wvhcac54p8fn5idqszicww60ikswszz2cv5d0s11")))) (arguments (list #:configure-flags #~'("--localstatedir=/var") #:make-flags #~'("GUILE_AUTO_COMPILE=0") @@ -360,12 +361,17 @@ (define-public shepherd-0.9 (this-package-input "guile-fibers") "/lib/guile/3.0/site-ccache")))))) #~%standard-phases))) - - ;; Note: Use 'guile-3.0-latest' to address the continuation-related memory - ;; leak reported at . - (native-inputs (list pkg-config guile-3.0-latest - guile-fibers-1.1)) ;for cross-compilation - (inputs (list guile-3.0-latest guile-fibers-1.1)))) + (native-inputs + (list autoconf + automake + gettext-minimal + guile-3.0 + guile-fibers-1.1 ; for cross-compilation + help2man + pkg-config + texinfo)) + (inputs (list guile-3.0 + guile-fibers-1.1)))) (define-public guile2.2-shepherd (package -- 2.38.1