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 ms5.migadu.com with LMTPS id uAVICZiul2N+zAAAbAwnHQ (envelope-from ) for ; Mon, 12 Dec 2022 23:43:36 +0100 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 DgeZCJiul2NY8gAAG6o9tA (envelope-from ) for ; Mon, 12 Dec 2022 23:43:36 +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 D2A7B1DBF9 for ; Mon, 12 Dec 2022 23:43:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4rW0-0005u0-6E; Mon, 12 Dec 2022 17:43:16 -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 1p4rVy-0005rw-FC for help-guix@gnu.org; Mon, 12 Dec 2022 17:43:14 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4rVw-0008P3-2E for help-guix@gnu.org; Mon, 12 Dec 2022 17:43:14 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id D2E6640FBC; Mon, 12 Dec 2022 23:43:09 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z8IMNw0bcVaC; Mon, 12 Dec 2022 23:43:08 +0100 (CET) Content-Type: multipart/signed; boundary=2d79bcfe29dc035e7125e3b736e76607fab1c3a60dd36081683bdf7e4fac; micalg=pgp-sha512; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1670884988; bh=Z1mrpWdpsd6UYGSOAcaIjeHHSMbqHTGdwk4cyQgS6d4=; h=Date:From:To:Subject:References:In-Reply-To; b=Od4AVci5/hgzbQHmJyLGVhGSg7VIjOrmY/IWBHNlBLh8LFgyQkfk96zpig7JFuRSu j5el51oADDDl6q5FjtwKehQcXqC4i+v2cwfMG80ajOyoownO6IqkKst+hMcBNzyTfC DCu0JUirAH/eijwjw9/j6f8C+6dxzq4T0++zpZSYTWs7L6eAmG+WrNPK0ecuP/u3AM rFp0krjSp/0l5OFoNAM5lqQO0xRisVwMoaUZDTM/37WLxwBMO0uVF26Tf0GlEPFU68 sejR45RXzSL0ENJTQM8LTcNkxozpEZg95sn8tITbCVKnJxXwRnSdKufYzO+03PmTRi u9kbM7aCsNx/Q== Date: Mon, 12 Dec 2022 22:43:04 +0000 Message-Id: From: "(" To: "dabbede@gmail.com" , Subject: Re: Creating a package using two sources/origins References: In-Reply-To: Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MIME_HEADER_CTYPE_ONLY=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670885015; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=YfJAYxl79jJKU/eArAWm5s9uYQMer8iP+wwrVEC1css=; b=OtGuNr06UB+31WpWShr3jf+BNugEjEbqFoP9pPEkkiakSOGEJijS1WXpQjcU1uC1fZQLYF o57Hpfns5qrlMv+6HmPhF8jggyRMKM6Pv1cpfY1i9Xv9ciX939oGdC5fRBEdNOszn4Fynx Lxz+Rsbqcob8+Hdqoc5Z9DVK8yti9hrp8bCb6KS1MnsiGHQB2CAZNtMLzQ06DKGdM543M5 cdO0tiCGttDKYmNqPBpQRna7mUAJqXbjKBZyJXQLPwLBCjgBosUxNSXtZjmMUkh8vYSnJZ hLmFC2tvkUfhtPgNYcYYPSbc19x7OR4LZxcWxtWOA5fs2P3VzA0IWRsHiBHQWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=Od4AVci5; 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=pass (policy=reject) header.from=disroot.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670885015; a=rsa-sha256; cv=none; b=tGkdIkXcOmkMziEgSm44t/mxehd+yqlrPFUg2Z40/0Lvy8wHOFKhFmMblj+VNFq5XJymBV H0k69CerhNI87nU+szSz+rr6rTkMLRivqU3S6BpbQvI429PALTAjXnDueqr/BOTocNrZsA 9Wgyl0bCucFWtjMU8OznxjeWESA+TV5s83JsNJA6d7HZFU2CcxWmM5nXxqPy1PmF0bDmzr y1BaCh+nzcK4Cyq1fdy39C1c9aC3ujIsRUqLASTDxDfsfwjssRwZQQJooAqCrjbv+ijVSF JA64GTMK1dQetfxOKZzW7ycymR0RdAjlfEOY6ddv1sthbWKX3LkM5o0LG8wMEA== X-Migadu-Spam-Score: -9.19 X-Spam-Score: -9.19 X-Migadu-Queue-Id: D2A7B1DBF9 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=Od4AVci5; 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=pass (policy=reject) header.from=disroot.org X-TUID: ARYOHgVIs/Nb --2d79bcfe29dc035e7125e3b736e76607fab1c3a60dd36081683bdf7e4fac Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Heya, On Mon Dec 12, 2022 at 10:35 PM GMT, dabbede@gmail.com wrote: > By looking into linux-libre package definition, I see no problem in > downloading and patching the proper kernel source, however I don't > understand how I am supposed to specify in the package definition that > we need an additional source tree in the build process. > What would you suggest? Using snippets or additional build-phases? > Either way, I'm not skilled enough to download a compressed tar and > unpack it in a reachable directory at the build stage. I'm only aware > of the package's "origin" function to accomplish that. What is the > best way to do the same in a snippet or phase? What you need to do is combine ORIGIN with UNGEXP-NATIVE: #~(modify-phases %standard-phases (add-after 'unpack 'unpack-extra-sources (lambda _ (copy-recursively #+(origin ...) "extra-source-directory")))) When the build script implementing the phases is... built, this lambda will= look like this: (lambda _ (copy-recursively "/gnu/store/...-extra-sources" "extra-source-directory")) Roughly, the UNGEXP-NATIVE compiles the origin directory for the host architecture, then substitutes itself for a string containing the output pa= th of the compiled store item. -- ( --2d79bcfe29dc035e7125e3b736e76607fab1c3a60dd36081683bdf7e4fac Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEE6Vh10NblKE5doNlW7ImHg/nqI20FAmOXrngACgkQ7ImHg/nq I20DRwv/ZA5BZj+7bbvkDIudMLE2Fry53Q2MxOxqHFoz340nHa+0J6QT9BRftwij 8Z3HxtQVIQ/m5djvpOJ9l8FjU23DP9T5NosDXc9VGgzxOD7nbbfrSwrVdRPcnBFS I8gBgxQm2G60tlujeHxlqqLXAluGJ3bmYO8Ywy7GllNk8BtgOF4tuEXD9kC+cX6Y MjkhC6GBaskOS08DHeA2PE5cu45gb+Sm9Bgy3HuJYk67VAM6i/AJhOiCb+k+KB+9 Ha5+nyvcjhyPOu9k4cCvrZJ7I4uYFuWU90Q9luMjEn1Pblp1yCHbqCfJ44Jj+NOj ghYOaR5tqlrCIPwuZs6NP9zYugCVuNRga/3qtdhXgORSo8uxWHLwhgsDvHJzWDv4 Iz3TtRAnGaBOuSxHAgcrLamAoEZwBtRGeKqAC5KYVgBq2+V/HZ71dkBkF8M5mLfD 5qdBOa7CHSoFdI/jFHMpm+TAd+QLxjtTH7+fQhxKCElzNVh3Om2qcKIhK4T8cn/1 Sonyu3Nm =1z6S -----END PGP SIGNATURE----- --2d79bcfe29dc035e7125e3b736e76607fab1c3a60dd36081683bdf7e4fac--