From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6MoiG4KZm2RMIQAASxT56A (envelope-from ) for ; Wed, 28 Jun 2023 04:22:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eBgtGoKZm2SV1AAAG6o9tA (envelope-from ) for ; Wed, 28 Jun 2023 04:22:58 +0200 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 1B0F91EA8D for ; Wed, 28 Jun 2023 04:22:58 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687918978; a=rsa-sha256; cv=none; b=YhN1oT0HJz+jSfV3TVVpPQVWuES4DlX7cS/iT4XBWnqKJEmUNtmAxNc3mUxPVmOJwFbqf3 RAsX8id9xpOXeoY0B6dF5xHWSJZuxH1bPENNBrPeMcP6S6KoH60cZp2PZhY5JkcqLLqzQj r3WLOkez6yduwV8i/qPiqGVcQII1h33A6cMhV1ytQ34HGSyN2PPUuQWribw3tu0w7HTQG1 IeRrAINAeKAufISU72rFUN25aghThlS2nTQcJjWiQ30U0a5FiUqu7bS43yH3Ix6A4/329M JxMJ6ELWrVZRwrI3ybyBuupb0KlarFzIM6nQmogvNW6cD3blv3ltl4ePomqi6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687918978; 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; bh=3X7cVdzioL/Ol8JplohgNcA0uItJI9dolUFAjjvzCzA=; b=AN0vqdIWK8lZOZjI4nmfwg+rH/uLCegsBMlkLSPIpt9xn8VAx1DxBrFQ1hd/T9HpX3QKNm CndG2ZeQmQfb0PD+IBGlq4iJ4Vb+1mVcJIKsH3bVLrusN0ivaqOh/BtYv4pkB9/54SsAJt Qgb5YDrV1wtv+pHHKJ/4ysBtoPDOPSLULRkR2OkNSjqMvqbwbVp5HSt3jxScSKK5R7a4a4 aqPhXpkHgFy6m+5/WLifyvUjVd/Yjwg9GAgOO/EGT0kNXEQHBmVF5xctzZChCFe0tuCUgt tmvE37B8OuBrt/iD7aQQg3DFCt7L8BqbXcnGq5KRrwzcXTBC+HENXIiYU17kwQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEKou-0000qS-KE; Tue, 27 Jun 2023 22:22:12 -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 1qEKot-0000q4-Fr for help-guix@gnu.org; Tue, 27 Jun 2023 22:22:11 -0400 Received: from smtpmciv4.myservices.hosting ([185.26.107.240]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEKor-0003mG-OT for help-guix@gnu.org; Tue, 27 Jun 2023 22:22:11 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv4.myservices.hosting (Postfix) with ESMTP id AC93820787; Wed, 28 Jun 2023 04:21:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id D6A058009A; Wed, 28 Jun 2023 04:13:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qdDlpimbZ47e; Wed, 28 Jun 2023 04:13:13 +0200 (CEST) Received: from [192.168.1.116] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 4517D80099; Wed, 28 Jun 2023 04:13:13 +0200 (CEST) Message-ID: <4972a83c-531c-1555-4c64-9b01b16c3f74@makinata.eu> Date: Wed, 28 Jun 2023 03:13:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Inherit from a package Content-Language: en-US To: Reza Housseini References: Cc: help-guix@gnu.org From: Bruno Victal In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.26.107.240; envelope-from=mirai@makinata.eu; helo=smtpmciv4.myservices.hosting X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.103, SPF_HELO_NONE=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-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.55 X-Migadu-Queue-Id: 1B0F91EA8D X-Spam-Score: -1.55 X-TUID: bvcnxMBfDE0K Hi Reza, On 2023-06-27 12:22, Reza Housseini wrote: > Hello Guixers > > I have a package with modified phases and use of the version identifier (#$version) in various steps of the build process. Unfortunately when I inherit from this package and change the source and version, the version used in the new package is the same as from the inherited package. Is this intended behavior or do I have to copy somehow the modified phases over to the inherited package? Indeed, this is a limitation of using (inherit) in packages. You don't necessarily need to duplicate the phases you want to change, personally I employed a procedure that returns a package object instead and inherit from it, as can be seen at . Perhaps you can draw some inspiration from that patch-series? -- Furthermore, I consider that nonfree software must be eradicated. Cheers, Bruno.