GNU bug report logs - #63738
[PATCH glibc] Stop checking if MiG supports retcode.

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; Reported by: Joshua Branson <jbranso@HIDDEN>; Keywords: patch; dated Fri, 26 May 2023 14:22:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at>

Received: (at submit) by; 26 May 2023 14:21:31 +0000
From debbugs-submit-bounces <at> Fri May 26 10:21:31 2023
Received: from localhost ([]:50501
	by with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1q2YJu-00009T-8F
	for submit <at>; Fri, 26 May 2023 10:21:31 -0400
Received: from ([]:36016)
 by with esmtp (Exim 4.84_2)
 (envelope-from <jbranso@HIDDEN>) id 1q2YJr-00009J-T5
 for submit <at>; Fri, 26 May 2023 10:21:28 -0400
Received: from ([2001:470:142:3::10])
 by with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jbranso@HIDDEN>)
 id 1q2YJq-0005zc-4K; Fri, 26 May 2023 10:21:26 -0400
Received: from ([])
 by with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jbranso@HIDDEN>)
 id 1q2YJh-0007Ia-QB; Fri, 26 May 2023 10:21:25 -0400
Received: from (localhost [])
 by (OpenSMTPD) with ESMTP id faea2b21;
 Fri, 26 May 2023 16:21:12 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed;; h=from:to:cc
 :content-type:content-transfer-encoding; s=20190914; bh=cwEKkd4P
 rIVktczQoH5gl796j7lwKbQSEjSQHkN21DQ=; b=hfQkqEbx1FmIncKIr3WOMPb2
Received: from (<unknown> [])
 by (OpenSMTPD) with ESMTP id 9c689108;
 Fri, 26 May 2023 16:21:11 +0200 (CEST)
Received: from (localhost [])
 by (OpenSMTPD) with ESMTP id ce8b35f2;
 Fri, 26 May 2023 16:21:11 +0200 (CEST)
Received: by (OpenSMTPD) with ESMTPSA id 484d9236
 Fri, 26 May 2023 16:21:10 +0200 (CEST)
From: Joshua Branson <jbranso@HIDDEN>
To: janneke@HIDDEN
Subject: Re: [PATCH glibc] Stop checking if MiG supports retcode.
References: <ZFspor91aoMwbh9T@HIDDEN>
X-Gnus-Sucks: I know man
Date: Fri, 26 May 2023 10:21:04 -0400
In-Reply-To: <CAKwpGPyXf0LaUH3Mgwqq1duG0O6xUcEuzYRAfQiJmsqgicS+oQ@HIDDEN>
 (=?utf-8?Q?=22Fl=C3=A1vio?= Cruz"'s message of "Fri, 26 May 2023 08:00:00
Message-ID: <87353jb2cv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=; envelope-from=jbranso@HIDDEN;
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: guix-devel@HIDDEN, bug-guix@HIDDEN
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
X-Spam-Score: -2.4 (--)

Hey guix people!  The Hurd developers having a 64 bit Hurd that can run
/bin/sh.  The below are some tips for how to set up such a thing if you
were so inclined.  The Debian people are providing 64-bit hurd
applications here for now:

Fl=C3=A1vio Cruz <flaviocruz@HIDDEN> writes:

> Hi Sergey
> On Fri, May 19, 2023 at 4:02=E2=80=AFAM Sergey Bugaev <bugaevc@HIDDEN>=
>  Hi,
>  On Fri, May 19, 2023 at 9:43=E2=80=AFAM Fl=C3=A1vio Cruz <flaviocruz@gma=>
>  wrote:
>  > I have made changes so that it does daily builds and I'm able to boot
>  small programs. However, I haven't had the time to boot programs built
>  against Glibc. How do you package and boot the static binaries using a
>  ramdisk? I've been reading the other threads about the Guix/rumpkernel
>  so I might be able to piece something together and try it this weekend.
>  You just put the entirety of the root filesystem (containing /usr,
>  /bin, /lib, /hurd, and so on) as an ext2 image into a *file* that you
>  place onto the actual drive (a CD disk in my case), and then you ask
>  GRUB to load the file from the drive into memory, tell gnumach to make
>  a ramdisk device out of it (you'll need to apply [0]), and tell ext2fs
>  to use that device. Here's the relevant piece of my grub config
>  script:
>  [0]:
>  multiboot /boot/gnumach console=3Dcom0
>  module /boot/initrd.ext2 initrd.ext2 '$(ramdisk-create)'
>  module /sbin/ext2fs.static ext2fs
>  --multiboot-command-line=3D'${kernel-command-line}' --readonly
>  --host-priv-port=3D'${host-port}' --device-master-port=3D'${device-port}'
>  --exec-server-task=3D'${exec-task}' --kernel-task=3D'${kernel-task}' -T
>  device rd0 '$(fs-task=3Dtask-create)' '$(prompt-task-resume)'
>  module /lib/ /hurd/exec
>  --device-master-port=3D'${device-port}' '$(exec-task=3Dtask-create)'
>  boot
>  (I should probably change it to not hardcode 'rd0', but whatever).
>  Note that /boot/gnumach, /boot/initrd.ext2, /sbin/ext2fs.static, and
>  /lib/ are all paths inside the CD image (those are going to be
>  loaded by GRUB), and /boot/initrd.ext2 is the ext2 filesystem image
>  containing the actual Hurd root. /hurd/exec however is already a path
>  inside the fs image -- this is where (not grub) is going to load
>  the exec server from. The only static binary here is ext2fs.static,
>  the rest are all dynamically linked.
>  Then in /libexec/console-run (inside the filesystem image), I have
>  written the following:
>  #! /bin/sh
>  settrans -ac /dev/mach-console /hurd/streamio console
>  exec <>/dev/mach-console >&0 2>&0
>  echo Hello from /bin/sh!
>  exec /bin/sh -i
>  (If you're going to do the same, don't forget to create the
>  /dev/mach-console node beforehand, since the fs is read-only.) I also
>  had to patch streamio a little to do the \r -> \n conversion like
>  glibc already does in devstream:
>  diff --git a/trans/streamio.c b/trans/streamio.c
>  index 272a002c..0af1aea3 100644
>  --- a/trans/streamio.c
>  +++ b/trans/streamio.c
>  @@ -500,6 +500,9 @@ trivfs_S_io_read (struct trivfs_protid *cred,
>                    cred->po->openmodes & O_NONBLOCK);
>     pthread_mutex_unlock (&global_lock);
>     *data_len =3D data_size;
>  +  for (size_t i =3D 0; i < data_size; i++)
>  +    if ((*data)[i] =3D=3D '\r')
>  +      (*data)[i] =3D '\n';
>     return err;
>   }
>  (maybe I should also add echoing of input characters in the same way,
>  which is also what glibc's devstream does -- otherwise currently I
>  don't see what I'm typing on the console).
>  Make sure to use the very latest glibc (Samuel has already pushed all
>  of my patches upstream!) + the BRK_START hack.
> Thanks for the instructions. I was able to make it work and pushed my
> changes to Github.
> For people that might want to try out the new port using
> the following will download the packages and build a disk image with the =
> disk:
> $ export CPU=3Dx86_64
> $ bash && bash && bash && bash
> Then, to run qemu:
> $ bash
>  Sergey


Joshua Branson
Sent from the Hurd

Acknowledgement sent to Joshua Branson <jbranso@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#63738; Package guix. 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: Fri, 26 May 2023 14:30:02 UTC

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