GNU bug report logs - #77033
Deploy to machine with different architecture

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-patches; Reported by: Sergey Trofimov <sarg@HIDDEN>; Keywords: patch; dated Sat, 15 Mar 2025 12:01:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Changed bug title to 'Deploy to machine with different architecture' from '[PATCH] deploy: Support --target and --system.' Request was from Sergey Trofimov <sarg@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 77033) by debbugs.gnu.org; 22 Mar 2025 09:09:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 22 05:09:42 2025
Received: from localhost ([127.0.0.1]:40841 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tvurO-0006Vl-AZ
	for submit <at> debbugs.gnu.org; Sat, 22 Mar 2025 05:09:42 -0400
Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:47406)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <sarg@HIDDEN>) id 1tvurL-0006VT-B9
 for 77033 <at> debbugs.gnu.org; Sat, 22 Mar 2025 05:09:39 -0400
Received: by mail-ej1-x62f.google.com with SMTP id
 a640c23a62f3a-ac3fcf5ab0dso178309566b.3
 for <77033 <at> debbugs.gnu.org>; Sat, 22 Mar 2025 02:09:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=sarg.org.ru; s=google; t=1742634573; x=1743239373; darn=debbugs.gnu.org;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=tbzKNdRZNYMoFDiWYR2D0CPo1NnRzucxdwH/wVroiyg=;
 b=Sh7bmKi1oci7ULsmL7vkgMzVYEN1jZhjrEBJIhBej+sylY/L+kiHB0db4aBy9LWbLz
 i7r7RL/W4tBgltH9o9IJGKbeYOGyw6RFvf3vsSwnEa1XvoyMF/VwUgROkCl7w4E3JlTb
 CTawAS1EJpm2fehU9L5VNiMnKFOac3Di4/i5yIogsa1vIlz+K9lpaNmJTTjToxOGFwni
 2FgL9Syf+hda+MsifsTE0iIV90aNI+rqv4epS2sFxVT+svrElVciYVf2YF6gf6O6yk07
 5llKqnFle6nfoJFWxV5CD8t1GLxGbwe3IYV+2rgJoysLHA/xjn2m8Ab/ShNd+DJV8BGL
 pPSA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742634573; x=1743239373;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=tbzKNdRZNYMoFDiWYR2D0CPo1NnRzucxdwH/wVroiyg=;
 b=hqt6lYiOYfSQM6KIFjLZHq0LSkv1o1vtnGImh4A51j+CqfMuUtAGGr4fXmC8g7AEmO
 nlyjZtAEL61BeyRy3aYAtfe4+7mMGWS80HQp8IMKSu0zmhaFY6rDuSrlkW0L3su0Kckf
 DYSq0lWckNCIr+JD8MmxtTbO14E0uJz2k+mcG+aeegtZGNx727E5quYvxBYDRrdO02+6
 Tsd35vQ5AO8ovJZdg+5Tnj8/7SlyJGBrN/7Wnp8Tkoqh2sA42g+JV1Ac+2QkJ+FaaC4e
 Agg6kopWf2rkvjIBhW9BDaua6vM/Z/L5cI3UpNneXyOLa7zrCFen11gnJpbbT97ZUghR
 TBYw==
X-Forwarded-Encrypted: i=1;
 AJvYcCU1V7tK5KOYInaTQnZioOTo0WCDaWw8M0n+bK2ZFWdVTSJEVzPWgnKqAeMIg98hYYkhYpjV3w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yz3Ou7luY2B5e0ouDGiynhIkM3/nVyp0uJInO0CRHs/FqjoSrOd
 zeEPwKDwBRh8qtdcW8Bb20lJMsYMVMwaLhG1hbIhHLxt7z5JUns8sI98UaBPhVk=
X-Gm-Gg: ASbGncv7s9MwDDxeIKW4+cajiio0zEptcg6Co2QVE69TAx05JwOfWTWQlDEPDgJyB7h
 iX1bGNEHhNPommanc5c3v45SFLC/icQQlbaoWx2hMWaJnKrbHlgH7h+KLH8U9hSeTAWQeqFBrfh
 Xht/Buox1H5vGYynzYmajiW2oZKbIF1MHWzU+GW6cTEyIc0szXJjDiqxb4sOtgoIFqk8hqigOAI
 XSrOHiVj8y0y+1IBuLRIUXn0bwBE7684Gg19gshVykN7DvI4GAurLpIDb7s04Cgqs/p6/V5kXVu
 IZkwwVQkPSNePzYOb+876RiBxDLlSy6oAqSmG7oVAIPY0rhYLMBquw==
X-Google-Smtp-Source: AGHT+IG2CNclYyGgfy+1ZTYtslM5LOSWo3L6tQDuicGSuPAgwhwe1//OlfAQN72kAjZL1/d6jfC+Qg==
X-Received: by 2002:a17:906:c106:b0:abf:7af6:ea64 with SMTP id
 a640c23a62f3a-ac3f2509ec0mr603894866b.45.1742634572428; 
 Sat, 22 Mar 2025 02:09:32 -0700 (PDT)
Received: from localhost ([2a02:2454:a0a5:2400:a64e:31ff:fe38:fd6c])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-ac3ef86e529sm305765066b.21.2025.03.22.02.09.30
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 22 Mar 2025 02:09:31 -0700 (PDT)
From: Sergey Trofimov <sarg@HIDDEN>
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <87jz8hjyu6.fsf@HIDDEN> (Maxim Cournoyer's message of "Sat, 22
 Mar 2025 16:42:25 +0900")
References: <87bju1yzfq.fsf@HIDDEN>
 <8634fbtvhk.fsf@HIDDEN> <874izrwg6a.fsf@HIDDEN>
 <87plicnprz.fsf@HIDDEN> <87iko3u8av.fsf@HIDDEN>
 <87cyebm8s4.fsf@HIDDEN> <87r02qrfcf.fsf@HIDDEN>
 <87jz8hjyu6.fsf@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 30.0.92
Date: Sat, 22 Mar 2025 10:09:29 +0100
Message-ID: <87sen51lfa.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, Roman Scherer <roman.scherer@HIDDEN>,
 77033 <at> debbugs.gnu.org
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.3 (/)

Hi Maxim,

Maxim Cournoyer <maxim.cournoyer@HIDDEN> writes:

> [...]
>
>>>> Additionally `guix-daemon` should know all the systems the host
>>>> supports. Currently it knows only the native one (`--system`
>>>> parameter).
>>>
>>> I've never used such feature, so I wouldn't know of how useful that
>>> would be :-).  Perhaps useful if the machine is to be used
>>> exclusively
>>> for cross-compiling by default?  You could also set that via 'export
>>> GUIX_BUILD_OPTIONS=--target=$gnu-triplet', no?
>>
>> You've mentioned it in the previous mail:
>>
>>> In my experience, assuming a powerful x86_64 workstation,
>>> cross-compilation > native-compilation (on lower spec ARM machine) >
>>> emulated native compilation (QEMU).
>
> I was answering the specific implementation details you seemed to allude
> to, regarding that guix-daemon should know also about the non-native
> (cross-compiled) target systems supported.
>
> I didn't understand that part.  Why would we need to teach the daemon
> something new?  It already can cross-compile things as it is, even it
> lacks such explicit knowledge, it seems.

`build-machine` declares the systems it supports and local host is in
fact also a build machine. Having explicit supported system declaration
would:
1. allow better error messages ("can't build for `targetX`" instead of
failing to build actual derivations)
2. provide more data to the offloading algorithm. It could then select
the current host when necessary
3. potentially allow to get rid of the `--system` build parameter (or
replace it with `--build-type=native|emulated|cross`).




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

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


Received: (at 77033) by debbugs.gnu.org; 22 Mar 2025 07:42:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 22 03:42:48 2025
Received: from localhost ([127.0.0.1]:40622 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tvtVI-0002Y7-H1
	for submit <at> debbugs.gnu.org; Sat, 22 Mar 2025 03:42:48 -0400
Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:58391)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1tvtVG-0002Xr-3I
 for 77033 <at> debbugs.gnu.org; Sat, 22 Mar 2025 03:42:47 -0400
Received: by mail-pl1-x62d.google.com with SMTP id
 d9443c01a7336-2264aefc45dso32508905ad.0
 for <77033 <at> debbugs.gnu.org>; Sat, 22 Mar 2025 00:42:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1742629360; x=1743234160; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=R59KF9GQW+/9KkJQfoJyXzzwwixrnXg4HY/poCPtD/M=;
 b=KVqsM1pT8Ki5kWlFIUaY8LnCr0vkg7qt/IEqRlzaY2zQc4WY2Hl5JtM+kQHV/3OJxE
 7fLRB0JwsWKOBdghBbka2hGFiDhV+miihMl3SxRKG9uy5gmdcIgQJIMd79ZaHRa3mg72
 /q+jC0NePThNu7d5TA7BhtABzO8fJC2T2U/NkvK4w571jyVMO+jLeZSfgG/5pwPPo7id
 ZXPfvL3IJzTrFRMww+kJe/LKKUyYgmQckgSqghdMcJH1nr1I5q5Cq0XTrOPTm320bHrC
 biFrIv+5lgMIEoTMTZsxbOc52eugWi+sMrJk2EQjk8lWo/st2qKVU7z+tIsrkSDmcawS
 lX1Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742629360; x=1743234160;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=R59KF9GQW+/9KkJQfoJyXzzwwixrnXg4HY/poCPtD/M=;
 b=oe2vvS04Vs8HNUfrWdZMlm03pdnCkdDc1F5z4G3KgVSRWgENKh8ISZ8B2eTpNi1AnA
 +q7oHNIkxL8Ps4QwsJSiJKQgOgdYGJ5zDqbkeRa/qOkE8Ew97g6ZhH1OFUSpQwFGaBOC
 pwulMzR68WYIxCn7sxqviqmffwAs/DaDxUWrZDRDLe2aHFd5CkxwaxQuOKtwJqBIxdLT
 D3yML14eh5FrSt6G5E1OmXvfrpIdxVaXodtORX1q2QkMJAHrSFSir+rByYePdY1NhokM
 e5CHahXxASWJN1CFopZ/mZfjQHlewuvq5iDKEOPiLQjsjW9IIl5cY1urB7cB30V17J6r
 Qz7Q==
X-Forwarded-Encrypted: i=1;
 AJvYcCVQVQOlepkRH+4uIhvxtOc9Ryvbw9l0HHaXYwFsiONIIgEq+AuhqjfzqGFnQ/ehoGJy+J+FTg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzBNg0MS2ohRNlxzSZJFGyvJ0xtaJ9QJIHEQJNB08OgLgjl1H77
 MyTKGCM19OVAJVKLrjl6MdjtPun/pXyIp3LMKtVt8+5/iD3IMvx3
X-Gm-Gg: ASbGncvZsTMaSBcg3t1vD0OK5WHnQoqts3yHCJvgb9fJdf9eaSK5oOhU2d1FpNa5vyQ
 JoVNVL5xW2zc+VfrPkpJ4lrLTQs945KS1W9BXTK2BVLZaFWC8L9iLSryT5rVC/TEPSuS3FYCnqX
 xrYcR96hPVq7nPFMgG/iYfXYWRMrNzXxeLuBIrsSzmIHK0VCdjR6dOvKRRWBQWVJRX0z+KIjXLS
 pcB6bt9G4irGblGSBDqT40iVP3GpCn6tgFYZ8ZXVNmbhd8s19E4ls2SL0Ub0Y2OHxim2onHj8W7
 qeUifqDOI281MusN7KN/UMtjQivnfli6X2QWpVF4cIc=
X-Google-Smtp-Source: AGHT+IEWe4mmwgGyoyxtkSyCPmITOkpYRi2dUWsaY7mu/ejjRhQyatIhWuGTLT6YNYV/S5wFT7LAhQ==
X-Received: by 2002:a05:6a00:8d5:b0:736:73ad:365b with SMTP id
 d2e1a72fcca58-739059b681fmr8660238b3a.14.1742629359881; 
 Sat, 22 Mar 2025 00:42:39 -0700 (PDT)
Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542])
 by smtp.gmail.com with ESMTPSA id
 d2e1a72fcca58-7390611d573sm3481973b3a.100.2025.03.22.00.42.37
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 22 Mar 2025 00:42:39 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Sergey Trofimov <sarg@HIDDEN>
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <87r02qrfcf.fsf@HIDDEN> (Sergey Trofimov's message of "Fri, 
 21 Mar 2025 08:51:44 +0100")
References: <87bju1yzfq.fsf@HIDDEN>
 <8634fbtvhk.fsf@HIDDEN> <874izrwg6a.fsf@HIDDEN>
 <87plicnprz.fsf@HIDDEN> <87iko3u8av.fsf@HIDDEN>
 <87cyebm8s4.fsf@HIDDEN> <87r02qrfcf.fsf@HIDDEN>
Date: Sat, 22 Mar 2025 16:42:25 +0900
Message-ID: <87jz8hjyu6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, Roman Scherer <roman.scherer@HIDDEN>,
 77033 <at> debbugs.gnu.org
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.3 (/)

Hi Sergey,

Sergey Trofimov <sarg@HIDDEN> writes:

[...]

>>> Additionally `guix-daemon` should know all the systems the host
>>> supports. Currently it knows only the native one (`--system`
>>> parameter).
>>
>> I've never used such feature, so I wouldn't know of how useful that
>> would be :-).  Perhaps useful if the machine is to be used
>> exclusively
>> for cross-compiling by default?  You could also set that via 'export
>> GUIX_BUILD_OPTIONS=--target=$gnu-triplet', no?
>
> You've mentioned it in the previous mail:
>
>> In my experience, assuming a powerful x86_64 workstation,
>> cross-compilation > native-compilation (on lower spec ARM machine) >
>> emulated native compilation (QEMU).

I was answering the specific implementation details you seemed to allude
to, regarding that guix-daemon should know also about the non-native
(cross-compiled) target systems supported.

I didn't understand that part.  Why would we need to teach the daemon
something new?  It already can cross-compile things as it is, even it
lacks such explicit knowledge, it seems.

-- 
Thanks,
Maxim




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

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


Received: (at 77033) by debbugs.gnu.org; 22 Mar 2025 07:40:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 22 03:40:09 2025
Received: from localhost ([127.0.0.1]:40618 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tvtSi-0002Sm-L8
	for submit <at> debbugs.gnu.org; Sat, 22 Mar 2025 03:40:09 -0400
Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:59897)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1tvtSf-0002Nq-Ro
 for 77033 <at> debbugs.gnu.org; Sat, 22 Mar 2025 03:40:06 -0400
