🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
6 messages
6 total messages Started by Johannes Schauer Marin Rodrigues Wed, 07 Oct 2026 11:00
Bug#1099638: foreign architecture issues
#30
Author: Johannes Schauer Marin Rodrigues
Date: Wed, 07 Oct 2026 11:00
66 lines
3993 bytes
--===============1599188600064390435==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Hi,

Quoting Helmut Grohne (2025-03-05 12:22:46)
> I tried using mmdebstrap for loong64 and that didn't go well.

a year later it went well for me:

$ mmdebstrap --variant=3Dapt --arch=3Dloong64 unstable /dev/null
I: automatically chosen mode: unshare
I: loong64 cannot be executed natively, but transparently using qemu-user b=
infmt emulation
I: finding correct signed-by value...
done
I: automatically chosen format: null
I: using /tmp/mmdebstrap.S24GdoSNEI as tempdir
I: running apt-get update...
done
I: downloading packages with apt...
done
I: extracting archives...
done
I: installing essential packages...
done
I: installing remaining packages inside the chroot...
done
done
I: cleaning package lists and apt cache...
done
done
I: removing tempdir /tmp/mmdebstrap.S24GdoSNEI...
I: success in 95.2309 seconds

Can this bug be closed?

Thanks!

cheers, josch
--===============1599188600064390435==
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Description: signature
Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"

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

iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmrGI7sACgkQ8sulx4+9
g+G40A//aqQcnLFtomosPn7vw4uvjWVlxEtRITZ5+EvTTW5d4ErVRxOfJ9ZYLhmE
PGiIRpWGH+oxXdUeiyUUwAIY7tCnb3C334GjtJS99TLtXmZmt/OLEBHlx6BDmXks
xtCPoD+60tLzERJ4W/G2j7y/Aeqiky3uAsNzXq/UDx5o2Z6TNO4u7ur0NX3MXT8z
qWFcOOyiwa6Cpc2CMzGHoCGfd8mqwFS6lMPlj+Gh/Oycg5F3P81lZTJY9hknorDb
yFBSwrNRYK7ZJeu8Q9dHhGbCX6G9vkcGH3fWdrSFcwTNj+fuwcTwmBSLS9bO1M7E
HYvPzxn5ucPz6ne515Jye63NMywmW713ynn0lfStqOPXLjLEtu2W6ZxaKF1fqVtS
araOK/hP0jzysM29Ue9YvIkddnc+/vyO5ltLA9K4oVII3aDgi2thW0JZ9NwzEzwQ
TZJFNGk3mY+57bjvf707w3hi8i+p6jeFht7xd4xYcX1M/VoITSnU39/P6MpexMeG
3VxYqpwc4IbiSvUVqKN11N5r90oIAAqLYchEGK9/xlKg8gJlcyo8TbFi6Usp2Yuv
1iWFFgLuWNZA8Ms+tlEGIBo6KtYw7xAE+nb7u6yYRrqjQPIb/VoK9XsPL7pwQve7
rPlhMy0JhdX/qrGJjabWvMnHSQwWkmCFKOe6I41oquflCP9hZls=
=7nij
-----END PGP SIGNATURE-----

--===============1599188600064390435==--
Bug#1099638: foreign architecture issues
#136
Author: Helmut Grohne
Date: Thu, 08 Oct 2026 12:50
27 lines
2758 bytes
Hi Johannes,

On Wed, Oct 07, 2026 at 12:49:32PM +0200, Johannes Schauer Marin Rodrigues wrote:
> Hi,
> 
> Quoting Helmut Grohne (2025-03-05 12:22:46)
> > I tried using mmdebstrap for loong64 and that didn't go well.
> 
> a year later it went well for me:

There were three distinct bugs reported. One was cloned as #1099639 and
fixed there. The second was about a missing arch mapping for loong64 and
that is definitely addressed in 1.5.7-3 (possibly earlier).

