GNU bug report logs - #70433
customize-kernel does not accept inferior package

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Ricardo Wurmus <rekado@HIDDEN>; dated Wed, 17 Apr 2024 08:22:03 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 70433 <at> debbugs.gnu.org:


Received: (at 70433) by debbugs.gnu.org; 17 Apr 2024 08:38:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 17 04:38:06 2024
Received: from localhost ([127.0.0.1]:45692 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rx0nu-0001S7-2x
	for submit <at> debbugs.gnu.org; Wed, 17 Apr 2024 04:38:06 -0400
Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21156)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1rx0nq-0001Qy-FB
 for 70433 <at> debbugs.gnu.org; Wed, 17 Apr 2024 04:38:04 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1713343066; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=kdllmHjXslXCWhpvFCJIzfLDUQptaLxx3pbGjyxAbHvlrxbMMn36hVEU9echna7eq3REq+heZ1Dd7rrHk530ISw0jEOGhcPGKxpMwBn0eQpxPU9jP8epaVlrpxKdPFIrNIXC/DMhmPJEFgZwsY84bqRXGNgdYHOykmaSkMC4dG8=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1713343066;
 h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc;
 bh=f1aWsGbttetEoKbit4FOYU0ViGXIqYwIL557vAxkMNY=; 
 b=KKiQ/uTrYMbRVIZazqSVDvA6ltrDSpYkPrbGCbTCZ7satR2tYKUjZcRWxss4BYMGWsYOLDZ7WhwUt8+jzogApSMtxX4PrArCjldXr2Fo68AC1WkGGvDi8PwpJi1RmV1vlZBPo+HJDPUr0nXVsT5LhWl62/yh3SFxOCvgCN0Wd0g=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1713343066; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=From:From:To:To:Subject:Subject:In-Reply-To:References:Date:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc;
 bh=f1aWsGbttetEoKbit4FOYU0ViGXIqYwIL557vAxkMNY=;
 b=L14UtnHJ9bGawiPbc/pBVrKI1L8ngTAFGkHLc6DFiSguyXE29ldhViIdLIx8138B
 cv1FBtm+ZqDC4kbJHkno0P6H7S+duCYihyBclZJ2BXWNWjW7pRy4648hrsGWKYTj1EV
 of1KN544Pw+ZZoznCD4OFFQzp8uTqusNr72sSIA4=
Received: by mx.zohomail.com with SMTPS id 17133430648661012.4755844707145;
 Wed, 17 Apr 2024 01:37:44 -0700 (PDT)