Received: by mail-pl1-x630.google.com with SMTP id
 d9443c01a7336-22548a28d0cso37145095ad.3
 for <77033 <at> debbugs.gnu.org>; Sat, 22 Mar 2025 00:40:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1742629200; x=1743234000; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=pJFPt+icK5w2RdIu8485dHwdDs4s5YY3p5cV+8/h8iU=;
 b=eQjvKMSJ9/Kx4nBAzZrB22SSKhhTg47y1tX37dfwgexk94i6/HpL8Tjcj/r+PD7qiJ
 lCCLbu9zZs0Cdw4+1md1QRPa1wXuDpln+/oCTkVHudt4a4QyTPyUJZoJzHywuZX3jTmj
 p5Mlai9WcOHVGZ8lC2VoDikdsxz5F754ANuAjxvzEro3GaWju/LRlQYpxFnYbAa6akdb
 icyNK352yHP+8FzSEQ4+PsNEOMZgWNgQGlpcUYvycrH68ybI8QC10bkVxEGN2hCdCKxZ
 TQAXcgy0sAnXdkKFPYCt1K+8FHY6LY3Ei8UK4Zwb4c87LlkUBLOLDgGZUiy/8Nyw55Wt
 sCrA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742629200; x=1743234000;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=pJFPt+icK5w2RdIu8485dHwdDs4s5YY3p5cV+8/h8iU=;
 b=iYzRCqXhUqdLkcEe3MYMsKpvlu6GUHRKaR4rLMErXJmfcv1P6o3Gn3KlY7BirRPVTB
 kFopg86Fy6UF8svOJLT4LFbzcj30iLYUY7NBbl7PTNLkQvtV3QzzBFG1vlNcOnB0gZ1R
 DNKg/nzJmJR8CKJ0s60jH288qJY5rXPK2er16noNUrN5srxCZM3on+e6/h7JQig/wsiL
 WiICDCpe6fU0h21ihpAEWTAGJd5CHkESu6gvwNsYosV0ZaaGKQLMH1jyVpGEcOiBqmXo
 xoN5Loa7x0molyjhUVznZR+c+teMCMdY/RzuJqwBSD7m/IthR/ylUl7J71RI4ukwCZiV
 4WSg==
X-Forwarded-Encrypted: i=1;
 AJvYcCW8RkkkyKJRusK6cc+udTVxnd16YeSDPAoir+TrfQWB2kc0Sc6Bnz3y3cVdsdV0ZY2vh7hr8Q==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwqBecgL3p1Okeo3kMUgN2lbdFhfBfnq+f6bq8bwBoyCJcS21Sz
 nCpUD/KRs6XZC7CjPFSaTCT3P0skCoKqJj26Fv7/4QSui1k4CSBy
X-Gm-Gg: ASbGncteiWuDIAB7qOdYufQ5lPkwrqWw7O9NysiCdggAOFWrwsn0B+vMtJXESUAJNtr
 NOyRoIol4wKQGAw0KyTffinIcagXGC9mTs/ADrmzDIj2rJZVnOBoPv9AI8zjUDo/eN6zo0eCk56
 0QAeHs81d7QaU4nvN0qmBS6sw+HOidzeiXXIc13Qyp2cLES4vpDblraMPJb+zWH1bs49XZ+xyuV
 vDRE9dBXr0TdqtmRcdIIO8dr5uwAMl/q58eWxKdBtTy71MpysxHUtw+7gpQPE5Uyqe19OS/fWsq
 we1rGpU3SFs69lfFr9t1DDHjT8/jTL6wlc6ZdGU4y7c=
X-Google-Smtp-Source: AGHT+IFQdvngcDe2OUEImXr6oR0A4cpmcSDpbKH5nsGqcd2QLILilp4LGPvD5dpW+g5pY35KitHPHg==
X-Received: by 2002:a17:902:ce08:b0:220:e5be:29c8 with SMTP id
 d9443c01a7336-22780e08cebmr107664175ad.32.1742629199553; 
 Sat, 22 Mar 2025 00:39:59 -0700 (PDT)
Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-227811b7f31sm30018215ad.142.2025.03.22.00.39.57
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 22 Mar 2025 00:39:58 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Roman Scherer <roman.scherer@HIDDEN>
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <86tt7mre08.fsf@HIDDEN> (Roman Scherer's message of
 "Fri, 21 Mar 2025 09:20:39 +0100")
References: <87bju1yzfq.fsf@HIDDEN>
 <8634fbtvhk.fsf@HIDDEN> <874izrwg6a.fsf@HIDDEN>
 <86tt7mre08.fsf@HIDDEN>
Date: Sat, 22 Mar 2025 16:39:44 +0900
Message-ID: <87o6xtjyyn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, Sergey Trofimov <sarg@HIDDEN>, 77033 <at> debbugs.gnu.org
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 (-)

Hi Roman,

Roman Scherer <roman.scherer@HIDDEN> writes:

> Hi Sergey,
>
> I tried building libxcrypt on an aarch64 system with the following command:
>
> ```
> guix build --system=x86_64-linux /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv -v 5
> The following derivation will be built:
>   /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv
> building /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv...
> qemu-x86_64: QEMU internal SIGSEGV {code=MAPERR, addr=0x20}
> ```

That looks like a QEMU bug.  If you'd like it resolved, I'd open the
issue with them, at <https://gitlab.com/qemu-project/qemu/-/issues>.

> Not sure, why it's crashing. I haven't found the logs for it on my
> system. The log file for the derivation is empty. I see this in my
> guix-daemon.log file:
>
> ```
> 2025-03-21 09:17:08 SIGPOLL
> 2025-03-21 09:17:08 unexpected build daemon error: interrupted by the user
> 2025-03-21 09:17:10 accepted connection from pid 27118, user roman
> ```
>
> Anything else I could try?

An actual x86_64 machine to use as an offload machine, if you have
access to one :-).  You could also try '--target=x86_64-linux-gnu'
instead of '--system', to attempt cross-compiling it for x86_64.  If
supported by the involved build systems in Guix, that should be more
reliable than QEMU.

-- 
Thanks,
Maxim




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

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


Received: (at 77033) by debbugs.gnu.org; 21 Mar 2025 09:16:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 21 05:16:06 2025
Received: from localhost ([127.0.0.1]:35197 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tvYTy-0004Dl-TS
	for submit <at> debbugs.gnu.org; Fri, 21 Mar 2025 05:16:06 -0400
Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]:58814)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roman.scherer@HIDDEN>)
 id 1tvYTv-0004CO-BP
 for 77033 <at> debbugs.gnu.org; Fri, 21 Mar 2025 05:16:01 -0400
Received: by mail-ej1-x634.google.com with SMTP id
 a640c23a62f3a-ac2902f7c2aso295227066b.1
 for <77033 <at> debbugs.gnu.org>; Fri, 21 Mar 2025 02:15:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1742548553;
 x=1743153353; darn=debbugs.gnu.org; 
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=wMqen6Y1aw5oFzfMj63V0s3Ge/WJMg3qp0rKdUb2sL8=;
 b=0957PBfLX2IeEGaLiUWe5l0LrG8lbwd39NE/r4zbPmOsLL37N5awlz8FpaDmc0hS3J
 BPtIqVVK1ktzfPiUJEt5JYBhxpG9S7AtMC1RUFRs2CjQYiJ22CJeiOt5Wd/NMnyiZPBC
 AmdiqG4geunuZKgKUtjM1grV10wUrQCrM+/bnYqNmMyAM42MEZO/pbEKCXz3PHXYbO+s
 SFOFuuyplt6ZDvAfOM7X/d8/n77c1dywKvVCcw0lGCO2cSp94Y/Xg99Tvo112QjvsfNf
 5QEooiJFVKNEokzH3NyoVQqCtbfZzIuVSYOjkS6/M1zcY7HlVsJj72hhrx7CAHns17++
 eRog==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742548553; x=1743153353;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=wMqen6Y1aw5oFzfMj63V0s3Ge/WJMg3qp0rKdUb2sL8=;
 b=KLornMRxHp0cppXGvShWM/cF+VqgTRAPvIeVUw6wC+vrKhnX5wgAIpBykIoo6l++Z0
 rUEKbt4F/NR30AtLpNyBUUBuYBgatg2628KK/lg1Wjw0o1+SWJFE0xgEuuyuKTLvkKg4
 zpWOFesNK5J0PZ6TSdIbkdxnWN1CkZVkqncW1DBVoWlEeG/TSrGJfoXuE6i8P6FTWZsg
 6QUXq02ynlCnXJp1WTYWMcms1yIOtrwWWFbl8DkbmiGs6OnOaUsMjNAMIylWyfhz4ngV
 r82eAgDaiM54ftKDG5HpTeQMDFF0UQVTVe8w5HytX2EjPyQL5iBghSGRPlcv/CFN52px
 U7ZA==
X-Gm-Message-State: AOJu0Yy/EUyKWCFz2AikdyFuiSXA4zY6l/43Dnfw3BpwzgU4EJ2LIG4B
 jWsSYUv9sn0NEV0dvcVu3XpGO87x4OfyYyRu/ZeHLanLPgzhZzXIqKjCyLDIt3M=
X-Gm-Gg: ASbGnctlUxQCrwwL9mzqQtF/KLe8uB/VOU2pxvVErQaNKSjKikW8T6JaRjmajscwDq3
 BkpiXKoW7jalU//Sde1U8TuAMiiskyBmqYIM2NlMq9akZoKzjcT6w6jJOyz+TI/Y58Zm083swsT
 vOC39aMN59bx7pITincJAyvazvTUUoE+pmbqRh7+bbBWQoTIrMffKok8jDBg5tjooqGSWiaQXSi
 qii/MDedENwiqwrprFLexIZ8hMZmmF5eNXf+tCJXu2TQDl2CvyKXLEuBk5l0pMTGYAD7LMGSZDO
 IfSprxZZlt9j2msIz8PpUXC5SJ91jgfaSuKnrglaCl2sTRY7
X-Google-Smtp-Source: AGHT+IH8tZ5+3THOfgd8elgYdD2M0C9RqDzEf969UvxjXCijjQxNutZz92kG9uQlkO8R6EaatRxsOQ==
X-Received: by 2002:a17:907:6090:b0:ac3:3fe2:3dfe with SMTP id
 a640c23a62f3a-ac3f22b2f03mr220859166b.34.1742548552748; 
 Fri, 21 Mar 2025 02:15:52 -0700 (PDT)