The third bug is about discovery of the qemu executable via binfmts in
the case where emulation turns out not to work. This code path is now
skipped thanks to the other fixes, but I still think that using
update-binfmts is no longer useful as the primary mechanism of loading
them has changed.

> Can this bug be closed?

As you prefer. The main goal definitely is fixed. Or we can leave this
open and retitle it to a minor bug that asks for replacing
update-binfmts --display.

Helmut
Bug#1099638: foreign architecture issues
#146
Author: Johannes Schauer Marin Rodrigues
Date: Thu, 08 Oct 2026 13:50
55 lines
4241 bytes
--===============5756817104130080198==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Hi Helmut,

Quoting Helmut Grohne (2026-10-07 13:14:11)
> The third bug is about discovery of the qemu executable via binfmts in the
> case where emulation turns out not to work. This code path is now skipped
> thanks to the other fixes, but I still think that using update-binfmts is=
 no
> longer useful as the primary mechanism of loading them has changed.
>=20
> > Can this bug be closed?
>=20
> As you prefer. The main goal definitely is fixed. Or we can leave this
> open and retitle it to a minor bug that asks for replacing
> update-binfmts --display.

do you have some reference text of what is wrong with update-binfmts and wh=
y it
is no longer useful? I do not see any deprecation notice in the description=
 of
the binfmt-support binary package in unstable. The update-binfmts program s=
till
exists in unstable and still has the --display option.

Thanks!

che
--===============5756817104130080198==
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Description: signature
Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"

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

iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmrHnUkACgkQ8sulx4+9
g+G4yw/9GjFEAjEEs0Mo1fjkhlMicEqYphZC2/Msg5UUsE1E7A/qS4NsAsWAPf6p
FJVG969RVmHaj9mKC1OSUnBjA4uj0uAoEmbaloqZNcGTZI2uo+cMjEuZ4QmtZmvr
oBBZeqoTCZyIKjF/0bsf6AZIrCh3TqbDyMrgAtLJD+30ZdR0TXyNou4zELU18uf2
kfDYiU1Dgigl/XEPGB62JBsHsvTFpokwSXvDgWmtq0tQMB8Gk2lFKZSiq4yLz0H3
MSqJFa/GC3hgmbckLiBb77Yzg1DHXSl10RA1TVDQRgC81DQNQ8wxU87Z+T/kb0m7
wUYh5QwigaThONbQyvyI6agCDK5WHUUL8tzZvm33pcLc66YkGp5cUgHv6gGJwPJK
dzcTMjzzdkbILbPmY48iLn+8ySHhvjPVvJmcD4OufJUWYbqNAXpdgAFU7ClSgM+s
zm5udEIL8P2c74zazTKNh5pEIuvV0GxDHO7XLxQE8CFrQSuLDc3mEJ9Bra1oSR3N
VlWAURmTemB39ZNHYFqWfWmiop8sTU+QKt90H7NLAVz5XiqKfGhakrxEcB/+WO0Q
2zyHl71RYCnEjAGWQhgRDbRtONpLsgUJ/zbfPgF4yWkE6lhdeIIXt45lfIbvkkuh
bXmIJWdHsFpidfffna4u9NY8XOATogYUsYkjjKNDBbVrIjaHQTY=
=PgQa
-----END PGP SIGNATURE-----

--===============5756817104130080198==--
Bug#1099638: foreign architecture issues
#343
Author: Helmut Grohne
Date: Sat, 10 Oct 2026 10:10
32 lines
3444 bytes
Hi Johannes,

On Thu, Oct 08, 2026 at 03:40:29PM +0200, Johannes Schauer Marin Rodrigues wrote:
> do you have some reference text of what is wrong with update-binfmts and why it
> is no longer useful? I do not see any deprecation notice in the description of
> the binfmt-support binary package in unstable. The update-binfmts program still
> exists in unstable and still has the --display option.

There are two competing ways to configure binfmts. Let me call them
binfmt-support and systemd. (Guess which one existed earlier.)

