From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WHkSK8MHxWYhOwAA62LTzQ:P1 (envelope-from ) for ; Tue, 20 Aug 2024 21:16:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id WHkSK8MHxWYhOwAA62LTzQ (envelope-from ) for ; Tue, 20 Aug 2024 23:16:51 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm3 header.b=EE+XXzUw; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="J L+ak9V"; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-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=1724188611; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=g0IM2RZmk906aIP7+oDFv5/6MOVn7CKioZdvF5YLtc8=; b=WPqcApTqdB+8Y7DxMWfVG37c8jFWIKpLcDxCqDButOEhz1ipdKcKQ9wggbbIjwJ+hvYdLZ No+2mUmkq69hlFAHGXYDgaosgNUwUxW4+3WHe5aar9nEoF3YI8A5JduVP+a+G3HaKBqK10 o/cQbcVhhkzaKLBsFyx4y+UtB3yPZRNjwfoqWbmw4AHbmTcCaGIV1kv0hTmybfTXYO90oe NqWfjPFVepZbQoH6IGFKpkBdhHe9vcjsADfU6/QWa7+ST/0fSd6xNbdRwZL5Oe2WgDrip3 rlKTHoW+qlxpQY/PvgzNR8noYcXQkTbIix/CGCE4aEuyv58hWBw6G8K5RJnNpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm3 header.b=EE+XXzUw; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="J L+ak9V"; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724188611; a=rsa-sha256; cv=none; b=j9IKrqefyv2JbdCIAePhowUHk6weo8M8w8JxlsjM/7WoGtJUJSEr/U7jAoiGyg36qnaLYz UI854yHGUy3rGXB8t9YvVYVJL8GVmunVZnBDDEmcPwWlzB3stJ0Auw0L7YfIZrO+LD0ePM 1sJT9voErhNVZyKiRuumVIWmK+eMAx/jy+bu7b550ZMC9/1fgiF73nvVj8kk/GbCFZUvJh W8X3G2wivaBSo4MzLkxotvUrHachNfQmaPET3/uQp0fQXuufc17pK7AZRJ/QveKg//i3pN 0FektUknA8bD+Y16ny2p18km1IRuH6EbzvSMweyPf0y5NJ2Wsc5obq2CF1Gbfg== 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 9E89721241 for ; Tue, 20 Aug 2024 23:16:50 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgWD7-0001bY-U3; Tue, 20 Aug 2024 17:16:13 -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 ) id 1sgWD5-0001bD-SV for help-guix@gnu.org; Tue, 20 Aug 2024 17:16:12 -0400 Received: from fhigh4-smtp.messagingengine.com ([103.168.172.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sgWD1-0006mx-Gy for help-guix@gnu.org; Tue, 20 Aug 2024 17:16:11 -0400 Received: from phl-compute-05.internal (phl-compute-05.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 4FE5B1146D76; Tue, 20 Aug 2024 17:16:06 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Tue, 20 Aug 2024 17:16:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1724188566; x=1724274966; bh=g0IM2RZmk906aIP7+oDFv5/6MOVn7CKioZdvF5YLtc8=; b= EE+XXzUwAlQT7mIml5BndXYoRzl+s1w2MN29aeHAMrGypye2iojdmSCnWlsxobCe g0vhmoALtIPYqv5qsqBtnnRCA44kvOzr8gXlvRbCJLCBCvtP513z7B/7+6D1pCHF swFxShCYXs/AJ7Bfxb3Ub4POfGhLiqm96UsPc+Tm2FhMXPQc/AIl3R6NmPZIdQL4 D3dNI7DmSBK5EZ8DFTI3xGWIQAwUPtlixCiud40NYBXc1WZRQurgDmyUFgLDuRSc 3L6auYXSrd7mz5fa8Hi9o55EHYOZHOPJHdxnR8vcQhRwBglkvjpciN3Y6+MM5PGE 9gZXHT/s0Xrtx8mYYoRmFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724188566; x= 1724274966; bh=g0IM2RZmk906aIP7+oDFv5/6MOVn7CKioZdvF5YLtc8=; b=J L+ak9VdofZ10Apeu0iVKQAS/9SCX49Gc2sUmBeo+jeiI8l90b/eP+i/B5ueDOHxl 9GsosO1Ds2JeAb+hC6TqGvPUn1srg28yDN3IvFUHJzDS49B6z87r73P+RM91o613 EEGpKywMCfd/8l6cxD5OZAah6m8DA7XmjjKPFV5RsCkRPZiqUaonuB1OidLtP4O0 ckRgdOzQ1rMY4ZYS0u9YM+b1jcoZcbICLapyBAvH38xPkzU5+rG7MPGH9+Sr8nVT pOAX6DQHQpFlppohXv7fmvVK83qa5pxsclP/rnqeO5AGiK9KXTnEcq4FUxeQxzAf GBryHJziUjfYhgxGEMTlw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudduiedgudehjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhf fvvefuffgjkfggtgfgsehtqhertddtreejnecuhfhrohhmpefkrghnucfguhhrvgcuoehi rghnsehrvghtrhhoshhpvggtrdhtvheqnecuggftrfgrthhtvghrnhephfelvedtieefff fggeeivdeukedutedtveejfffhleeileefheeggfdugfeiuefhnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihgrnhesrhgvthhrohhsphgvtg drthhvpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthho pehhvghlphdqghhuihigsehgnhhurdhorhhgpdhrtghpthhtohepuggvvhesihgtvghpih gtrdguvg X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 20 Aug 2024 17:16:04 -0400 (EDT) References: <87sev0sz4k.fsf@icepic.de> <87ikvw3y2u.fsf@meson> <87ed6jy2pj.fsf@icepic.de> User-agent: mu4e 1.8.13; emacs 28.2 From: Ian Eure To: Christoph Buck Cc: help-guix@gnu.org Subject: Re: Apply a patch to a given package definition Date: Tue, 20 Aug 2024 14:15:18 -0700 In-reply-to: <87ed6jy2pj.fsf@icepic.de> Message-ID: <87a5h6520b.fsf@meson> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=103.168.172.155; envelope-from=ian@retrospec.tv; helo=fhigh4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -8.15 X-Migadu-Queue-Id: 9E89721241 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.15 X-TUID: HzxZ9TOEauKW Hi Cristoph, Christoph Buck writes: > Hi Ian! > >> You can have your source inherit from the original package=E2=80=99s,=20 >> but with >> modifications -- just like the package itself. This might not=20 >> be >> exaxtly right, but should give you the right idea: >> >> (define-public u-boot-new-cool-board-arm >> (package >> (inherit ub) >> (version "2024.01") >> (source >> (origin >> (inherit (package-source ub)) >> (patches (append (origin-patches (package-source ub)) >> '("0001-Add-board-description-for-new-cool-bo= ard.patch"))))))) >> >> Any fields you don=E2=80=99t want to modify will be inherited, so you=20 >> may be >> able to eliminate the version field as well. > > Oh i didn't know i can use inherit for all all (?) record=20 > types. On > hindsight it is pretty obvious. Thanks! Your solution works=20 > perfect! > Yes, it=E2=80=99s very handy. I=E2=80=99m glad my suggestion was helpful. > > By chance, do you know if a transformation would also work and=20 > if so, > how? > I=E2=80=99ve never messed with package transformations, so I don=E2=80=99t = know. Thanks, =E2=80=94 Ian