Received: from m1 ([2a01:599:102:1e39:186f:1ebd:d0a4:c974])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-ac3efb6570esm115457766b.108.2025.03.21.02.15.51
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 21 Mar 2025 02:15:52 -0700 (PDT)
From: Roman Scherer <roman.scherer@HIDDEN>
To: Sergey Trofimov <sarg@HIDDEN>
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <87frjays3p.fsf@HIDDEN> (Sergey Trofimov's message of "Tue, 
 18 Mar 2025 21:57:30 +0100")
References: <87bju1yzfq.fsf@HIDDEN> <87frjays3p.fsf@HIDDEN>
User-Agent: mu4e 1.12.8; emacs 29.4
Date: Fri, 21 Mar 2025 10:15:51 +0100
Message-ID: <86iko2rbg8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, 77033 <at> debbugs.gnu.org
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.3 (/)

--=-=-=
Content-Type: text/plain


Hi Sergey,

I just tried this patch with the following machine config:

```
(use-modules (gnu machine)
             (gnu machine hetzner))

(list
 (machine
  (operating-system %hetzner-os-x86)
  (environment hetzner-environment-type)
  (configuration (hetzner-configuration
                  (server-type "cpx41")
                  (ssh-key "/home/roman/workspace/guix/id_rsa")))))
```

I deployed it with the following command:

```
./pre-inst-env guix deploy hetzner-minimal.scm --no-offload --timeout=864000 --max-silent-time=864000
```

The server gets created, the Guix bootstrap system is installed on it,
but when it tries to apply the final operating system config it "hangs"
at applying grafts:

```
...
guix system: bootloader successfully installed on /dev/sda
successfully installed guix operating system on 'guix-x86'
rebooting server for 'guix-x86'...
successfully rebooted server for 'guix-x86'
connecting via SSH to '138.201.175.151' using '/home/roman/workspace/guix/id_rsa'...
SSH connection to '138.201.175.151' port 22 failed: Timeout connecting to 138.201.175.151
guix deploy: warning: <machine-ssh-configuration> without a 'host-key' is deprecated
substitute: looking for substitutes on 'https://substitutes.asahi-guix.org'... 100.0%
substitute: looking for substitutes on 'https://substitutes.nonguix.org'... 100.0%
substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 100.0%
substitute: looking for substitutes on 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
  /gnu/store/f3s4as9imjy6mbpgq8796q64hm82ykaf-remote-assertion.scm.drv
  /gnu/store/14cba7yngalx7375gdh5325ba5ss1igh-module-import-compiled.drv
  /gnu/store/ipqcb48n8jhc11y7b1pbxaf4nxdv27iv-remote-assertion.scm.drv
  /gnu/store/q49sc3kk2f3430dmcsd4lbqgran1w8il-remote-assertion.scm.drv
  /gnu/store/8wdvxf30pn3m0i7six8s5v02iw0h8hl4-remote-exp.scm.drv

applying 2 grafts for bash-minimal-5.1.16 ...
-
```

SSHing into the machine doesn't show much activity. The "-" on the last line
is also not spinning, so I'm wondering if it actually does something or if it
waits on something. The "-" not spinning I also observed when I did the cross
build with your other patch.

Applying grafts doesn't take so long in what I have observed.

Deploying this arm machine from an aarch64 system works with your patch though.

```
(list (machine
       (operating-system %hetzner-os-arm)
       (environment hetzner-environment-type)
       (configuration (hetzner-configuration
                       (server-type "cax21")
                       (ssh-key "/home/roman/workspace/guix/id_rsa")))))
```

Any ideas why it is hanging at applying the grafts?

Roman

Sergey Trofimov <sarg@HIDDEN> writes:

> Roman Scherer <roman.scherer@HIDDEN> writes:
>
>> Hello Sergey,
>>
>> this looks good to me and is better than what we have now. I'm testing
>> this right now and will report back when it went through ...
>>
>
> I think this patch is not necessary at all, your code already sets the
> `system` field of `machine-ssh-configuration` to the value appropriate
> to one returned by hetzner-api.
>
> It looks to me that the bug is in incorrect parameterization, see the
> following patch. I've been able to deploy using it (again
> `build-locally?` set to #f as it takes too long otherwise). Please test
> this one.
>
> --8<---------------cut here---------------start------------->8---
> From 988d192cfe4833761d0714aa8a53392c09dd5c9d Mon Sep 17 00:00:00 2001
> Message-ID: <988d192cfe4833761d0714aa8a53392c09dd5c9d.1742331137.git.sarg@HIDDEN>
> From: Sergey Trofimov <sarg@HIDDEN>
> Subject: [PATCH] machine: ssh: Use monadic parameterize for monads.
>
> * gnu/machine/ssh (deploy-managed-host): Use store-parameterize in
> monadic context.
>
> Change-Id: I6441a5dac856633f2c2a00b77f21a385bf3a9510
> ---
>  gnu/machine/ssh.scm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm
> index 73d5dc513e..0ce2860236 100644
> --- a/gnu/machine/ssh.scm
> +++ b/gnu/machine/ssh.scm
> @@ -542,8 +542,8 @@ (define (deploy-managed-host machine)
>                                          host
>                                          (inferior-exception-arguments c))))
>                                os))
> -          (parameterize ((%current-system system)
> -                         (%current-target-system #f))
> +          (store-parameterize ((%current-system system)
> +                               (%current-target-system #f))
>              (with-roll-back #t
>                (mbegin %store-monad
>                  (upgrade-shepherd-services (eval/error-handling c
>
> base-commit: df799a61ef73451e587cb81942c7bfcbbade9e7e

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmfdLkcfHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmWrXB/9z18RBf5q+UMMm
4Y70f3HW8qBSGdB7hCD0b/M3SExHhAp/pqwl7I5Z2ux3AE5WBoQyTq5k7hyLK2So
fyQe82PtWq/rCKDW4Bp4VPhk7oV6ZaYClQIP288kY0baXajT1TYMfvF26W9OvlHV
7RE7o7GHkN59vEoNuOusI0ZUDc/o2ihFCgNhBTFXylEFx4K/gN3B+gy+mTbobmK5
LMa1hX4YfpK/lp/tLMBfpcx9ltyFmzyNYP3HhluoNfEYDDrxTuq6GRquPsSM/dh6
O0C+F9mcHUkvxJjrgkuUf9MJSOMFcIP2j+diyIJzweydqzZPSIZxmj9u9Vh9MIvD
UzcY7DMo
=1hKP
-----END PGP SIGNATURE-----
--=-=-=--




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

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


Received: (at 77033) by debbugs.gnu.org; 21 Mar 2025 08:25:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 21 04:25:10 2025
Received: from localhost ([127.0.0.1]:34853 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tvXgi-0005Rh-Dg
	for submit <at> debbugs.gnu.org; Fri, 21 Mar 2025 04:25:10 -0400
Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:47509)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roman.scherer@HIDDEN>)
 id 1tvXgc-0005PG-Pi
 for 77033 <at> debbugs.gnu.org; Fri, 21 Mar 2025 04:25:05 -0400
Received: by mail-wr1-x42f.google.com with SMTP id
 ffacd0b85a97d-3913958ebf2so1414524f8f.3
 for <77033 <at> debbugs.gnu.org>; Fri, 21 Mar 2025 01:25:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1742545496;
 x=1743150296; darn=debbugs.gnu.org; 
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=tA4w71GSZT9c/XVGClXtGG/uX+eqh3xmBOOvHuR41zg=;
 b=rL0/Q2p03eHaAp82xN6fZK9jVai2ramxleGbG6EAGs0SnIup+uCxjc13sZ9eohUDJy
 7EZPJawwLFFZfSzxxsUg18j0RI+OtSRgh7EZKwNMwRz2ylbyynhqZOL4LLIn4+hb+Cun
 C5BkPW4BylUGsiwS6B0a9dlSC17zT91oPlKsSz3aVL+Zzy8fCZdFS0oZD51luCLM/bxc
 NgDlBJlBPWDSh1Y3OJNMuij5rLx8Vf2zqhCExJWcEdPH9sA2IaZOKjNSJ6q8CXR7hIJH
 BVcf7A9ewUKzgR5/KaJza0zi0xSJlPVxGu4K6+O7CLEbHDjHWM8yBHCSNW+orhU/YchN
 73EA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742545496; x=1743150296;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=tA4w71GSZT9c/XVGClXtGG/uX+eqh3xmBOOvHuR41zg=;
 b=gx1ykSVUlfizY2GXZ2F4dopPQ2JiCxJAATImBvq1RwgDYWebCCDnjhZk0Jw+nl5ca9
 dXEXhpzWbn8F26T4KaZDlixZv+PVka7Mf+UPVEb6O+OYdk0UmswiDJvAkcxC6S3cxhid
 v5QVsgucD31BXTe2/siN2bqllVjFjE3NaPsMRdGGq+3cyzG9qry/Km8845WPBQAxfGIH
 YtH07Uj2nVwy5pEjyAYSdVR1VKH1wfmZFm7UEZRiXxKO+0Ul+6LhbRmeCs0srkARBvyE
 9g89PkhfM1m2SdR6TeZ6rHtThSoua9MEPDUfHSX4vhaJxy6b7AFMFiq//HkEKi5fMGCs
 avsA==
X-Gm-Message-State: AOJu0Yzs3jqCjhKDvsbiwjoekY3TKyff7Z9CHB6vShNxXHn0a6WOezqk
 Azy/5qD0aacyNLjKtRtmLnnCqXjLt6BHMzf+tjtf0iSNoIddfjQ63IzCGbLCGdQ=
X-Gm-Gg: ASbGncup3N/cp8fuDgiftM17Zwl7VfDbwtiDtkR4g6jMhh/u7Ngmz/cJQXjssQQ7lAc
 RgUUyd/s5ksopRsLdxBL3jB4LDG7vgjzHmsxAJhWsKRg9h3XUvST3qt2pwbB1Pv1o8dRq4WKwSj
 RozgJN7m8HFwCrKKnr7pTU4KdUi1JDKPPqfV1KGA58u3s2d5kJfv2pIQju94nM+8R9WQMA4KWMY
 /h9y7Io/yHRYG9M1O4Pv7VrfkcBbMvUBV8gmxHdx4qODhBBK0FdiiYLllyGACe6QlkCYkSxPRDw
 x/o2Px9NH+BOXGq1Jg0WMNBgEVw/qT0jVzXNGeYptz1o1uBhNZUYKg/s7n4=
X-Google-Smtp-Source: AGHT+IFDt7DJ/EkcpYbp3mHLo+Evu+9+2RmKy/cylX2OzfamIRZ/2EF+R/4gunyBY9mCllhRP1mf+Q==
X-Received: by 2002:a05:6000:1f83:b0:38f:28dc:ec23 with SMTP id
 ffacd0b85a97d-3997f8fc50bmr2042869f8f.19.1742545496029; 
 Fri, 21 Mar 2025 01:24:56 -0700 (PDT)
Received: from m1 ([2a01:599:102:1e39:186f:1ebd:d0a4:c974])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-3997f9e66a7sm1704802f8f.76.2025.03.21.01.24.52
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 21 Mar 2025 01:24:55 -0700 (PDT)
From: Roman Scherer <roman.scherer@HIDDEN>
To: Sergey Trofimov <sarg@HIDDEN>
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <87frjays3p.fsf@HIDDEN> (Sergey Trofimov's message of "Tue, 
 18 Mar 2025 21:57:30 +0100")
References: <87bju1yzfq.fsf@HIDDEN> <87frjays3p.fsf@HIDDEN>
User-Agent: mu4e 1.12.8; emacs 29.4
Date: Fri, 21 Mar 2025 09:24:49 +0100
Message-ID: <86o6xurdta.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, 77033 <at> debbugs.gnu.org
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.3 (/)

--=-=-=
Content-Type: text/plain


Hi Sergey,

Sergey Trofimov <sarg@HIDDEN> writes:

> Roman Scherer <roman.scherer@HIDDEN> writes:
>
>> Hello Sergey,
>>
>> this looks good to me and is better than what we have now. I'm testing
>> this right now and will report back when it went through ...
>>
>
> I think this patch is not necessary at all, your code already sets the
> `system` field of `machine-ssh-configuration` to the value appropriate
> to one returned by hetzner-api.

Oops, looks like I forgot about this. I was looking at this at the
machine and/or OS level.

> It looks to me that the bug is in incorrect parameterization, see the
> following patch. I've been able to deploy using it (again
> `build-locally?` set to #f as it takes too long otherwise). Please test
> this one.

I give it a try and will report back.

>
> --8<---------------cut here---------------start------------->8---
> From 988d192cfe4833761d0714aa8a53392c09dd5c9d Mon Sep 17 00:00:00 2001
> Message-ID: <988d192cfe4833761d0714aa8a53392c09dd5c9d.1742331137.git.sarg@HIDDEN>
> From: Sergey Trofimov <sarg@HIDDEN>
> Subject: [PATCH] machine: ssh: Use monadic parameterize for monads.
>
> * gnu/machine/ssh (deploy-managed-host): Use store-parameterize in
> monadic context.
>
> Change-Id: I6441a5dac856633f2c2a00b77f21a385bf3a9510
> ---
>  gnu/machine/ssh.scm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm
> index 73d5dc513e..0ce2860236 100644
> --- a/gnu/machine/ssh.scm
> +++ b/gnu/machine/ssh.scm
> @@ -542,8 +542,8 @@ (define (deploy-managed-host machine)
>                                          host
>                                          (inferior-exception-arguments c))))
>                                os))
> -          (parameterize ((%current-system system)
> -                         (%current-target-system #f))
> +          (store-parameterize ((%current-system system)
> +                               (%current-target-system #f))
>              (with-roll-back #t
>                (mbegin %store-monad
>                  (upgrade-shepherd-services (eval/error-handling c
>
> base-commit: df799a61ef73451e587cb81942c7bfcbbade9e7e

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmfdIlEfHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmd+0CACcn3xJGqJEbjSK
OgjbFUY2BMlRRRuR0m90AF+YtFc0nX3YyPR0qde+Lnsq3t1tD5RBQks3ydia3hN7
kwyQa/UIMibk/NfiDNXCzOrhG/DKaejUtFrHTUlk1jdMKr4RcbFwqfQF4oKneBz3
wW/fum0PHAhWOjDv7GbRgSDVkpEuzM3TDAiX/ce4JPRVj7vUknsYrHpb205QYDW8
qkKP3ur5m17drfBC81OSFdqzt2BseVV42+PnGj9M2idlLijfxixV5i0608b4YBAk
QKGb0vJ2TXqNAKULwNXwCoIVb7hXWOmRccdYzwAljRGf0DhIFf/lDcQoWZPk0hj4
4S2aV4C0
=hEU+
-----END PGP SIGNATURE-----
--=-=-=--




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

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


Received: (at 77033) by debbugs.gnu.org; 21 Mar 2025 08:20:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 21 04:20:55 2025
Received: from localhost ([127.0.0.1]:34823 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tvXcc-0004vt-CO
	for submit <at> debbugs.gnu.org; Fri, 21 Mar 2025 04:20:55 -0400
Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:56654)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roman.scherer@HIDDEN>)
 id 1tvXcX-0004uv-MP
 for 77033 <at> debbugs.gnu.org; Fri, 21 Mar 2025 04:20:52 -0400
Received: by mail-wm1-x32c.google.com with SMTP id
 5b1f17b1804b1-43948021a45so12961005e9.1
 for <77033 <at> debbugs.gnu.org>; Fri, 21 Mar 2025 01:20:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1742545243;
 x=1743150043; darn=debbugs.gnu.org; 
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=OurnAUN3PBWt+KYUE4xhF+LF/kdAKUkZjw8kR5iu7DY=;
 b=YpxRvSjtt+VcBOPW3lQF67hMJTSVdySRd8dBYz3/4L3yNsD41QZqatvxPQQZbibN/B
 puiq62ywOjHxGZW8kPQ1lTI/ypSBHMwqRiGcsunN0B0YjjiYz1bmn1hNM4N/T+GpIQdP
 U7FnsgACwytZspnTwlS4qsEOzLiBjVUK8r4EbfGFW7i+Qxu6pGLPDtp/84ydG4SiX+0k
 Y4D1IFY37xxLN2NOyGGxbFU4yrwEbHat7QzjOZTjyiSK/ZZ0/2Lk5kvrv9+4dkRRmsNj
 rPy1Lt0lavSTgjDuRZWWT1/CBQSM4GHaVkvymJC/uJf1bKKrqTRF98UrQ63vFg4/jOTK
 aTHw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742545243; x=1743150043;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=OurnAUN3PBWt+KYUE4xhF+LF/kdAKUkZjw8kR5iu7DY=;
 b=BKJiuP2Bs5RZQZIoidtrfljvZ/e+uEBDww8aHNeQ5eGV73HGvRFH9noezFerQThr35
 aNN14K8RtWWI/1iwWI9buzTpHErR/2zs61aoqBdqPLgt9SqKA1W/vqnED8XVI54rcfGK
 WFBAS4oUs2g7uXzMinGwmAGx+BFHPE/899pjcjBFCOuScE9MxOc8kZq8RaWO5cXovZ+X
 n94uE43Ar68vDphBQ7+ANvYqSWB7xkLd2YSflaShMUXIkIxf1z+Fg52F9RdsnBkrdpKQ
 CUgjw729ssAHikV/P4ejCw9K6xE6/z6DKb/nHt15ZAZKq4JHYTqHwMaLcIvthZNEQuVP
 bSVQ==
X-Gm-Message-State: AOJu0YzuJmac1o2HweC0v9dEO1Gu936Enjo6R2NhpeMLBcCzg9Ngvz80
 h0mJxUweIemMixEuTctRJHP7NbGu9G7G+deRdwoUtbfEnEiknOMEGvgi8f31D3q9VInECht6HFf
 6
X-Gm-Gg: ASbGncutAFiFPPOTxpG/8TexOr5KNIkt0pJcM5RV0rP30S8uLhV9DnjmsDECrmllg19
 k17KDlmlmWiNxaV7Z9Io7rmE9qM8AqNfeShCUwpmhKoysNP3P4zMsTHlFHxRYEfCsUhDsnbZtXp
 y1gjUIzyXt99/1VLeJ5tQR+yjdTx+78IdN/068qTRzPrwx3rZSlw9UgbK+Eqv46b9YV/DZUlqC+
 O/bkeI+VOipFE9hx63sZnq11fGMtizl3SBkeccVeljxbI3YCm2oz838aJPEpoRPlJWMHeLSPpx2
 96g5ugMSmaDPcIISEoyBNBuA9O99yR1hSXx0AfX851cvE8iC
X-Google-Smtp-Source: AGHT+IFkfblk7a9yYX5dFDUmXmVkiSL3BYkOX97fMKphRIbxnVC4f+dflBw5aJ4UFKqpQ8Te6jJgnA==
X-Received: by 2002:a05:600c:3109:b0:43c:e70d:450c with SMTP id
 5b1f17b1804b1-43d50a201bemr19462915e9.22.1742545242895; 
 Fri, 21 Mar 2025 01:20:42 -0700 (PDT)
Received: from m1 ([2a01:599:102:1e39:186f:1ebd:d0a4:c974])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-43d43f55721sm70775925e9.20.2025.03.21.01.20.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 21 Mar 2025 01:20:42 -0700 (PDT)
From: Roman Scherer <roman.scherer@HIDDEN>
To: Sergey Trofimov <sarg@HIDDEN>
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <874izrwg6a.fsf@HIDDEN> (Sergey Trofimov's message of "Mon, 
 17 Mar 2025 21:33:33 +0100")
References: <87bju1yzfq.fsf@HIDDEN>
 <8634fbtvhk.fsf@HIDDEN> <874izrwg6a.fsf@HIDDEN>
User-Agent: mu4e 1.12.8; emacs 29.4
Date: Fri, 21 Mar 2025 09:20:39 +0100
Message-ID: <86tt7mre08.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, maxim.cournoyer@HIDDEN, 77033 <at> debbugs.gnu.org
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.3 (/)

--=-=-=
Content-Type: text/plain


Hi Sergey,

I tried building libxcrypt on an aarch64 system with the following command:

```
guix build --system=x86_64-linux /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv -v 5
The following derivation will be built:
  /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv
building /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv...
qemu-x86_64: QEMU internal SIGSEGV {code=MAPERR, addr=0x20}
```

Not sure, why it's crashing. I haven't found the logs for it on my
system. The log file for the derivation is empty. I see this in my
guix-daemon.log file:

```
2025-03-21 09:17:08 SIGPOLL
2025-03-21 09:17:08 unexpected build daemon error: interrupted by the user
2025-03-21 09:17:10 accepted connection from pid 27118, user roman
```

Anything else I could try?

Roman

Sergey Trofimov <sarg@HIDDEN> writes:

> Hi Roman,
>
> Roman Scherer <roman.scherer@HIDDEN> writes:
>
>> So, I tried building this machine on an aarch64 system with the qemu-bin
>> service running now a couple of times ...
>>
>> ```
>> (use-modules (gnu machine)
>>              (gnu machine hetzner))
>>
>> (list (machine
>>        (operating-system %hetzner-os-x86)
>>        (environment hetzner-environment-type)
>>        (configuration (hetzner-configuration
>>                        (server-type "cx42")
>>                        (ssh-key "/home/roman/workspace/guix/id_rsa")))))
>> ```
>>
>> I used this command:
>>
>> ```
>> [roman@m1 guix]$ ./pre-inst-env guix deploy hetzner-minimal.scm --no-offload --target=x86_64-linux-gnu --timeout=864000 --max-silent-time=864000
>> The following 1 machine will be deployed:
>>   guix-x86
>>
>> guix deploy: deploying to guix-x86...
>> guix deploy: warning: <machine-ssh-configuration> without a 'host-key' is deprecated
>> substitute: looking for substitutes on 'https://substitutes.asahi-guix.org'... 100.0%
>> substitute: looking for substitutes on 'https://substitutes.nonguix.org'... 100.0%
>> substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 100.0%
>> substitute: looking for substitutes on 'https://ci.guix.gnu.org'... 100.0%
>> The following derivations will be built:
>>   /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv
>>   /gnu/store/8js0zmi3c2zg7ks3qnpiwsckam37vi67-guile-3.0.9.drv
>>
>> building /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv...
>> ```
>>
>> And it always "hangs" there. I haven't much investigated this yet. Just
>> a small update.
>>
>
> You could try `guix build
> /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv` to see
> what it does and where it hangs.
>
> Also try `--system=x86_64-linux`, it should be fast.
>
>>> I don't see a "system" field in the machine or operating system
>>> record. So I'm not sure if we have a way to infer that yet.
>>>
>>> Would it make sense to add such a field and chose the target
>>> architecture per machine?
>>>
>
> This totally makes sense to me and is the correct way. However I wonder
> if both the `system` and the `target` fields should be added, so that
> the user could choose either native or cross build. From my experience
> "native" build (as provided by qemu) is much faster. I'll try running
> a cross build tomorrow, but it is painfully slow to build the toolchain
> on my machine:
>
>
> --8<---------------cut here---------------start------------->8---
> The following 1 machine will be deployed:
>   guix-arm
>
> guix deploy: deploying to guix-arm, system=x86_64-linux, target=aarch64-linux-gnu...
> guix deploy: warning: <machine-ssh-configuration> without a 'host-key' is deprecated
> substitute: looking for substitutes on 'https://substitutes.nonguix.org'... 100.0%
> substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 100.0%
> substitute: looking for substitutes on 'https://ci.guix.gnu.org'... 100.0%
> The following derivations will be built:
>   /gnu/store/gxr8v1yisdiyndka0abxrc0xzrra66sv-binutils-cross-aarch64-linux-gnu-2.41.drv
>   /gnu/store/lch3711iiczn6smxsr7r3sj991p8avwv-ld-wrapper-aarch64-linux-gnu-0.drv
>   /gnu/store/zmsnlbyml0vmphfdxyxw4ps25bgrwz92-gcc-cross-sans-libc-aarch64-linux-gnu-14.2.0.drv
>   /gnu/store/57jnlmvqlvk6jkyvqcnrk4psffhmak91-linux-libre-headers-cross-aarch64-linux-gnu-5.15.49.drv
>   /gnu/store/b4f1my595ggl7d5qn46vr6qllwx7g49z-glibc-cross-aarch64-linux-gnu-2.39.drv
>   /gnu/store/sl5vfnwdarghf9ypbspq1bdlamnz3j2a-gcc-cross-aarch64-linux-gnu-14.2.0.drv
>   /gnu/store/3vp8a7mz1576xbk278k9b73nx2zqmzlw-libffi-3.4.4.drv
>   /gnu/store/y3hqwsbc8rb2g1mac8c9vsdmaacf20xm-libatomic-ops-7.6.12.drv
>   /gnu/store/bd09d178ni5sp9db62w869c6m7d3sh6v-libgc-8.2.4.drv
>   /gnu/store/cs7mzhrypgdad8v0v29arafc8brl7ynd-bash-minimal-5.1.16.drv
>   /gnu/store/np51g0ak713az6shj6sv9j3wkq4cjvjx-libunistring-1.1.drv
>   /gnu/store/rbkb4ig158h9gblbrah5nx5annvfpb4q-libxcrypt-4.4.36.drv
>   /gnu/store/lfmamfv5vx690l9n6a1ixbbk6kzw3gsr-guile-3.0.9.drv
> --8<---------------cut here---------------end--------------->8---

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmfdIVcfHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmSLpB/4hPNlfaiK/U7qT
GRiG7eLym72bK6guh8Clp8alFIa5Nv+BbWlSdOEsOPjp6G7r0d94Jisb6i0IxONP
THhltUAp+SfdqD5OZC4Rl0FAlhpf5Ti3q4Ebf9PR5DvjwJq+LTAjKy4Az5zSwKu0
d/e10gjEfpKcenTAB3yn8FaevF5Bxz8rC7OsQxhovG+QiSqHgIlKnn+KJfd6WZXm
N3Z3YAGvXCgQs81M0wFx4qPtqBsvma9z1wW849Z5ElUKVLbDnMybz7Qqhksnv7GC
Ml44T6iXGYg2UFM/1M1hYbcqlsIlfRrlQ+6TU76GCftuesFT+YRP9ew3+e5IUv8J
s3OeWYz2
=PeU/
-----END PGP SIGNATURE-----
--=-=-=--




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

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


Received: (at 77033) by debbugs.gnu.org; 21 Mar 2025 07:51:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 21 03:51:56 2025
Received: from localhost ([127.0.0.1]:34643 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tvXAY-0000sN-Vn
	for submit <at> debbugs.gnu.org; Fri, 21 Mar 2025 03:51:56 -0400
Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]:47353)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <sarg@HIDDEN>) id 1tvXAW-0000rI-Jz
 for 77033 <at> debbugs.gnu.org; Fri, 21 Mar 2025 03:51:53 -0400
Received: by mail-ej1-x62c.google.com with SMTP id
 a640c23a62f3a-aaeec07b705so268618366b.2
 for <77033 <at> debbugs.gnu.org>; Fri, 21 Mar 2025 00:51:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=sarg.org.ru; s=google; t=1742543506; x=1743148306; darn=debbugs.gnu.org;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=SOSuJXjSEbqVN2BxWqGmkdR9Fmbrtrw9j8TkayzXBTk=;
 b=JOSUDKunvuivECRwcWX3cfzPMB/PkmWYkB7a4AtF5dQwt+5BwHoJeDB7LpZ2RPlcP/
 SGubEdZ2j6dqJBnOxZlok4UcPEY9jyRHvdywDsMbP3wDXe3oDopRVxuzDEhG+DTKk1op
 ufES3AdE2XX5v6MjtpDRUgeqlxAe6sLrxe1ITZVfNxeHMyH3rOUGdyq3yYGm/Y6D9af1
 haOJAPfrRVgSJk/7Y5sduOiTb3gzM+GR4rSSo0zN9JvDIGJRUq2GoNAG4een0RRFbU7y
 w/TPh+yRwQgqV596LweQ6izK8oHKl4FHoMKcNcRiLSwaYh0ERNvBaKQQqJ7NSHSlYwo3
 43aA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742543506; x=1743148306;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=SOSuJXjSEbqVN2BxWqGmkdR9Fmbrtrw9j8TkayzXBTk=;
 b=TVlAWD3K7QFR99SeYJh5hhryG5y1Jmr6Yi6F18s0poydt1Q0/L+/ed5Q6VmQi9yD9J
 IBizPUdBnA1I1OIkC0govokDYLmP62Q7XZCOREVqlhFGryw9bku6C+2/0yP4vLQIERFI
 /9y1Y4Gz5p65vm252OlNaqi9vIsGODM8Y2RDxQbbwXDVQLinzg7sn4I2EW5+qkevOTxI
 e1AYYGbNSGWYLbAo2dPG/DmjO4YuU2vp9a99PDIUtstUcgjtmHJ0yIfMKzcYh9Woxwn8
 9Cie4SLDoVTwGn5iNCrIOUpKpj7Z2GJ0UOgNHJ7y0j+e8kcNPnkN0YBhixgBFz4mr47i
 Bfmw==
X-Forwarded-Encrypted: i=1;
 AJvYcCUXMHy4WN+i3UPEVeNCDUWqFGUBksuIkUqElXvTsTzSwaaMYVRz8CnDZza9sEbPCd22D9UUWQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yz3VSokLD3rW+rMoa74RW1y7uVnCbhJEViV4NeJAJSda7gHTGFd
 IjYvK3d9vKj+h324/P0xsbndQY52QFcFMEBXoBs5BGVuzci3xurYs8ixiixelUk=
X-Gm-Gg: ASbGncvadyMlcf3rLfIEgoAVwkLiwc7QsRkM0Z8JlJ8diLAr0R3vbEn05F0aIMglIJ4
 oBoRWQp0ZeWM9SIUAmypOg93kQ99jm99gsczmtPEF8K1WjSHBtpLSNklKNFls0IRoVBOf95XBHR
 Wv2Xy1SQKKVhpXDpN7wFj4E76sA8VcFzSTd+cPC9fs7SVYBlAKuq0UFoJKj+Mz2UJsI6Yt4Cqvj
 uZgbPIe+xx+udeg40re88PWqS9Z0SKdOeOf3Z9NQ/AvBmwCsDcGxukXtu/ncfs5FHiCO1gVsCwo
 yKHJhzV78ydc3N2Hx55Yixk9jz9oEQHoyzRHSK46
X-Google-Smtp-Source: AGHT+IGrRpqGsx1ygCMZmuphmabLAwnjMSmfDzJQ7zzz89PoH8MXQMaq6mI1cUP+bHdPl6+L3GOCTw==
X-Received: by 2002:a17:907:d84c:b0:ac3:4226:d40 with SMTP id
 a640c23a62f3a-ac3f20d7668mr230591666b.12.1742543506205; 
 Fri, 21 Mar 2025 00:51:46 -0700 (PDT)
Received: from thinkpad ([2a02:2454:a0a5:2400:a64e:31ff:fe38:fd6c])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-ac3efb51cebsm102356666b.107.2025.03.21.00.51.45
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 21 Mar 2025 00:51:45 -0700 (PDT)
From: Sergey Trofimov <sarg@HIDDEN>
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <87cyebm8s4.fsf@HIDDEN> (Maxim Cournoyer's message of "Fri, 21
 Mar 2025 11:12:27 +0900")
References: <87bju1yzfq.fsf@HIDDEN>
 <8634fbtvhk.fsf@HIDDEN> <874izrwg6a.fsf@HIDDEN>
 <87plicnprz.fsf@HIDDEN> <87iko3u8av.fsf@HIDDEN>
 <87cyebm8s4.fsf@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 30.0.92
Date: Fri, 21 Mar 2025 08:51:44 +0100
Message-ID: <87r02qrfcf.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, Roman Scherer <roman.scherer@HIDDEN>,
 77033 <at> debbugs.gnu.org
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.3 (/)

Hi Maxim,

Maxim Cournoyer <maxim.cournoyer@HIDDEN> writes:

> Hi Sergey,
>
> Sergey Trofimov <sarg@HIDDEN> writes:
>
> [...]
>
>>> Perhaps 'guix deploy' could have a '--cross-build' option, or the record
>>> could have a 'cross-build?' field, or both, with the CLI taking
>>> precedence over the later, and the target type would be inferred from
>>> the system via platform-system->target?
>>>
>>
>> Consider such case:
>>
>> deployer = x86_64, (aarch64 via binfmt)
>> builder1 = x86_64, (aarch64 via binfmt)
>> builder2 = aarch64, (x86_64 via binfmt)
>> remote1 = x86_64
>> remote2 = aarch64
>>
>> The user intends to run `guix deploy all-remotes.scm` on `deployer` to
>> deploy both `remote1` and `remote2`.
>>
>> There are many ways how to build the derivations - deployer and builders
>> could all build native/emulated/cross, remotes could build for
>> themselves (`build-locally?` to `#f`). I am not sure to what extent this
>> should be configurable, however here are a couple things I'd change:
>> - add `platform` to `machine` record
>> - remove `system` from `machine-ssh-configuration`
>> - remove `build-locally?` from `machine-ssh-configuration`
>> - add `build-options` to `machine`
>>   - `build-host` = `local|offload|remote`
>>   - `build-type` = `native|cross`
>
> This seems reasonable; I suppose 'remote' means the machine being
> deployed to?
>

That's right.

> `build-type` having just two values, it could be more simply expressed
> as a boolean (e.g.; cross-build?)
>

It's a matter of preference. Enums are extensible, bools are not.

>> Additionally `guix-daemon` should know all the systems the host
>> supports. Currently it knows only the native one (`--system` parameter).
>
> I've never used such feature, so I wouldn't know of how useful that
> would be :-).  Perhaps useful if the machine is to be used exclusively
> for cross-compiling by default?  You could also set that via 'export
> GUIX_BUILD_OPTIONS=--target=$gnu-triplet', no?

You've mentioned it in the previous mail:

> In my experience, assuming a powerful x86_64 workstation,
> cross-compilation > native-compilation (on lower spec ARM machine) >
> emulated native compilation (QEMU).

Cross compilation should be preferred when deploying from a powerful
machine to a smallest hetzner's ARM VM. The host is not used exclusively
for cross-building in such case.




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

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


Received: (at 77033) by debbugs.gnu.org; 21 Mar 2025 02:12:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 20 22:12:59 2025
Received: from localhost ([127.0.0.1]:60269 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tvRsV-0004AM-93
	for submit <at> debbugs.gnu.org; Thu, 20 Mar 2025 22:12:59 -0400
Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:58564)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1tvRsO-00048O-Al
 for 77033 <at> debbugs.gnu.org; Thu, 20 Mar 2025 22:12:52 -0400
Received: by mail-pl1-x636.google.com with SMTP id
 d9443c01a7336-2264aefc45dso41337095ad.0
 for <77033 <at> debbugs.gnu.org>; Thu, 20 Mar 2025 19:12:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1742523162; x=1743127962; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=C/H9n1AFI1Dn/umrSiic6qV01A/dVBYQ8z3JN3gDdZc=;
 b=KDFLYeSHA+TwctdOrs9X1mrLwvj9rJgwzqkkKrFWD1KIG2FQ9nzssuq1hCVtCye06c
 ETSiqDBdM0M+2UFF2k3i1dyl1216dw4nwwZsKqSpZ/CPaL1FgRjA9AkXtbkFC00eeKHm
 11+Upj5Wcg+nrfabnzDHx+Cs/EnSgSWWSbPkm61/S57pOMnlIBLB5DDKctri6KOU/PQm
 8ZRcQzLEULe1z6ajc46dCP728iTLL10tMzLu6B47A3IKHiiezosy9kayFmf7A8bnzXNW
 y5QsSb0k3H6ufJXrsxpcs34TXITw1m25lGU6Yc/+qBpXRKkrxvE6ABXs1g4D7lbIHDcr
 DOXA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742523162; x=1743127962;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=C/H9n1AFI1Dn/umrSiic6qV01A/dVBYQ8z3JN3gDdZc=;
 b=MxnlDmwULujO7WDCGiKgl+O7WwdImzLRFzgoNEDIeKtsCX2qcCz92YCxW3fynkb7Uh
 shUm7yIwCaUkG4IXsLl9p68y6nOuIQCmyrObeBCR3ss+ZPOasNV63ICDrXjBr3gbpF3+
 ckledfHfrB5wk+lNnccC26fF/G33SMJ28jj1Z+cUMvrxWlvD26P82Q9X5aKgwYoNqkon
 2ZGPFW1XuzRhkHa6FPDV5z8RkdwPbAjOmhkC4cfZJueiMB1Q60PQceTFdnF0DjReUERW
 gmpaG/pvd2N1vOOY1a+p5xpFKa3rZwfQgdLmbuWMLo51TtenZquMibp9UQK74by9uFvT
 YcEw==
X-Forwarded-Encrypted: i=1;
 AJvYcCV7N20FLsl8PdYfrRMWHbUvWzu2ZU1ck+w1HlRQTH01WEBYjP/QdRYf5xxVyzB1DnwmJ/oVNg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwXvPWJbtBpYvxGqZzRFow+mK5qy3wHq2darcypku39ks1beyPF
 z8vCzaTCg8ouVKCnBnuPOCBCwnWhLVBg5/bdKngteQjLlXvaSNaAduprwMG6GuQ=
X-Gm-Gg: ASbGncv9dtpaTpZVFPsW6TzbygcRqhwzVq3OveEw5e6ZG00SftobOWTfRh/ZSklsi/Y
 LrhsDOfVf7yq1+ERthaZf8wqO+GXv3iY+zMwkqT2bTgy4TnSeNg8dsjpxWK1wDsHYiA2D37hb5u
 9gUTl+3HS7c1vI7UcGmLI7q1GIJ4Sx911pkXM2kEHXhmoc1lGBNClVAh+Xo2AgXbhUQCBibrnAX
 2utsFG0EhHWXlwH4RgSO4cEYAh89Sa63jTlznc1nbCkp63yPaKCt0ld18vz64QsVaN0HQmB8ppq
 IU4Ws3gPcNoN4m+2cfZZ4iPFdH9Qvm1/1q7i+xAZEs0=
X-Google-Smtp-Source: AGHT+IEI9C9BvZmBWJmf83EW9UiBPooQx7h/r5Jeo9uRA3J8NLqqHrlTWSeGTvh2K6GOhpkAx0+xmA==
X-Received: by 2002:a17:902:e550:b0:223:faf3:b9c2 with SMTP id
 d9443c01a7336-22780d8a9f7mr20678495ad.27.1742523161848; 
 Thu, 20 Mar 2025 19:12:41 -0700 (PDT)
Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-227811daa38sm5140615ad.195.2025.03.20.19.12.40
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 20 Mar 2025 19:12:41 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Sergey Trofimov <sarg@HIDDEN>
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <87iko3u8av.fsf@HIDDEN> (Sergey Trofimov's message of "Thu, 
 20 Mar 2025 14:43:20 +0100")
References: <87bju1yzfq.fsf@HIDDEN>
 <8634fbtvhk.fsf@HIDDEN> <874izrwg6a.fsf@HIDDEN>
 <87plicnprz.fsf@HIDDEN> <87iko3u8av.fsf@HIDDEN>
Date: Fri, 21 Mar 2025 11:12:27 +0900
Message-ID: <87cyebm8s4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, Roman Scherer <roman.scherer@HIDDEN>,
 77033 <at> debbugs.gnu.org
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.3 (/)

Hi Sergey,

Sergey Trofimov <sarg@HIDDEN> writes:

[...]

>> Perhaps 'guix deploy' could have a '--cross-build' option, or the record
>> could have a 'cross-build?' field, or both, with the CLI taking
>> precedence over the later, and the target type would be inferred from
>> the system via platform-system->target?
>>
>
> Consider such case:
>
> deployer = x86_64, (aarch64 via binfmt)
> builder1 = x86_64, (aarch64 via binfmt)
> builder2 = aarch64, (x86_64 via binfmt)
> remote1 = x86_64
> remote2 = aarch64
>
> The user intends to run `guix deploy all-remotes.scm` on `deployer` to
> deploy both `remote1` and `remote2`.
>
> There are many ways how to build the derivations - deployer and builders
> could all build native/emulated/cross, remotes could build for
> themselves (`build-locally?` to `#f`). I am not sure to what extent this
> should be configurable, however here are a couple things I'd change:
> - add `platform` to `machine` record
> - remove `system` from `machine-ssh-configuration`
> - remove `build-locally?` from `machine-ssh-configuration`
> - add `build-options` to `machine`
>   - `build-host` = `local|offload|remote`
>   - `build-type` = `native|cross`

This seems reasonable; I suppose 'remote' means the machine being
deployed to?

`build-type` having just two values, it could be more simply expressed
as a boolean (e.g.; cross-build?)

> Additionally `guix-daemon` should know all the systems the host
> supports. Currently it knows only the native one (`--system` parameter).

I've never used such feature, so I wouldn't know of how useful that
would be :-).  Perhaps useful if the machine is to be used exclusively
for cross-compiling by default?  You could also set that via 'export
GUIX_BUILD_OPTIONS=--target=$gnu-triplet', no?

-- 
Thanks,
Maxim




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

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


Received: (at 77033) by debbugs.gnu.org; 20 Mar 2025 13:43:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 20 09:43:34 2025
Received: from localhost ([127.0.0.1]:56163 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tvGBK-00071D-BS
	for submit <at> debbugs.gnu.org; Thu, 20 Mar 2025 09:43:34 -0400
Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:45398)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <sarg@HIDDEN>) id 1tvGBE-00070u-Ti
 for 77033 <at> debbugs.gnu.org; Thu, 20 Mar 2025 09:43:32 -0400
Received: by mail-ed1-x52b.google.com with SMTP id
 4fb4d7f45d1cf-5e5e63162a0so1304106a12.3
 for <77033 <at> debbugs.gnu.org>; Thu, 20 Mar 2025 06:43:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=sarg.org.ru; s=google; t=1742478202; x=1743083002; darn=debbugs.gnu.org;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=fOPweFncsOI5cbPfYbPPw/ReQrXqf2MVajwzw0z+NqI=;
 b=YFYvj3qbfQW18sxwKlHFCOxVOZoEx3HXRWPrz8A4fI2wLYPg1d0PE3Kjmk4Q8tkJEk
 Ud6YcqeCaFMnCKTGrq7Dyx4VlJMcy/64SkqfY+FO7xeGrpuDAGhg8/LURGwgWbmknJEu
 f1K0iQd9kbbpNIeZmg+1uPA1/+ZeHDLNmTPcBSnm1sRQPCIJ1KVXxg18KT/bmqci1Z90
 Qj34Nv47bBLHq+E1McdDYQuOX7ufkiku3Ip+2H+V408/8gNnZQUVLFNLcsvXxs61a+kg
 M5UXJ5v+Krp8hoMHMX9QU1nQ3/GEt5U1oNrGq1zR9XEeQ+EZ391dvqYb3wgPAPeHFfWd
 L1uA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742478202; x=1743083002;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=fOPweFncsOI5cbPfYbPPw/ReQrXqf2MVajwzw0z+NqI=;
 b=XpSHmP83P4g17bnBYSLJpKCBL7y3oRtfaRB+GQZuAEs8bS9PbWNlmpk7csxlywm3mr
 yrNx8on7HiQvCn5rp55p8NSTksBi26oqTGPtskJbLa3quPqh609sLDOosL6WJLmR9DV7
 C69o1xvB7bAfftmDnylujAZJpqGySkAF4J5aLdWeqNXtsT/XTRtcwQQM/RWjO6FbX6hW
 +63FkkJEJWK35Mmqyyy9/uZWg2/uM3FttUB6KmE7YgUO/7IS7t3/9e4hw0jZbrHU93JF
 LQmXGjNO279uZCO8GvxEGTkcmerN43I9lWQIC9AZ1hwBLxazLaxhSmwgQAWPqXx5uKqU
 lWuw==
X-Forwarded-Encrypted: i=1;
 AJvYcCUDC1RLAUmhbr1+yV/F/v4T/ABnX1QHC69OCTf/7gymTLdF+tg5Zuz/EhL0moyufV6DRY56+Q==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyNz24rGSpPZTbCSZpn1ZhgROQiydNuzIKt4yaIjxfhYapUDAbA
 bQ6qUTt47TiqQCdcBKT/O3LiCXDTDgYH/0vHh/Qx+k0qDdRXPZPW8kSLvWQLLKM=
X-Gm-Gg: ASbGnct5vKBIRJkBhhd0Zy5I/xVT/pEPGf6zUwy+j5Z9jewy4IOpZ73LPX76gsve/iH
 P29R6wR9zGVyOReAOAfyFU46warhwFq6Ceek1eH0QWcNWaYCXPQM405S4ao/Fc4fGTH5YwXuoCy
 Hyl2u9GAfbJkN1QhVqBF0MNG2ADbL9oPbBVMC9IAF8UFQErSkkJcGrWzjFZ/ZnTMp5b2B7vAif5
 6VNlYhlFyzwpMQ5I7gXvYi01tdisn6Gc8dCgkUq5QC391T5sOXB9/ZDjz3zplA3BuD9jlCng1cG
 1jK1C4T3zbmVllSOdNg+KC9gxKhIPyxiFpdG+48c
X-Google-Smtp-Source: AGHT+IHeYP/rdlwTgI6YWuRX1CR3giKcnYSuX2GXYohhrygKXArADmAj+Q7AFohJwaNEIf51T6BvQQ==
X-Received: by 2002:a05:6402:350b:b0:5e5:c5f5:f51 with SMTP id
 4fb4d7f45d1cf-5eb80f704a5mr5657115a12.23.1742478202174; 
 Thu, 20 Mar 2025 06:43:22 -0700 (PDT)
Received: from thinkpad ([2a02:2454:a0a5:2400:a64e:31ff:fe38:fd6c])
 by smtp.gmail.com with ESMTPSA id
 4fb4d7f45d1cf-5e81692e69csm10393490a12.3.2025.03.20.06.43.21
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 20 Mar 2025 06:43:21 -0700 (PDT)
From: Sergey Trofimov <sarg@HIDDEN>
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <87plicnprz.fsf@HIDDEN> (Maxim Cournoyer's message of "Thu, 20
 Mar 2025 16:07:44 +0900")
References: <87bju1yzfq.fsf@HIDDEN>
 <8634fbtvhk.fsf@HIDDEN> <874izrwg6a.fsf@HIDDEN>
 <87plicnprz.fsf@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 30.0.92
Date: Thu, 20 Mar 2025 14:43:20 +0100
Message-ID: <87iko3u8av.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, Roman Scherer <roman.scherer@HIDDEN>,
 77033 <at> debbugs.gnu.org
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.3 (/)

Hi Maxim,

Maxim Cournoyer <maxim.cournoyer@HIDDEN> writes:

> Hi Sergey, Roman,
>
> Sergey Trofimov <sarg@HIDDEN> writes:
>
> [...]
>
>>>> I don't see a "system" field in the machine or operating system
>>>> record. So I'm not sure if we have a way to infer that yet.
>>>>
>>>> Would it make sense to add such a field and chose the target
>>>> architecture per machine?
>>>>
>>
>> This totally makes sense to me and is the correct way. However I wonder
>> if both the `system` and the `target` fields should be added, so that
>> the user could choose either native or cross build.
>
> We already have platform-system->target and platform-target->system, so
> I assume having one or the other could be enough?.  Looking at
> machine-ssh-configuration, I also see we already have a 'system' field.
>
>
> Perhaps 'guix deploy' could have a '--cross-build' option, or the record
> could have a 'cross-build?' field, or both, with the CLI taking
> precedence over the later, and the target type would be inferred from
> the system via platform-system->target?
>

Consider such case:

deployer = x86_64, (aarch64 via binfmt)
builder1 = x86_64, (aarch64 via binfmt)
builder2 = aarch64, (x86_64 via binfmt)
remote1 = x86_64
remote2 = aarch64

The user intends to run `guix deploy all-remotes.scm` on `deployer` to
deploy both `remote1` and `remote2`.

There are many ways how to build the derivations - deployer and builders
could all build native/emulated/cross, remotes could build for
themselves (`build-locally?` to `#f`). I am not sure to what extent this
should be configurable, however here are a couple things I'd change:
- add `platform` to `machine` record
- remove `system` from `machine-ssh-configuration`
- remove `build-locally?` from `machine-ssh-configuration`
- add `build-options` to `machine`
  - `build-host` = `local|offload|remote`
  - `build-type` = `native|cross`

Additionally `guix-daemon` should know all the systems the host
supports. Currently it knows only the native one (`--system` parameter).

>
> In my experience, assuming a powerful x86_64 workstation,
> cross-compilation > native-compilation (on lower spec ARM machine) >
> emulated native compilation (QEMU).
>

I'm on a beaten thinkpad (i5-3320m) and it takes ages to compile the
cross toolchain. It turned out that `(build-locally? #f)` is the fastest
way to deploy an ARM server.




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

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


Received: (at 77033) by debbugs.gnu.org; 20 Mar 2025 07:08:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 20 03:08:09 2025
Received: from localhost ([127.0.0.1]:55007 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tvA0f-0002Zi-1c
	for submit <at> debbugs.gnu.org; Thu, 20 Mar 2025 03:08:09 -0400
Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:51678)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1tvA0c-0002ZA-6t
 for 77033 <at> debbugs.gnu.org; Thu, 20 Mar 2025 03:08:07 -0400
Received: by mail-pl1-x62b.google.com with SMTP id
 d9443c01a7336-2260c91576aso5590955ad.3
 for <77033 <at> debbugs.gnu.org>; Thu, 20 Mar 2025 00:08:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1742454480; x=1743059280; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=gfDDKTTuHH0pps7Rcd/1fg9B8Qlpz+AeQuK5mik5eqc=;
 b=gs1NIlcDOa27UFg+CbjVT0ldMBSrwStjNmXI67l6ZZP9N+upVY90YKgWi6sEu4IPXj
 LXntpYgn/yBbmV+j2gomO07zClBlYsrP1+O4wYJSA0cJRd8IgXDPMXv+EnsTahbL1Lk5
 Aep5/UgFDhLjLjEtPltbgybuqBXBS9x1lYbZvpi7v1xnfCFfUTqH1kAy8iMNXKpzgK+C
 W/RO2eHngg6yaVf2tTpMgqfeDvLCnFxFisQuh3M1XXLh5OL8gE9LGln83uDccqUaEMfk
 e6fBmPagK7KuBGCPoqJWDYGN0RE/J9orc4vhwqkES4FARVvaOUz8D+X/PVC/yAQeB3Jg
 kRbg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742454480; x=1743059280;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=gfDDKTTuHH0pps7Rcd/1fg9B8Qlpz+AeQuK5mik5eqc=;
 b=nIRVAMqJzHXEnxktlFcuOyorKW/XkDHsYA1lYBJswtmNPxJq7LrrE93yCodC83jML0
 OSjLd3vumzWJF8SUgIviUGjV3HsGV15pLfYZhpkFwinvfIkNCXUl7QcXTQYQq3DDczpX
 QXIrp5bXJ3P7SeIbPdrUsLaRpcAX168GwmET4PmTq1PClCmA3t2Wqru9ZGzWhtxkuwy0
 wb7h3kxlizM4JKgjNyuDp3iBSf92U3329o7Spy8ODJDCw+vjU9Zf2UPwNNMRELAmNacD
 26FDf9O/1NaZddwcpkwY2FBJWpO/IEi9ie7v9rXJ7e/SqKQTMb7u30xGS7ltNFz0dSIo
 DXlQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCU8eXA7g88lIpVnL/4W1Dr07c2Yl5vOQMaOJ547oFtjlzrAcdkrvbc9l9nXZ+5s4hOFj7lF9g==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yxh5BeF1Kxr3uMIK84nWvvYtLvWGXlLcCceW9xnkgpJbvM6r9Pm
 SG1adDARUB70WZmlcNg5HdwfyDcFQ0OrJ9eSKALmCnBfxvhBsGM0
X-Gm-Gg: ASbGncu+8ILYAtYW1EEFvRWbfT35sze6QmOoRe/EmBU2LaM8+ASVRZoxcOnJrVJdww4
 QLCTtmTrMW1ZIXfwIwjMAc3uSTJK7VqlZY5vJDuvZLacKSDrlXcAdi5Jy0RMoy5P7pDZew+Ovmi
 7/D0fwxfeWFn1FNhNFSAjivv18I2vZwLRtwaMy/V5YQxhPn0jD1Gpznx/6AcwrXVggJ8BgF4aYm
 vckkero1wUL+LT7ij+PBg0mrNirm2vHTLliQdJ3JT3Wr8KaLr3EGvEG4OaP6Rx89A1qFnCB6Eyr
 kCWCR1JCgpBetIEhsrjymbeZ+AfIcGP6UIcp5hMS7sA=
X-Google-Smtp-Source: AGHT+IFr8MlGrjvVEyyWEO7GtKQNRKYbEGEkW9J+vG1nqUjHsQnOMsVU5B/yAEGdZEq/XR+UWjTdjw==
X-Received: by 2002:a17:903:41c8:b0:220:d909:1734 with SMTP id
 d9443c01a7336-22649a2ee21mr89236755ad.14.1742454480048; 
 Thu, 20 Mar 2025 00:08:00 -0700 (PDT)
Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-225c6bd4b30sm127329415ad.235.2025.03.20.00.07.58
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 20 Mar 2025 00:07:59 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Sergey Trofimov <sarg@HIDDEN>
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <874izrwg6a.fsf@HIDDEN> (Sergey Trofimov's message of "Mon, 
 17 Mar 2025 21:33:33 +0100")
References: <87bju1yzfq.fsf@HIDDEN>
 <8634fbtvhk.fsf@HIDDEN> <874izrwg6a.fsf@HIDDEN>
Date: Thu, 20 Mar 2025 16:07:44 +0900
Message-ID: <87plicnprz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, Roman Scherer <roman.scherer@HIDDEN>,
 77033 <at> debbugs.gnu.org
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.3 (/)

Hi Sergey, Roman,

Sergey Trofimov <sarg@HIDDEN> writes:

[...]

>>> I don't see a "system" field in the machine or operating system
>>> record. So I'm not sure if we have a way to infer that yet.
>>>
>>> Would it make sense to add such a field and chose the target
>>> architecture per machine?
>>>
>
> This totally makes sense to me and is the correct way. However I wonder
> if both the `system` and the `target` fields should be added, so that
> the user could choose either native or cross build.

We already have platform-system->target and platform-target->system, so
I assume having one or the other could be enough?.  Looking at
machine-ssh-configuration, I also see we already have a 'system' field.

Perhaps 'guix deploy' could have a '--cross-build' option, or the record
could have a 'cross-build?' field, or both, with the CLI taking
precedence over the later, and the target type would be inferred from
the system via platform-system->target?

In my experience, assuming a powerful x86_64 workstation,
cross-compilation > native-compilation (on lower spec ARM machine) >
emulated native compilation (QEMU).

I hope I understood the context correctly :-).

-- 
Thanks,
Maxim




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

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


Received: (at 77033) by debbugs.gnu.org; 18 Mar 2025 20:57:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 18 16:57:45 2025
Received: from localhost ([127.0.0.1]:43530 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tue0M-0003QL-QP
	for submit <at> debbugs.gnu.org; Tue, 18 Mar 2025 16:57:45 -0400
Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]:57700)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <sarg@HIDDEN>) id 1tue0J-0003PC-Lc
 for 77033 <at> debbugs.gnu.org; Tue, 18 Mar 2025 16:57:40 -0400
Received: by mail-ej1-x635.google.com with SMTP id
 a640c23a62f3a-ac25520a289so1063913966b.3
 for <77033 <at> debbugs.gnu.org>; Tue, 18 Mar 2025 13:57:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=sarg.org.ru; s=google; t=1742331453; x=1742936253; darn=debbugs.gnu.org;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=ciHijTLr8/GUaBIfnUlipDS6ri0Gupe8Wd4EbOZdQ/A=;
 b=aeMcX4kCewpWjgSyVeUC62j0kYaRKtZZ63ajtWIwyMGkieDvZFjkOpTMTjbzW8ikNi
 oroVGqteIv6a94mbWAnCL+EaU1B59dZoHLfl2yNNw+R0icJ4abGjsehV1LYOIHCybQYM
 lkPAttRCFr96TBck0DmTUllewFbp9EJ7TpfSrcKFiSaYNDZ3LNw2AsWY+u+hXoTp1sfC
 J8w/AT82L0UBxEX9D+8kdf3NpMNynjsYwHkZgi/s2mQOHyfV/2qoXGA6cyQdlXWlYkGZ
 flmN7ODi5F7rT+KO2mBFUFbthDNv3NU77cvAYKwaCRRp1LmBXgkt33GAES79gcokmYPZ
 MpbQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742331453; x=1742936253;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=ciHijTLr8/GUaBIfnUlipDS6ri0Gupe8Wd4EbOZdQ/A=;
 b=rd/jxVM8PgrZkdcxKsVgVaqTZVHNDb5pqVkRl1p3tOfVFKAQqP3C4/nzg6nCjwdGos
 FBiiVxjS47FeFluk5F+tqEeLYn4K0CcGQRM8vv7fhLe0OYqLYNhowONEChXUVyWLhoH6
 HJIfRes7ERB3GSh6OYUpJffahl2tVyG6oO4l0Be3UHxnBRa47lGKmjbMtm6ufztUsFEc
 ij0DXC7vjvrtvb0yI8A1QU89+ZxEvOH7SPfLtfG6eD/i4KDno0XEJ/cIB7hyxPvkV8bO
 xiHfgn3OgoVzHAqSvWdfdth2DkBxTbnCPUK+6WfMk96Hdzn7hHgo2Y7v4yvBH50ytkZN
 UL+Q==
X-Gm-Message-State: AOJu0Ywdmak6fM7pcVxXKLBCKrYzvmMmGpobwEVjkr0SQ6zK0UnY8V8n
 qyH/8aC2xo9OpUpt428WKhHPEBzPwsCte3Zkdf0Qsn5Hli9Nd+7tFycnYvSjTeo=
X-Gm-Gg: ASbGncvy7atK1pMmY2ghvwcx8pFem+fyeOg1iZ0l6YojiBmgILpIG/Elnvc4ojLdv9P
 d4mwWeqtTJX78JpeKEc0ha7y/UrS+/2keK3kK6Z1wxKlTja8oGgaaIVFfRVuPYNPHTLQhTPGk9s
 e9aG4L/4PjXYWP2/p3v5tQrTvnSpPmuKbjviPLaK4xljmEX1aFtPfY9jSWaluc1/zW5JSvbvOoy
 j65u4o3kRGc4w34ovvGTG9UKMxycRO4hFOZIlIO2SMGN6InhsK/WMCUVUjbNueFLGqqlnYFQSmU
 3FaiyPiokix0WNJs7vyDXCdFxqqwiKttZ52NK2Bvog==
X-Google-Smtp-Source: AGHT+IHFu9e8FNNP2/IuZUV9I4EGPv4NhjoaV4VOVyhtsYw6gsMjOG3Vwyuud3OwSv5iEcm8/yYDkw==
X-Received: by 2002:a17:907:7e5e:b0:ac1:ddaa:2c03 with SMTP id
 a640c23a62f3a-ac3b73e0c7fmr16784666b.0.1742331452768; 
 Tue, 18 Mar 2025 13:57:32 -0700 (PDT)
Received: from thinkpad ([2a02:2454:a0a5:2400:a64e:31ff:fe38:fd6c])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-ac314858a8fsm886546766b.80.2025.03.18.13.57.31
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 18 Mar 2025 13:57:31 -0700 (PDT)
From: Sergey Trofimov <sarg@HIDDEN>
To: Roman Scherer <roman.scherer@HIDDEN>
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <87bju1yzfq.fsf@HIDDEN> (Roman Scherer's message of
 "Sun, 16 Mar 2025 12:42:17 +0100")
References: <87bju1yzfq.fsf@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 30.0.92
Date: Tue, 18 Mar 2025 21:57:30 +0100
Message-ID: <87frjays3p.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, 77033 <at> debbugs.gnu.org
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.3 (/)

Roman Scherer <roman.scherer@HIDDEN> writes:

> Hello Sergey,
>
> this looks good to me and is better than what we have now. I'm testing
> this right now and will report back when it went through ...
>

I think this patch is not necessary at all, your code already sets the
`system` field of `machine-ssh-configuration` to the value appropriate
to one returned by hetzner-api.

It looks to me that the bug is in incorrect parameterization, see the
following patch. I've been able to deploy using it (again
`build-locally?` set to #f as it takes too long otherwise). Please test
this one.

--8<---------------cut here---------------start------------->8---
From 988d192cfe4833761d0714aa8a53392c09dd5c9d Mon Sep 17 00:00:00 2001
Message-ID: <988d192cfe4833761d0714aa8a53392c09dd5c9d.1742331137.git.sarg@HIDDEN>
From: Sergey Trofimov <sarg@HIDDEN>
Subject: [PATCH] machine: ssh: Use monadic parameterize for monads.

* gnu/machine/ssh (deploy-managed-host): Use store-parameterize in
monadic context.

Change-Id: I6441a5dac856633f2c2a00b77f21a385bf3a9510
---
 gnu/machine/ssh.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm
index 73d5dc513e..0ce2860236 100644
--- a/gnu/machine/ssh.scm
+++ b/gnu/machine/ssh.scm
@@ -542,8 +542,8 @@ (define (deploy-managed-host machine)
                                         host
                                         (inferior-exception-arguments c))))
                               os))
-          (parameterize ((%current-system system)
-                         (%current-target-system #f))
+          (store-parameterize ((%current-system system)
+                               (%current-target-system #f))
             (with-roll-back #t
               (mbegin %store-monad
                 (upgrade-shepherd-services (eval/error-handling c

base-commit: df799a61ef73451e587cb81942c7bfcbbade9e7e
--
2.48.1

--8<---------------cut here---------------end--------------->8---




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

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


Received: (at 77033) by debbugs.gnu.org; 17 Mar 2025 20:33:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 17 16:33:49 2025
Received: from localhost ([127.0.0.1]:32940 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tuH9f-00047r-Sd
	for submit <at> debbugs.gnu.org; Mon, 17 Mar 2025 16:33:49 -0400
Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:55584)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <sarg@HIDDEN>) id 1tuH9b-000472-GM
 for 77033 <at> debbugs.gnu.org; Mon, 17 Mar 2025 16:33:45 -0400
Received: by mail-ed1-x535.google.com with SMTP id
 4fb4d7f45d1cf-5e5491eb379so7353690a12.3
 for <77033 <at> debbugs.gnu.org>; Mon, 17 Mar 2025 13:33:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=sarg.org.ru; s=google; t=1742243617; x=1742848417; darn=debbugs.gnu.org;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=vEfUYaYUF0EaT3pU2ATg2yrH6MVDj91TilutOnN+7RE=;
 b=DnMFvu06xhaBpUDW0UnUa05clOnqMLsnLEMnTCDWp3HcIo1L+vaqZuFCL5VYEHSURy
 pJ6jsjMG5qZqiOydVsfDT3+4+8jlexE805+H+On1NmRf0TlxDVou798sVBqakOmMfoNH
 10fSwA7z7x77E9CEjJUl0dWJ2yXPqWSLCYC2/FI709AAZwzadxUGZYcFrY3LYW5rocsu
 H23yF3eeIXtJn6HYbGsaO4KqWgb812S8cA2YzJSfj1G2NbGCAwWVLUEoItpDmUTgFgOB
 Y0UvKk2Le4SKKAWzBaOZVM7V6utxxlATKt1RjQfvvz8rjwFBG5hnHvOUD3rExMUMnp1R
 +PNw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742243617; x=1742848417;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=vEfUYaYUF0EaT3pU2ATg2yrH6MVDj91TilutOnN+7RE=;
 b=sfV9ZuR0zBU9zezNmf12Y8hqKjaYIvSLnPtOZ2KieQ1HugX8VXFX0egN7qwaxyC9Ni
 b7BIeXor5taPB0IPmawdQ6yq8kDbWAzfLjshpFWTDQ+xuGNdDP+72UOqGN+sntAXkU+R
 j3BEgPDEGdivixW5qhgD8l2IfWeHNtKIhG+OxyXF4xsb48pztMM59AwRJeuZI609Ctfr
 BFKUBlQg6PVqcsU1hb2IZbkMybwZ9hh9nyFOf35I6cJPdm/fkyq6mL+03q/W4TocYpAX
 1uynmwJIBSksnOrMScDHnhupbLMe+UUbmaVhfogJ6/WMVBjd3ajbD1dDIZpFX6QGODZr
 Fbrg==
X-Gm-Message-State: AOJu0Yz1MEGn4GBJM1iTr6RhWeLsubevOv5zJmjeCmzo4zrnwRcp1CsH
 BmsHx3gqqvwlD/zv3YAZA8fsw1ArE3iFPPS/ddVixZrDoXFgQFF3QLPM+DINq7PUyy90d0ZT41T
 up5zCFA==
X-Gm-Gg: ASbGncus/J5rVgm4Cat1iWbHDWmIWoP3fhcAUAV/LKKyJYieFjiY/nB0kWX+YgRiMw2
 TMtzPxa29MMJzRFHNdrb7ImS3nVcLUBMEXSKQf18ByJRK4/kjg6/rMrLo/ZaHs8wbALMAAr7Leg
 UC56cEeOq71H0HBgjiyMeVzd/rtb8/qrDneiBxEO8DrE/h+MSMjVhNFYGEqY1csQXQWIJ6qcPDD
 XAIZRz9LEm1xh3MpKlFycz8hK5Lft+gNzR/gfyItrUodqYPFH0xtyi1A9ns+AkzjDiuAYGuEMQE
 0a+oagKDrYD23WAEYaQC9Md0jmILSIqYsFSC/JVSB6XNhkBY5j6F
X-Google-Smtp-Source: AGHT+IGXhXxPQ+kO6DKGwRuEw+ymeiPcM+9ZiGFtaOwDgnQsGV2bLfXNjfNSRWGx3w/yp/SSKCXJQw==
X-Received: by 2002:a17:907:6ea3:b0:ac1:e2e0:f8d6 with SMTP id
 a640c23a62f3a-ac33018aef3mr1291329766b.17.1742243616793; 
 Mon, 17 Mar 2025 13:33:36 -0700 (PDT)
Received: from thinkpad ([2a02:2454:a0a5:2400:a64e:31ff:fe38:fd6c])
 by smtp.gmail.com with ESMTPSA id
 4fb4d7f45d1cf-5e8169bdc5esm6535824a12.48.2025.03.17.13.33.34
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 17 Mar 2025 13:33:35 -0700 (PDT)
From: Sergey Trofimov <sarg@HIDDEN>
To: Roman Scherer <roman.scherer@HIDDEN>
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <8634fbtvhk.fsf@HIDDEN> (Roman Scherer's message of
 "Mon, 17 Mar 2025 18:31:03 +0100")
References: <87bju1yzfq.fsf@HIDDEN> <8634fbtvhk.fsf@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 30.0.92
Date: Mon, 17 Mar 2025 21:33:33 +0100
Message-ID: <874izrwg6a.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, maxim.cournoyer@HIDDEN, 77033 <at> debbugs.gnu.org
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.3 (/)

Hi Roman,

Roman Scherer <roman.scherer@HIDDEN> writes:

> So, I tried building this machine on an aarch64 system with the qemu-bin
> service running now a couple of times ...
>
> ```
> (use-modules (gnu machine)
>              (gnu machine hetzner))
>
> (list (machine
>        (operating-system %hetzner-os-x86)
>        (environment hetzner-environment-type)
>        (configuration (hetzner-configuration
>                        (server-type "cx42")
>                        (ssh-key "/home/roman/workspace/guix/id_rsa")))))
> ```
>
> I used this command:
>
> ```
> [roman@m1 guix]$ ./pre-inst-env guix deploy hetzner-minimal.scm --no-offload --target=x86_64-linux-gnu --timeout=864000 --max-silent-time=864000
> The following 1 machine will be deployed:
>   guix-x86
>
> guix deploy: deploying to guix-x86...
> guix deploy: warning: <machine-ssh-configuration> without a 'host-key' is deprecated
> substitute: looking for substitutes on 'https://substitutes.asahi-guix.org'... 100.0%
> substitute: looking for substitutes on 'https://substitutes.nonguix.org'... 100.0%
> substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 100.0%
> substitute: looking for substitutes on 'https://ci.guix.gnu.org'... 100.0%
> The following derivations will be built:
>   /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv
>   /gnu/store/8js0zmi3c2zg7ks3qnpiwsckam37vi67-guile-3.0.9.drv
>
> building /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv...
> ```
>
> And it always "hangs" there. I haven't much investigated this yet. Just
> a small update.
>

You could try `guix build
/gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv` to see
what it does and where it hangs.

Also try `--system=x86_64-linux`, it should be fast.

>> I don't see a "system" field in the machine or operating system
>> record. So I'm not sure if we have a way to infer that yet.
>>
>> Would it make sense to add such a field and chose the target
>> architecture per machine?
>>

This totally makes sense to me and is the correct way. However I wonder
if both the `system` and the `target` fields should be added, so that
the user could choose either native or cross build. From my experience
"native" build (as provided by qemu) is much faster. I'll try running
a cross build tomorrow, but it is painfully slow to build the toolchain
on my machine:


--8<---------------cut here---------------start------------->8---
The following 1 machine will be deployed:
  guix-arm

guix deploy: deploying to guix-arm, system=x86_64-linux, target=aarch64-linux-gnu...
guix deploy: warning: <machine-ssh-configuration> without a 'host-key' is deprecated
substitute: looking for substitutes on 'https://substitutes.nonguix.org'... 100.0%
substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 100.0%
substitute: looking for substitutes on 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
  /gnu/store/gxr8v1yisdiyndka0abxrc0xzrra66sv-binutils-cross-aarch64-linux-gnu-2.41.drv
  /gnu/store/lch3711iiczn6smxsr7r3sj991p8avwv-ld-wrapper-aarch64-linux-gnu-0.drv
  /gnu/store/zmsnlbyml0vmphfdxyxw4ps25bgrwz92-gcc-cross-sans-libc-aarch64-linux-gnu-14.2.0.drv
  /gnu/store/57jnlmvqlvk6jkyvqcnrk4psffhmak91-linux-libre-headers-cross-aarch64-linux-gnu-5.15.49.drv
  /gnu/store/b4f1my595ggl7d5qn46vr6qllwx7g49z-glibc-cross-aarch64-linux-gnu-2.39.drv
  /gnu/store/sl5vfnwdarghf9ypbspq1bdlamnz3j2a-gcc-cross-aarch64-linux-gnu-14.2.0.drv
  /gnu/store/3vp8a7mz1576xbk278k9b73nx2zqmzlw-libffi-3.4.4.drv
  /gnu/store/y3hqwsbc8rb2g1mac8c9vsdmaacf20xm-libatomic-ops-7.6.12.drv
  /gnu/store/bd09d178ni5sp9db62w869c6m7d3sh6v-libgc-8.2.4.drv
  /gnu/store/cs7mzhrypgdad8v0v29arafc8brl7ynd-bash-minimal-5.1.16.drv
  /gnu/store/np51g0ak713az6shj6sv9j3wkq4cjvjx-libunistring-1.1.drv
  /gnu/store/rbkb4ig158h9gblbrah5nx5annvfpb4q-libxcrypt-4.4.36.drv
  /gnu/store/lfmamfv5vx690l9n6a1ixbbk6kzw3gsr-guile-3.0.9.drv
--8<---------------cut here---------------end--------------->8---




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

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


Received: (at 77033) by debbugs.gnu.org; 17 Mar 2025 17:31:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 17 13:31:17 2025
Received: from localhost ([127.0.0.1]:60764 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tuEJ3-0006SB-1t
	for submit <at> debbugs.gnu.org; Mon, 17 Mar 2025 13:31:17 -0400
Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:60751)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roman.scherer@HIDDEN>)
 id 1tuEIy-0006RR-HS
 for 77033 <at> debbugs.gnu.org; Mon, 17 Mar 2025 13:31:14 -0400
Received: by mail-wr1-x42b.google.com with SMTP id
 ffacd0b85a97d-391342fc1f6so3990049f8f.1
 for <77033 <at> debbugs.gnu.org>; Mon, 17 Mar 2025 10:31:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1742232666;
 x=1742837466; darn=debbugs.gnu.org; 
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=IqOpXDw2Urqt8I3D+u59vCYY8jZfaKgMzSfsExVCcAg=;
 b=U1LFcTOxpuwLfJLxjldg9r/i2KD09bgWrF2y0p8V9LtCZGFMFSfLpgqdc4ozUttexJ
 SANsTjj/03BXmtdLljWFuRuUOHTRQV9cZyXjMWZmtRl2b5Wv1Rj8iaKuvVuKsKo42ztc
 U2XlIxFKXQ9qqZqvC0nbyVDQ4o94UMA6qv60GivnNpqxTM9IXqBHiSh2MDlBY1mNce5d
 3RTu7Wf26nYPFVl7LKavFTeNONrQVwBOAm1fk4eZ3Fly/C/W2pbRwYkqxsBEBBZsuvt/
 OmnZrpTzXXRi8YuE1y2HVKzu7QM96tp6gtnsZXbHusrq/8AHeFWHMIQJXEUBGeeUFgQV
 gfBw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742232666; x=1742837466;
 h=mime-version:message-id:date:user-agent:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=IqOpXDw2Urqt8I3D+u59vCYY8jZfaKgMzSfsExVCcAg=;
 b=FQBsrMsuL49h8/wPeBRQPXeykozOJJ/HA5tdbYwtolBYxbfpg7trvRT9sI3O2iRqKH
 hsrtIEbybL72vugbKry3DafAzpvepEm+DYTfB9lF8gHnGodE4M+sVu5WJqLipyrsCvEo
 jRxMA8gv5qAWDYH8RCmLjm65MUoOtHtzorGEO1yeLuOaNHfQxbomHocE7lG3f/PSBGbL
 FsZe0hHIUKUD+/dsiEr2F1yTosiIZp/26YOLSKkGcoizFda2f/rVcKw1p7Qjqs7XDJKh
 1cE+KgOWXKQkk/uwNoKlygD2AOPiKRHXnbcMuTbGS6fvd83FsCK0Ya2fJ/9FC67AcUaH
 cVQw==
X-Gm-Message-State: AOJu0Yw3hAJSsIYYkXSvpGK+bu0ijOuJUTtLmqeqjSIlfo41qm9S8LYL
 Yf6PC2b4lj0xYyN6jGsWfs/qPHugFzVI2YWOT/0hvzZkAyWoDd4v7OV7uMr2+bI=
X-Gm-Gg: ASbGncu3hyZUYecnl7HMsKcnRrce8vEuPWslrKhkLYBhqORtp3FMGTUV4eB4D+NYrCd
 sqp+KkKeKdsRsQ9dr5ZfUStx/d4JJv1TqxM9PSa+yxB6w4axKbtwT88+fDwm/Nyuw4Miw+PDp0j
 fXZetjV7fY/t17za4qspDMdKTBHJuMjgIZie4rlmuJf2ex3VrZVGMIDXALZNYEytVS8SoKXTlgX
 2OeJszsgZ1wSM7VUXAXbpnumocVCUJ+nRxujwKWXM5TO92vtojmTapSDnCj/alTTBMcsYd6I2O7
 IWjuoSOklsVswmusDGI931Cfgdt0bYYqUfsTbxDQUzsYDsRTCO50g8eyrA==
X-Google-Smtp-Source: AGHT+IFaxOyub3ltHJMnTQKvf/Ad+/NuYimQOzNiUZ3bx9eBIh6EXqQ3LsPF9S3xfZZ2IyuK7H4wnA==
X-Received: by 2002:a5d:47cc:0:b0:391:2932:e67b with SMTP id
 ffacd0b85a97d-3971ee44240mr16497206f8f.35.1742232665878; 
 Mon, 17 Mar 2025 10:31:05 -0700 (PDT)
Received: from m1 ([2a01:599:91d:ff73:314a:7273:2fd1:541])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-395c82c255bsm15291086f8f.23.2025.03.17.10.31.04
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 17 Mar 2025 10:31:05 -0700 (PDT)
From: Roman Scherer <roman.scherer@HIDDEN>
To: 77033 <at> debbugs.gnu.org
Subject: Re: [PATCH] deploy: Support --target and --system.
In-Reply-To: <87bju1yzfq.fsf@HIDDEN> (Roman Scherer's message of
 "Sun, 16 Mar 2025 12:42:17 +0100")
References: <87bju1yzfq.fsf@HIDDEN>
User-Agent: mu4e 1.12.8; emacs 29.4
Date: Mon, 17 Mar 2025 18:31:03 +0100
Message-ID: <8634fbtvhk.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, sarg@HIDDEN, maxim.cournoyer@HIDDEN
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 (-)

--=-=-=
Content-Type: text/plain


So, I tried building this machine on an aarch64 system with the qemu-bin
service running now a couple of times ...

```
(use-modules (gnu machine)
             (gnu machine hetzner))

(list (machine
       (operating-system %hetzner-os-x86)
       (environment hetzner-environment-type)
       (configuration (hetzner-configuration
                       (server-type "cx42")
                       (ssh-key "/home/roman/workspace/guix/id_rsa")))))
```

I used this command:

```
[roman@m1 guix]$ ./pre-inst-env guix deploy hetzner-minimal.scm --no-offload --target=x86_64-linux-gnu --timeout=864000 --max-silent-time=864000
The following 1 machine will be deployed:
  guix-x86

guix deploy: deploying to guix-x86...
guix deploy: warning: <machine-ssh-configuration> without a 'host-key' is deprecated
substitute: looking for substitutes on 'https://substitutes.asahi-guix.org'... 100.0%
substitute: looking for substitutes on 'https://substitutes.nonguix.org'... 100.0%
substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 100.0%
substitute: looking for substitutes on 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
  /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv
  /gnu/store/8js0zmi3c2zg7ks3qnpiwsckam37vi67-guile-3.0.9.drv

building /gnu/store/0ma7qrdd5pz8421rka75mvmvhkvn1rld-libxcrypt-4.4.36.drv...
```

And it always "hangs" there. I haven't much investigated this yet. Just
a small update.

Roman

Roman Scherer <roman.scherer@HIDDEN> writes:

> Hello Sergey,
>
> this looks good to me and is better than what we have now. I'm testing
> this right now and will report back when it went through ...
>
> But I'm wondering if the target architecture should ideally be choosen
> per machine. Say you have 2 machines with different architectures in a
> list of machines you want to deploy.
>
> I don't see a "system" field in the machine or operating system
> record. So I'm not sure if we have a way to infer that yet.
>
> Would it make sense to add such a field and chose the target
> architecture per machine?
>
> Thanks, Roman.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmfYXFcfHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmTgeCACFNi52YyWUlS2A
bA88PpjKyBfmjltjE02nRgeeOFqMmuBthOVAyx5fmMbwR0haJeoD2Kk0q7RqOeWU
dAhMcVPeIGS84rQpilWP3iAI/DRL7bFgiTZqtL2vCqL2DMBGjJzK7rQWgOlko1KM
StqGwLCPZCg9E9FkVJuveDbYpd4Lx/jvcGJVQfORny2tOHt9evaQNpepgSq04PrA
EmGlGp4HuKQOs7wZ3ZNKZ5CcR5K2X5hcZQ85K89luLmf79teltWrswvWr+WoiG9Y
982z+AeUkIqQOllqsDHj+rBtcYVlzM98QhqIF3msUKhgA/gERWPm75grus0ppXsO
mgZ1I2js
=YBez
-----END PGP SIGNATURE-----
--=-=-=--




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

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


Received: (at 77033) by debbugs.gnu.org; 16 Mar 2025 11:42:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 16 07:42:31 2025
Received: from localhost ([127.0.0.1]:45810 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttmNz-0004sj-0W
	for submit <at> debbugs.gnu.org; Sun, 16 Mar 2025 07:42:31 -0400
Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:61934)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <roman.scherer@HIDDEN>)
 id 1ttmNx-0004rH-5O
 for 77033 <at> debbugs.gnu.org; Sun, 16 Mar 2025 07:42:29 -0400
Received: by mail-wr1-x436.google.com with SMTP id
 ffacd0b85a97d-3913d45a148so3011062f8f.3
 for <77033 <at> debbugs.gnu.org>; Sun, 16 Mar 2025 04:42:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1742125342;
 x=1742730142; darn=debbugs.gnu.org; 
 h=mime-version:message-id:date:user-agent:subject:cc:to:from:from:to
 :cc:subject:date:message-id:reply-to;
 bh=wUXJwD5/WNian36j7zBn/IJE2kWBCbkkRRDDMjXZ6k4=;
 b=yqFOQYJrpxqJQVo2lwmNIvTVDMYxPxG6FloVofFv97nspKGZE+OVL70r5SJiMIbxWx
 WmrWAzddVRt4ep8xOOGVCX7/w2l/lx9epCZWeEVPspHqixyLUb/u30PujCdAiUh6X9Q2
 aJzIgO1BoWwXJiqI0jHuXWDNCUM3XgOq3nBwyy8s0qOEMmHbM0ZMkn6W1p2IWGrcAfOE
 +dzSy5SBa1JXI4GEkxZdYYaVQsFlvsp/6YkJKcDs9P4x/qf1qc4cVK/65ItMiBkuM5dr
 Glh13R+tsG97BYz11irLcr04kccNpOL0rY5ffTIAAVk1wSn339W8rGDzEA0nejHnSz8L
 g81A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742125342; x=1742730142;
 h=mime-version:message-id:date:user-agent:subject:cc:to:from
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=wUXJwD5/WNian36j7zBn/IJE2kWBCbkkRRDDMjXZ6k4=;
 b=gQAVM5ccZK2khC1NdbbY2ZcYWVTZucX7QSSk6Y+y/5AylBIFtSkyzZZAZFrMulXj2v
 lZHlZ9LVZ4W+KFKcIjjg7EVRvRtMzoACdBHgz7FkDHkyuGYG5OBr6zJBR9cVkC8hf+p4
 n2u1luDg5vZtcr52rnexDI1KQCzyqj/RAfScAtI66DXqUMEJAJeazC8l/pfoj/BNgixw
 u1/DFpJvXe3vl6Fzr+Yy7hCzoV67mRn685/34GQcVCoac3L1WhkTqjwKLK6olJQi6Z0O
 v1dOxViAomSVY26jwrflsMWN3haJl4Q6mAZisDzIO5TqkDOnf4XI47JP0ZpVAU4Q9WSb
 mMEw==
X-Gm-Message-State: AOJu0YwjdVmbltmc+WmzwwzWwCiPK/URlMD1N+QMc5xXvOBAsM/3BFJQ
 0+hcfhmLDITtV5Q3BSXopgkPac/JYiyAEsSLW7/drZA5cgeL4ntD0rNJJXIpRbM=
X-Gm-Gg: ASbGncsp+xkO0c4Pu4gH3PZ1PjnkwBvIxGn++AcbGmuLtokOaQeqa6J0MOCbYB4pvaD
 VbsjKF7vOxsJjXUpkIMT1krSnXFA03jcYZK82CcTZWalhfeI4FX88w7F+Y17Xuxf+FpFnab8GEh
 jNxuqzIIsHJ0FO++RBzP9rO3nkKcT8FUd4vCkvqx6liIhM/CDQb6SB1v6eX1UGw8m/ydNb8oR9r
 ylHpV8W+YCrmxo3XCeiMI7oKpUhwS4qlJocWFG9UIhq3buO9OmAFCriTppBmjjS7+TtMCD8g71f
 1lPoUTWryM/vG21MSijXCsIxG5t1Tqfgc1/Bv0f03kNBdFHRS0+VPkxWjQ==
X-Google-Smtp-Source: AGHT+IHs6SXtEYz3P4tYhCcYRVu4dq6iWG/+JRk3uYkOade+8Y1PxLSYO2YiG0keCtwAH81yU/igGw==
X-Received: by 2002:a05:6000:18ac:b0:38f:4fa6:68df with SMTP id
 ffacd0b85a97d-3971f6084c9mr9569088f8f.51.1742125342295; 
 Sun, 16 Mar 2025 04:42:22 -0700 (PDT)
Received: from precision ([2a01:599:91d:ff73:1419:e1d4:49c8:daab])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-395c83b6e92sm11995612f8f.38.2025.03.16.04.42.20
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 16 Mar 2025 04:42:21 -0700 (PDT)
From: Roman Scherer <roman.scherer@HIDDEN>
To: 77033 <at> debbugs.gnu.org
Subject: [PATCH] deploy: Support --target and --system.
User-Agent: mu4e 1.12.8; emacs 29.4
Date: Sun, 16 Mar 2025 12:42:17 +0100
Message-ID: <87bju1yzfq.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77033
Cc: ludo@HIDDEN, sarg@HIDDEN, maxim.cournoyer@HIDDEN
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 (-)

--=-=-=
Content-Type: text/plain


Hello Sergey,

this looks good to me and is better than what we have now. I'm testing
this right now and will report back when it went through ...

But I'm wondering if the target architecture should ideally be choosen
per machine. Say you have 2 machines with different architectures in a
list of machines you want to deploy.

I don't see a "system" field in the machine or operating system
record. So I'm not sure if we have a way to infer that yet.

Would it make sense to add such a field and chose the target
architecture per machine?

Thanks, Roman.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmfWuRkfHHJvbWFuLnNj
aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmcC8B/4nK83Eyc8z2TDp
gp1VLq9bIT8jwRe34/FrmAtuxiK9iP1YB7t5FtW9d9BAZASiZ5vUa7TI1JXO+jTX
ay8xNEDJ9oy/bpYz3EVD61rjcktyAkVsN9X8rRz2ms8NagWyXMjzhWkq+p6To+L3
pYPDqJluxEJr68FWStrYDTcM3n+cwvylr0KDPzR8tEEr2Etj4NoQp1XwdOgcKclz
yYUiJ9PkgUHDAGyVIx7nAp70csay3huFLkYET+IYbFE2WIoC4CWqd958GI+02wr8
1nrr0V82LvkCr/0mSDof0CNQSRoCZDmmmyYc9IGP8zwsdAuI5fgMHhk10fQjKe9B
XSfrsZvB
=dk5b
-----END PGP SIGNATURE-----
--=-=-=--




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

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


Received: (at submit) by debbugs.gnu.org; 15 Mar 2025 12:00:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 08:00:43 2025
Received: from localhost ([127.0.0.1]:39424 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttQC3-00088g-1M
	for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 08:00:43 -0400
Received: from lists.gnu.org ([2001:470:142::17]:43416)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <sarg@HIDDEN>) id 1ttQBv-000862-ON
 for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 08:00:37 -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 <sarg@HIDDEN>) id 1ttQBW-0001IX-Ac
 for guix-patches@HIDDEN; Sat, 15 Mar 2025 08:00:12 -0400
Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <sarg@HIDDEN>) id 1ttQBT-0004Jc-QU
 for guix-patches@HIDDEN; Sat, 15 Mar 2025 08:00:10 -0400
Received: by mail-ej1-x62c.google.com with SMTP id
 a640c23a62f3a-ac2bfcd2a70so399571066b.0
 for <guix-patches@HIDDEN>; Sat, 15 Mar 2025 05:00:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=sarg.org.ru; s=google; t=1742040004; x=1742644804; darn=gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=FGXgDgrCXsFk9TqbBsbdRaqw2UpoeqA6bhHdeTN65MI=;
 b=aZPyP1btE4lUoyQCNcGxS36EcanEN0CqvNdW+PuxFhUHpAgLWTDX0XTBhEWuXsl5cG
 Aucyv6/Q0t9nLxJpxTJTvBEuYxQxaC748k3F7CGRNCFylC1lvzuVaNwfYdG1b28x/FJg
 k/spXGd0/Kbpg3uUwYGT56w9sY8EDZJdbPFkJPDWcmTVVnF3EiXCsD/2m7eQN0IYBcuB
 EgcySAxBdOzQ4Q+XMgcxXyZGkfkxRn4CvZkrg84xZPahsyuPpv9tjEY2u9zHxsikDxcq
 YZRLAcy6Q8/+K3CERqiayI7/8VkIAULHDemZMN2uBcdoGGE3fLsNLMpI0RUIVqHD4kqK
 EwDA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742040004; x=1742644804;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=FGXgDgrCXsFk9TqbBsbdRaqw2UpoeqA6bhHdeTN65MI=;
 b=WjFpwsRIuNxlvLyGv6ugPXJK0/Z3Zt4xDHeeulcEmFZ15nT//pmbEN/tT2XX6aLlgG
 Yl3+QhueSenJm7OrR2giQDSlR4+WsyoLIye1TsHOz2060hEpz3p69AfT1g0KPWuSWcde
 GnXtoL4ixrtZKPyU7OubyiEhr/clk8RZg9HVOsMHsHpbMYcn5N/mvGKQ1G3hXXDmqQ5y
 WXggQ0CoWMCZgHOsQ6FD3Rj0wU19FB1IdPBpy42F+53lD2/NceSZSUlkevMWzxk16dB1
 2y0Zrh4IF9SpDtBlsONIw70Gd/miEuFEVPI5QP9loCmJVMK6F5FQrtd9hgo5DwypZJc7
 guJA==
X-Gm-Message-State: AOJu0YzYuMM4tPoJSJoh+MUqvdjvo5qwTUS17+juFzxt0OFLytzxF0Cv
 AvKeFslaoVgWw+5iQbq+S1B72aZEuZjdfgAB9WeBvSBYAAD0brQyz5gEk0e7zKWI29lXVBQaqre
 wwoA=
X-Gm-Gg: ASbGnct8vmvsQpzzD2A4K6vBDzqYyZ35NM4FWhnLjzkBfMOAP71BISFhZpI9Rs+uz8D
 UhpT3tcCI3ZzxNdLvgItbmJLuuCz4KQL/NvCY//II9WBf8s4WHTTNnSLbNM4TMXfoE+qAfwKNOl
 2FA82m5ZaQpFyznxZbY6YYQYUWtA0A+s0VdbQV0I4X9CGp11cR6cvGVtayNuuUW/HCk84fWfCYl
 clI3SI/DpRgvB6r2C7l1tQEbszON7dyoNrb91LCny/qwNW+WAaL+MHjTezrKqi7aEJevhP074c0
 5uP0Mo1md5LehdLfh6DoxIFBWteOxH6iqkURFtt/PTi/Rinp6NYC
X-Google-Smtp-Source: AGHT+IEPyitDk4cWYU5OWPYvY9NfK644BmJHTijtSZIX6Rx6Zhami6sQDxEq8GLiJIpvNXG3VRs3/Q==
X-Received: by 2002:a17:906:7308:b0:ac2:e059:dc03 with SMTP id
 a640c23a62f3a-ac3303f75d1mr639140666b.38.1742040003528; 
 Sat, 15 Mar 2025 05:00:03 -0700 (PDT)
Received: from localhost ([2a02:2454:a0a5:2400:a64e:31ff:fe38:fd6c])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-ac314a4a2b3sm362363566b.139.2025.03.15.05.00.02
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 15 Mar 2025 05:00:03 -0700 (PDT)
From: Sergey Trofimov <sarg@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] deploy: Support --target and --system.
Date: Sat, 15 Mar 2025 12:59:59 +0100
Message-ID: <8c06c68ca3d216132db868e92ec5db40fe566633.1742039992.git.sarg@HIDDEN>
X-Mailer: git-send-email 2.48.1
MIME-Version: 1.0
X-Debbugs-Cc: Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::62c;
 envelope-from=sarg@HIDDEN; helo=mail-ej1-x62c.google.com
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,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.7 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  * guix/scripts/deploy.scm: Support native and cross build
 options. --- guix/scripts/deploy.scm | 30 +++++++++++++++++++++--------- 1
 file changed, 21 insertions(+),
 9 deletions(-) diff --git a/guix/scripts/deploy.scm
 b/guix/scripts/deploy.scm index e2ef0006e0..94e0d69936 100644 ---
 a/guix/scripts/deploy.scm
 +++ b/guix/scripts/deploy.scm @@ -26, 6 +26, 7 @@ (define-module (guix sc [...]
 Content analysis details:   (1.7 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL
 blocklist [URIs: sarg.org.ru]
 0.6 URIBL_SBL Contains an URL's NS IP listed in the Spamhaus SBL
 blocklist [URIs: sarg.org.ru]
X-Debbugs-Envelope-To: submit
Cc: Sergey Trofimov <sarg@HIDDEN>
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.7 (/)

* guix/scripts/deploy.scm: Support native and cross build options.
---
 guix/scripts/deploy.scm | 30 +++++++++++++++++++++---------
 1 file changed, 21 insertions(+), 9 deletions(-)

diff --git a/guix/scripts/deploy.scm b/guix/scripts/deploy.scm
index e2ef0006e0..94e0d69936 100644
--- a/guix/scripts/deploy.scm
+++ b/guix/scripts/deploy.scm
@@ -26,6 +26,7 @@ (define-module (guix scripts deploy)
   #:use-module (guix scripts)
   #:use-module (guix scripts build)
   #:use-module (guix store)
+  #:use-module (guix utils)
   #:use-module (guix gexp)
   #:use-module (guix ui)
   #:use-module ((guix status) #:select (with-status-verbosity))
@@ -54,6 +55,8 @@ (define (show-help)
   (display (G_ "Usage: guix deploy [OPTION] FILE...
 Perform the deployment specified by FILE.\n"))
   (show-build-options-help)
+  (show-cross-build-options-help)
+  (show-native-build-options-help)
   (newline)
   (display (G_ "
   -h, --help             display this help and exit"))
@@ -93,21 +96,22 @@ (define %options
          (option '(#\x "execute") #f #f
                  (lambda (opt name arg result)
                    (alist-cons 'execute-command? #t result)))
-         (option '(#\s "system") #t #f
-                 (lambda (opt name arg result)
-                   (alist-cons 'system arg
-                               (alist-delete 'system result eq?))))
          (option '(#\v "verbosity") #t #f
                  (lambda (opt name arg result)
                    (let ((level (string->number* arg)))
                      (alist-cons 'verbosity level
                                  (alist-delete 'verbosity result)))))
 
-         %standard-build-options))
+         (append
+          %standard-build-options
+          %standard-native-build-options
+          %standard-cross-build-options)))
 
 (define %default-options
   ;; Alist of default option values.
   `((verbosity . 1)
+    (system . ,(%current-system))
+    (target . #f)
     (debug . 0)
     (graft? . #t)
     (substitutes? . #t)
@@ -186,9 +190,13 @@ (define (deploy-machine* store machine)
             (when (deploy-error-should-roll-back c)
               (info (G_ "rolling back ~a...~%")
                     (machine-display-name machine))
-              (run-with-store store (roll-back-machine machine)))
+              (run-with-store store (roll-back-machine machine)
+                              #:system (%current-system)
+                              #:target (%current-target-system)))
             (apply throw (deploy-error-captured-args c))))
-      (run-with-store store (deploy-machine machine))
+      (run-with-store store (deploy-machine machine)
+           #:system (%current-system)
+           #:target (%current-target-system))
 
     (info (G_ "successfully deployed ~a~%")
           (machine-display-name machine))))
@@ -266,7 +274,9 @@ (define (invoke-command store machine command)
                (loop (cons line lines))))))))
 
   (match (run-with-store store
-           (machine-remote-eval machine invocation))
+           (machine-remote-eval machine invocation)
+           #:system (%current-system)
+           #:target (%current-target-system))
     ((code output)
      (match code
        ((? zero?)
@@ -325,7 +335,9 @@ (define-command (guix-deploy . args)
                                               #:verbosity
                                               (assoc-ref opts 'verbosity)
                                               #:dry-run? dry-run?)
-            (parameterize ((%graft? (assq-ref opts 'graft?)))
+            (parameterize ((%graft? (assq-ref opts 'graft?))
+                           (%current-target-system (assoc-ref opts 'target))
+                           (%current-system (assoc-ref opts 'system)))
               (if execute-command?
                   (match command
                     (("--" command ..1)

base-commit: 412f411d4f8780e6b60b448caae17f01c09be0eb
prerequisite-patch-id: f9cc903b8048c8c6fde576fbf38ab110263020e3
-- 
2.48.1





Acknowledgement sent to Sergey Trofimov <sarg@HIDDEN>:
New bug report received and forwarded. Copy sent to guix@HIDDEN, dev@HIDDEN, ludo@HIDDEN, othacehe@HIDDEN, zimon.toutoune@HIDDEN, me@HIDDEN, guix-patches@HIDDEN. Full text available.
Report forwarded to guix@HIDDEN, dev@HIDDEN, ludo@HIDDEN, othacehe@HIDDEN, zimon.toutoune@HIDDEN, me@HIDDEN, guix-patches@HIDDEN:
bug#77033; Package guix-patches. 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: Sat, 22 Mar 2025 11:15:02 UTC

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