binfmt-support uses /usr/{share,lib}/binfmts and expects extension-less
files in a multiline notation.

systemd uses /usr/lib/binfmt.d and expects .conf files containing a
single colon-separated line.

Please try apt-file search -x '[be]/binfmt[.s]' to get an idea of the
adoption of either formats.

Ideally, we only have one such format and despite binfmt-support being
the older one, I think we're having a difficult time converting the
systemd people. Also qemu does not provide the support files for
binfmt-support anymore. The only package in sid that does not yet
support the systemd way is jarwrapper.

So I'd suggest deleting binfmt-support from Debian. Not because it would
be buggy. Not because it came later (it came first). But because systemd
is too-big-to-fail and the competing standards evidently pose confusion.
I'm not going to push for this though.

Helmut
Bug#1099638: foreign architecture issues
#347
Author: Johannes Schauer Marin Rodrigues
Date: Sat, 10 Oct 2026 11:00
81 lines
5663 bytes
--===============7569569628447775575==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Control: reopen -1
Control: retitle -1 "foreign architecture support via binfmt-misc requires =
systemd"

Quoting Helmut Grohne (2026-10-08 17:45:22)
> On Thu, Oct 08, 2026 at 03:40:29PM +0200, Johannes Schauer Marin Rodrigues
> wrote:
> > do you have some reference text of what is wrong with update-binfmts and
> > why it is no longer useful? I do not see any deprecation notice in the
> > description of the binfmt-support binary package in unstable. The
> > update-binfmts program still exists in unstable and still has the --dis=
play
> > option.
>=20
> There are two competing ways to configure binfmts. Let me call them
> binfmt-support and systemd. (Guess which one existed earlier.)
>=20
> binfmt-support uses /usr/{share,lib}/binfmts and expects extension-less f=
iles
> in a multiline notation.
>=20
> systemd uses /usr/lib/binfmt.d and expects .conf files containing a single
> colon-separated line.
>=20
> Please try apt-file search -x '[be]/binfmt[.s]' to get an idea of the
> adoption of either formats.
>=20
> Ideally, we only have one such format and despite binfmt-support being the
> older one, I think we're having a difficult time converting the systemd
> people. Also qemu does not provide the support files for binfmt-support
> anymore. The only package in sid that does not yet support the systemd wa=
y is
> jarwrapper.
>=20
> So I'd suggest deleting binfmt-support from Debian. Not because it would =
be
> buggy. Not because it came later (it came first). But because systemd is
> too-big-to-fail and the competing standards evidently pose confusion.  I'm
> not going to push for this though.

Great stuff. Seems we need something for platforms which do not use systemd
which is able to consume the /usr/lib/binfmt.d format and registers them as
expected. The format is really simple, maybe i find some time. But this then
has to become another test case for mmdebstrap: foreign architecture emulat=
ion
using the kernel's binfmt support on platforms without systemd as init.

I'm re-opening this bug with a new title to not forget about this issue.

Thanks!

cheers, josch
--===============7569569628447775575==
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Description: signature
Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"

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

iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmrKGg8ACgkQ8sulx4+9
g+FKvg/9H0TZzvWgPucp+50VNFwJHSth4zH8yaAkT3AD+vG1w6CrRBWklLW6yQC6
G/9OsZ/PQxYbyhMc36ufOyrdsTiRdn8NRNQadlkO92l3ldjEbSnm4Yu1Xe/nI2iI
h7hrbeUoModntNCx9tkMhWFeaY6BTjtgFcgGouMQzo9x1/HAYMmzzbG9vLm4Ky6d
nYgRqzLMyfS1r+aPD/XNO1keF9E+dO2YhZvcQRXEcrdm7pmPGXRfI3d6GhW+CeHO
Z0RFvwzGRjSPPpTv9pvmbwPCgYQ7+6P1v9DPUrqjeI3ZHPxJq1UtLhOB7WGlpVYm
7zc6+LjR0NWwnaqu1W7a0WNWtwSycudLnIF+kunXY41qQtNSnqdJaXo7EzreWo30
pZJc9002lHkm++wOaK3ZtcbtOrwjPJnZQj5+Ok7EOYBT/nX0twfYZRsOCsZ3me8j
EugsKKPIPlkuWydLMU28n633gVvH6znjw8gBzSSAgdpYNqzz7N4MmKfeXZGwMaWk
cwfU56MYwcZl3d1B4pFmZ5kRGAe9J4vJaibM1AQ5NxMJWGE3c1mVZbjkLWuBG1c2
8FQJUa8wBiYup2Nmb0klXYvFB/cROFY0YvWmxXi3gE4V/8oTcLAC8ezI2R8s0lOp
/0VnzZIHOh8eohfkPTFtI3T6O9DHkmbB6A7vdDDPUayAsh0xKgk=
=PEM8
-----END PGP SIGNATURE-----

--===============7569569628447775575==--
Bug#1099638: foreign architecture issues
#360
Author: Johannes Schauer Marin Rodrigues
Date: Sat, 10 Oct 2026 12:40
52 lines
4339 bytes
--===============0540362406794201838==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Quoting Johannes Schauer Marin Rodrigues (2026-10-10 12:57:22)
> Great stuff. Seems we need something for platforms which do not use syste=
md
> which is able to consume the /usr/lib/binfmt.d format and registers them =
as
> expected. The format is really simple, maybe i find some time. But this t=
hen
> has to become another test case for mmdebstrap: foreign architecture
> emulation using the kernel's binfmt support on platforms without systemd =
as
> init.
>=20
> I'm re-opening this bug with a new title to not forget about this issue.

OpenRC has its own implementation:

https://github.com/OpenRC/openrc/blob/14e11b7f5b09072aa1433e790bbf832800858=
fec/init.d/binfmt.in

Maybe it can be repurposed. Thanks to werdahias for the reference and for
packaging openrc.

cheers, josch
--===============0540362406794201838==
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Description: signature
Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"

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

iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmrKMNMACgkQ8sulx4+9
g+F+1Q//cijgqicIAwtzs/D4kaW/BffHKI2fLArw7mZuW2ZAvjL1hmMyl0cl7wsD
7xTuiZBd1ox2rtb+6DN/3blHtDFiw0g4RIWRFnCkFP80pisPm2qFWT4abLvyla/c
mZP4tSAYQ/F4kb4y+89tFNipSAmEhlPc6T3iMgaM2YarNHw/xu8WqbF83uH+zZLn
GXzErNsBt+SMDi8VBlgDTiTvkbRpZJp0FxRz4rd9RhQJJx6CiHZBfZK4TnK6SuMY
1RuMiHVoe27yQYIckA48/H73Rz0WvUXC75XCNzH9NdqMP0lT/O0HYXk9DSxVGo89
OtUmMrbD6dcTfG6GAIhF/GsMfjOXJCxuu49gC4sTAzE+sdho4xEMjwNaLFXxRgxM
TX72f35OeoOUfRl4H5d+8XS9DDbY4/zW6y/IHrKOPwZKmcRcwHKhsu6Iq9LMPvhA
m94Xf7VOna07oiSdT5xrzuLA3zBafSfu+Tls+75NAjnDC1EFZ0DR1IHN8ThJ1OpT
LzFYZ7wNG8zLBYmXaG0KEvqjnta2xZNrVLHUUcbO6TL3JtCAmoDOO8fLrVBhYN2V
MM+u7iIR/X8H/OuuWaCT8hyWYtfTyzniyI9WRKFca2C21P4WMGqUR2kZIF+zCwG5
qfePzzMw0dUdzgQITEM0IiKCI94tZ3Y7/eazV6iaNPwUCwjDJCw=
=yygu
-----END PGP SIGNATURE-----

--===============0540362406794201838==--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads