From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QLtEGi054GIXVwAAbAwnHQ (envelope-from ) for ; Tue, 26 Jul 2022 20:57:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wAVJGS054GJloAAAG6o9tA (envelope-from ) for ; Tue, 26 Jul 2022 20:57:49 +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 149D82B10E for ; Tue, 26 Jul 2022 20:57:49 +0200 (CEST) Received: from localhost ([::1]:41810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGPka-0002Om-72 for larch@yhetil.org; Tue, 26 Jul 2022 14:57:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGPit-0002NX-5P for guix-patches@gnu.org; Tue, 26 Jul 2022 14:56:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36437) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGPis-00074C-RO for guix-patches@gnu.org; Tue, 26 Jul 2022 14:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGPis-0003bX-JE for guix-patches@gnu.org; Tue, 26 Jul 2022 14:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56766] [PATCH] gnu: exiv2: Fix test failure on ppc64-le Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 Jul 2022 18:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56766 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Marcel van der Boom Cc: 56766@debbugs.gnu.org Received: via spool by 56766-submit@debbugs.gnu.org id=B56766.165886171913784 (code B ref 56766); Tue, 26 Jul 2022 18:56:02 +0000 Received: (at 56766) by debbugs.gnu.org; 26 Jul 2022 18:55:19 +0000 Received: from localhost ([127.0.0.1]:54419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGPiA-0003aG-Vi for submit@debbugs.gnu.org; Tue, 26 Jul 2022 14:55:19 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:59688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGPi7-0003a2-M8 for 56766@debbugs.gnu.org; Tue, 26 Jul 2022 14:55:17 -0400 Received: from [IPV6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16] ([IPv6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16]) by laurent.telenet-ops.be with bizsmtp id zuvE2700120ykKC01uvE5M; Tue, 26 Jul 2022 20:55:14 +0200 Message-ID: <73c26ae4-d0f3-1dfb-99f0-1234b3020256@telenet.be> Date: Tue, 26 Jul 2022 20:55:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US References: <2b700a6dc4b5b7dd09465c0ef7c04f73b055d463.1658777229.git.marcel@hsdev.com> <9487ab96-82a7-8260-43bb-db3ac6b73688@telenet.be> <877d3zemrq.fsf@van-der-boom.nl> From: Maxime Devos In-Reply-To: <877d3zemrq.fsf@van-der-boom.nl> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------VRG65B9GGJFar09rOeOpOcNZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1658861714; bh=1VolS3nZ3jbujuuIgOe6nkqhDhaAhofNoTVju7lDEtM=; h=Date:To:Cc:References:From:Subject:In-Reply-To; b=aH9KVUz+awjqqu6DI+G5Nw5bHriMUgHq8rbACxBmKGiBHotpo7RuBihqGAnkspb9V uKkpvyrFLnsCZQyCL5wrdTc2FQr62z7h8RlzqqO8ZPhWRkdyWgNfo1eZF+20ZvsrAa LM1Ldnp9AMaSarXFa63o2qfuRxpp2wLBXvhV5KjvIhYvCWy46Kwycu9/NouYlxxXet vZrWivWTK6xQTVlqHNLCVvuq/6ZMlSaZUPZCe6DCuJ5V8F6YFChtaBWzO+pf8JhI4Q /cYCXGipwTzpxLt42jNtYZEDFRnSBJ0pRM1fzxIbq6SwME5JPoWuf8EBN0hlbtYvZO tQHJKDlPG5BcQ== 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658861869; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=XD4iusf6VCOjwepUkrkr04A9NXp3WrQ2aEDUWzLedeU=; b=K0+bD1b7j8a3c1V6N2mgtEJs5SOjZMBzlDGTeomD8W36ybhpd8EkqNxQuX81+Nc46dNVO/ tknXM34tzlp2PjxH90pRoayq7xYYPnxsSmWvoLq7OsixC4CoQnXw8NAi3MFqdjlXTna+95 fOeEJ9zXluGqo5cm77FmTgsjQPIY4b/RKbYeZJT/EvWnzw1/QDOox+9Su6VRd2BkxD8XmB 7UdWjJF9xuxnJbds09NLxE0+y6XceS0Ol5KUt2ge22raoB+/gq2/JLHZXjRVzMCldnBHBx 52C1PaYUb0JTxqZ/stbMGlxrqjqtcTarwz551EanZFEyXYWUPZn+fworJJGUtw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658861869; a=rsa-sha256; cv=none; b=jDH/OtJJmErc532nMTrPYHVGuRCZC7uAooIzPGk1IxzMS2K1M1SGJDTGyY/JhBZpr62h63 LquhCLnyMZ/lsU7nOa/DSe9Sg+XWe6IukH4cdXi1tbY6fjN6C8OuuK+QX2EvX3opvfIpkR SBEdx7A/cuNDOL6oDIU1W3ArN+oIoJvxR+vPKq01/vwy7BJqamdmleGtWbkLGgMEBrjeO0 JWDfNpiVRwzP1E/V5A8acFBc8+AZ5kAZD+jKe1JnB7sCMyHNVQJquGJUrMBwdWzbp1zT3h y9tD29X0okj6gqwTg5ozuceiiS5Ws2Wj2LwmzF7XQSs6gBX8ksiCOaXV2kQ8Ug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=telenet.be header.s=r22 header.b=aH9KVUz+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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" X-Migadu-Spam-Score: 5.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=telenet.be header.s=r22 header.b=aH9KVUz+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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" X-Migadu-Queue-Id: 149D82B10E X-Spam-Score: 5.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: gsVdfLGZ733G This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------VRG65B9GGJFar09rOeOpOcNZ Content-Type: multipart/mixed; boundary="------------TdlqGY0cP6m00Pz9w9QUHMdT"; protected-headers="v1" From: Maxime Devos To: Marcel van der Boom Cc: 56766@debbugs.gnu.org Message-ID: <73c26ae4-d0f3-1dfb-99f0-1234b3020256@telenet.be> Subject: Re: [bug#56766] [PATCH] gnu: exiv2: Fix test failure on ppc64-le References: <2b700a6dc4b5b7dd09465c0ef7c04f73b055d463.1658777229.git.marcel@hsdev.com> <9487ab96-82a7-8260-43bb-db3ac6b73688@telenet.be> <877d3zemrq.fsf@van-der-boom.nl> In-Reply-To: <877d3zemrq.fsf@van-der-boom.nl> --------------TdlqGY0cP6m00Pz9w9QUHMdT Content-Type: multipart/mixed; boundary="------------c9gRXxTJq3j96OR8mVyxmnpQ" --------------c9gRXxTJq3j96OR8mVyxmnpQ Content-Type: multipart/alternative; boundary="------------aP7pWBSyJ70xWj0QMcE7Fv5c" --------------aP7pWBSyJ70xWj0QMcE7Fv5c Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 DQpPbiAyNi0wNy0yMDIyIDIwOjM4LCBNYXJjZWwgdmFuIGRlciBCb29tIHdyb3RlOg0KPj4g VGhlICdwYXRjaGVzJyBmaWVsZCBpcyBkZWxheWVkLCBub3QgdGh1bmtlZCwgc28gb25seSB0 aGUgZmlyc3QgDQo+PiBzeXN0ZW0rdGFyZ2V0IGl0IHNlZXMgd2lsbCB0YWtlIGVmZmVjdC4g VGhpcyB3aWxsIGJyZWFrIHRoaW5ncyBpZiBmb3IgDQo+PiB3aGF0ZXZlciByZWFzb24geW91 IGNvbXB1dGUgdGhlIGRlcml2YXRpb24gb2YgdGhlIHBhY2thZ2U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xsZWQgJ2xvd2VyaW5nJywgd2hpY2ggaXMgYSBiaXQgb2Yg YSBsb3ctbGV2ZWwgY29uY2VwdCBhbmQgDQpoZW5jZSBwcm9iYWJseSBub3Qgd2VsbC1rbm93 bikuDQoNCiogZGVsYXllZCA9IGZpZWxkIHZhbHVlIGlzIHdyYXBwZWQgaW4gYSAoZGVsYXkg dGhlLXZhbHVlKS4NCg0KIMKgwqAgRm9yIGRvY3VtZW50YXRpb24gb24gJ2RlbGF5Jywgc2Vl IHRoZSBtYW51YWwuIFRoaXMgaXMgdXNlZnVsIGZvciANCmF2b2lkaW5nIGNvbXB1dGF0aW9u IHVudGlsIGl0J3MgcmVhbGx5IG5lZWRlZCwgYnV0IHVubGlrZSAnbGFtYmRhJywgaXQgDQp3 aWxsIG9ubHkgYmUgY29tcHV0ZWQgb25jZSwgc28gb25seSB0aGUgZmlyc3QgdmFsdWUgb2Yg dGhlLXZhbHVlIGlzIA0KdGFrZW4gaW4gYWNjb3VudC4gQXMgc3VjaCwgdGhpcyB3b24ndCB3 b3JrIHdlbGwgd2hlbiB0YXJnZXQtc3BlY2lmaWMgDQp0aGluZ3MgYXJlIHJlcXVpcmVkLg0K DQpHcmVldGluZ3MsDQpNYXhpbWUuDQoNCg== --------------aP7pWBSyJ70xWj0QMcE7Fv5c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On 26-07-2022 20:38, Marcel van der Boom wrote:
The 'patches' field is delayed, not thunked, so only the first system+target it sees will take effect. This will break things if for whatever reason you compute the derivation of the package for multiple systems in the same process.

Where can I read up on 'delayed' vs 'thunked' to understand that concept? I have no idea what it is at the moment and the manual does not mention this.

AFAICT, it is not documented, though you could read the code at (guix records). Basically:

* thunked =3D field value is wrapped in a (lambda () the-value).

=C2=A0 This allows for target-specific inputs, as (inputs (list (i= f It's-this-architecture these those))) is internally translated to

=C2=A0 (inputs (lambda () (if [...] [...] [...]))).

=C2=A0 That way, the inputs are not decided when the package is be= ing defined, but when it is compiled to a particular architecture on a particular architecture (or more precisely, a little before building, in what is called 'lowering', which is a bit of a low-level concept and hence probably not well-known).

* delayed =3D field value is wrapped in a (delay the-value).

=C2=A0=C2=A0 For documentation on 'delay', see the manual. This is= useful for avoiding computation until it's really needed, but unlike 'lambda', it will only be computed once, so only the first value of the-value is taken in account. As such, this won't work well when target-specific things are required.

Greetings,
Maxime.

--------------aP7pWBSyJ70xWj0QMcE7Fv5c-- --------------c9gRXxTJq3j96OR8mVyxmnpQ Content-Type: application/pgp-keys; name="OpenPGP_0x49E3EE22191725EE.asc" Content-Disposition: attachment; filename="OpenPGP_0x49E3EE22191725EE.asc" Content-Description: OpenPGP public key Content-Transfer-Encoding: quoted-printable -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX4ch6BYJKwYBBAHaRw8BAQdANPb/d6MrGnGi5HyvODCkBUJPRjiFQcRU5V+m xvMaAa/NL01heGltZSBEZXZvcyA8bWF4aW1lLmRldm9zQHN0dWRlbnQua3VsZXV2 ZW4uYmU+wpAEExYIADgWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCX4ch6AIbAwUL CQgHAwUVCgkICwUWAgMBAAIeAQIXgAAKCRBJ4+4iGRcl7japAQC3opZ2KGWzWmRc /gIWSu0AAcfMwyinFEEPa/QhUt2CogD/e2RdF4CYAgaRHJJmZ9WU7piKbLZ7llB4 LzgezVDHggzNJU1heGltZSBEZXZvcyA8bWF4aW1lZGV2b3NAdGVsZW5ldC5iZT7C kAQTFggAOBYhBMHzPuIMUo/bfdcBH0nj7iIZFyXuBQJf56ycAhsDBQsJCAcDBRUK CQgLBRYCAwEAAh4BAheAAAoJEEnj7iIZFyXujpQBAKV1SwDDl4f24rXciDlB9L8W ycZt30CgbewMSRQk4mvbAP9dFMbVVixYBd6C8cfhR+NsOBGiOJnQABlUmgNuqGFJ Dc44BF+HIegSCisGAQQBl1UBBQEBB0BOlzIWiJzgobMF6/cqwLaLk7jIcFSZ++c0 k9cCNT6YXwMBCAfCeAQYFggAIBYhBMHzPuIMUo/bfdcBH0nj7iIZFyXuBQJfhyHo AhsMAAoJEEnj7iIZFyXuMr0BAJc8cl5PGvVmVuSQVKjleNl4DK1/XAaPAYPe34AE fZJPAP9IqLCQhH/FeJanHqBP8gNdGNI2qn8RnnLVfRJgUjZ1BA=3D=3D =3DOVqp -----END PGP PUBLIC KEY BLOCK----- --------------c9gRXxTJq3j96OR8mVyxmnpQ-- --------------TdlqGY0cP6m00Pz9w9QUHMdT-- --------------VRG65B9GGJFar09rOeOpOcNZ Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYuA4kQUDAAAAAAAKCRBJ4+4iGRcl7rNX AP4s96KHZotqNbTNYasK5qaDpsQIJHPbef4Lc/v13eI3GwEAgW7WWlhmiNYlFEbbrOB+cL8/0W1R TL9t8yQndmpZ+wA= =kjPx -----END PGP SIGNATURE----- --------------VRG65B9GGJFar09rOeOpOcNZ--