From: Ricardo Wurmus <rekado@HIDDEN>
To: 70433 <at> debbugs.gnu.org
Subject: Re: customize-kernel does not accept inferior package
In-Reply-To: <87o7a8763f.fsf@HIDDEN> (Ricardo Wurmus's message of "Wed,
 17 Apr 2024 10:20:52 +0200")
References: <87o7a8763f.fsf@HIDDEN>
User-Agent: mu4e 1.12.2; emacs 29.3
Date: Wed, 17 Apr 2024 10:37:42 +0200
Message-ID: <87il0g75bd.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 70433
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Ricardo Wurmus <rekado@HIDDEN> writes:

> Especially on underpowered aarch64 systems with custom kernels it may be
> desirable to avoid rebuilding the kernel on "guix deploy" or "guix
> system reconfigure".  It's possible to use an inferior to pin the kernel
> to a known good version.
>
> Unfortunately, this doesn't work when attempting to customize the kernel
> with "customize-kernel" as that procedure doesn't accept an inferior as
> an input package.

"customize-kernel" works by inheriting from a base package.  It then
augments the arguments.

Inheriting from an inferior package does not work, though.  Nor is there
a procedure to obtain the arguments of an inferior package.  The na=C3=AFve
approach of simply defining inferior-package-arguments fails:

--8<---------------cut here---------------start------------->8---
    (define (inferior-package-arguments package)
      "Return the arguments field of PACKAGE."
      (inferior-package-field package 'package-arguments))

    ...

    (inferior-package-arguments linux-libre-arm64-generic/fixed)
    ice-9/boot-9.scm:1685:16: In procedure raise-exception:
    socket:20:156: Unknown # object: "#<"
--8<---------------cut here---------------end--------------->8---


--=20
Ricardo




Information forwarded to bug-guix@HIDDEN:
bug#70433; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Apr 2024 08:21:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 17 04:21:31 2024
Received: from localhost ([127.0.0.1]:45662 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rx0Xq-0005Do-RN
	for submit <at> debbugs.gnu.org; Wed, 17 Apr 2024 04:21:31 -0400
Received: from lists.gnu.org ([2001:470:142::17]:58196)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1rx0Xm-0005DY-5g
 for submit <at> debbugs.gnu.org; Wed, 17 Apr 2024 04:21:28 -0400
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 <rekado@HIDDEN>)
 id 1rx0XT-0002ha-5A
 for bug-guix@HIDDEN; Wed, 17 Apr 2024 04:21:07 -0400
Received: from sender4-of-o51.zoho.com ([136.143.188.51])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rekado@HIDDEN>)
 id 1rx0XQ-0007tI-8L
 for bug-guix@HIDDEN; Wed, 17 Apr 2024 04:21:06 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1713342058; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=TIRqqNmsrrHzGotl/S1wUG24L3EnWTULkYTKUj2zsll75bQPCCaqkOErp6uMXSTwTQ7l452eMeXr/ukBFWNqVMO7S+Yysk8Ads7foaNDT+KJyTx7DHbjEaflvAAAhlo7s3j/En3Ak5tEjqH/VxeKuhdw99fKGYy1dygV3dMDiP0=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1713342058;
 h=Content-Type:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc;
 bh=2eNXjBa3aTrpWNcyvaYhSuVNb1Y5JP8keG3PtMQWLV0=; 
 b=J3Dqq8MUdCQFl/HKVdYLgfr2lrL4tro71XwY0xji2O69xlQlUsy/9qZNExE/SYIBisGz1LZ1HwTCfjKgEeJUZC4sUIm0KRN5HeL3aZjqcHHifIb9SnV3cjXpghN7ahY+N1N84lUbvdmyGnVFltFy0GSDi8x8LjBoaYYejiql9i8=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1713342058; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc;
 bh=2eNXjBa3aTrpWNcyvaYhSuVNb1Y5JP8keG3PtMQWLV0=;
 b=b3Ks/hfz+al1QiymH7Wt6QBu1AWqK2SZbG2SPrU6b6Rs+HVQrl35LaedMU/fSduK
 b8xm+5q653aebAXv+h9JG5loiOki00aRRALxgBbS7ZDssWLWxuD8iiwcVWWqa/7zU2H
 KgsxJEMR1SR/kIOhMYza3pr5w0nAOFI1YJBu3Ip4=
Received: by mx.zohomail.com with SMTPS id 1713342055428183.74900560096467;
 Wed, 17 Apr 2024 01:20:55 -0700 (PDT)
From: Ricardo Wurmus <rekado@HIDDEN>
To: bug-guix@HIDDEN
Subject: customize-kernel does not accept inferior package
User-Agent: mu4e 1.12.2; emacs 29.3
Date: Wed, 17 Apr 2024 10:20:52 +0200
Message-ID: <87o7a8763f.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-ZohoMailClient: External
Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@HIDDEN;
 helo=sender4-of-o51.zoho.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Especially on underpowered aarch64 systems with custom kernels it may be
desirable to avoid rebuilding the kernel on "guix deploy" or "guix
system reconfigure".  It's possible to use an inferior to pin the kernel
to a known good version.

Unfortunately, this doesn't work when attempting to customize the kernel
with "customize-kernel" as that procedure doesn't accept an inferior as
an input package.

-- 
Ricardo




Acknowledgement sent to Ricardo Wurmus <rekado@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#70433; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 17 Apr 2024 08:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.