Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1251571 > unrolled thread
| Started by | Martin-Éric Racine <martin-eric.racine@iki.fi> |
|---|---|
| First post | 2025-07-01 11:30 +0200 |
| Last post | 2025-08-23 22:30 +0200 |
| Articles | 5 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
Bug#1108605: hurd: fails to setup console and stdin/out/err Martin-Éric Racine <martin-eric.racine@iki.fi> - 2025-07-01 11:30 +0200
Bug#1108605: hurd: fails to setup console and stdin/out/err Samuel Thibault <sthibault@debian.org> - 2025-07-01 11:40 +0200
Bug#1108605: hurd: fails to setup console and stdin/out/err Samuel Thibault <sthibault@debian.org> - 2025-07-03 12:00 +0200
Bug#1108605: hurd: fails to setup console and stdin/out/err Samuel Thibault <sthibault@debian.org> - 2025-08-22 13:30 +0200
Bug#1108605: hurd: fails to setup console and stdin/out/err Samuel Thibault <sthibault@debian.org> - 2025-08-23 22:30 +0200
| From | Martin-Éric Racine <martin-eric.racine@iki.fi> |
|---|---|
| Date | 2025-07-01 11:30 +0200 |
| Subject | Bug#1108605: hurd: fails to setup console and stdin/out/err |
| Message-ID | <L3Fto-erva-9@gated-at.bofh.it> |
Package: hurd Version: 1:0.9.git20250622-2 Severity: important X-Debbugs-Cc: martin-eric.racine@iki.fi (Reading database ... 39803 files and directories currently installed.) Preparing to unpack .../hurd-dev_1%3a0.9.git20250622-2_hurd-i386.deb ... Unpacking hurd-dev (1:0.9.git20250622-2) over (1:0.9.git20250622-1) ... Preparing to unpack .../hurd-libs0.3_1%3a0.9.git20250622-2_hurd-i386.deb ... Unpacking hurd-libs0.3:hurd-i386 (1:0.9.git20250622-2) over (1:0.9.git20250622-1) ... Setting up hurd-libs0.3:hurd-i386 (1:0.9.git20250622-2) ... (Reading database ... 39803 files and directories currently installed.) Preparing to unpack .../hurd_1%3a0.9.git20250622-2_hurd-i386.deb ... Unpacking hurd (1:0.9.git20250622-2) over (1:0.9.git20250622-1) ... Setting up hurd (1:0.9.git20250622-2) ... update-alternatives: warning: forcing reinstallation of alternative /usr/bin/w-hurd because link group w is broken update-alternatives: warning: not replacing /usr/bin/w with a link Restarting Hurd console multiplexer: hurd-console. Setting up translators: /hurd/exec /hurd/proxy-defpager /hurd/pflocal (+link) inet (+link) inet6 (+link) /hurd/pci-arbiter /hurd/acpi /hurd/shutdown /hurd/password crash-kill crash-suspend crash-dump-core crash. Creating device nodes: fdln: failed to access 'stdin/0': Not a directory ln: failed to access 'stdout/1': Not a directory ln: failed to access 'stderr/2': Not a directory fdX stdsettrans: console: Device or resource busy ln: failed to access 'stdin/0': Not a directory ln: failed to access 'stdout/1': Not a directory ln: failed to access 'stderr/2': Not a directory vcs hdX hdXsY hdXs1Y sdX sdXsY sdXs1Y rumpdisk wdX wdXsY wdXs1Y cdX netdde ethX pseudo-root rtc loopX ttyX ptyp ptyq lprX comX random urandom kbd mouse shm. (Reading database ... 39804 files and directories currently installed.) Preparing to unpack .../python3-minimal_3.13.5-1_hurd-i386.deb ... Unpacking python3-minimal (3.13.5-1) over (3.13.4-1) ... Setting up python3-minimal (3.13.5-1) ... -- System Information: Debian Release: 13.0 APT prefers unreleased APT policy: (995, 'unreleased'), (990, 'unstable') Architecture: hurd-i386 (i686-AT386) Kernel: GNU-Mach 1.8+git20250304-up-486/Hurd-0.9 Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE=fi:en Shell: /bin/sh linked to /usr/bin/dash Init: sysvinit (via /sbin/init) Versions of packages hurd depends on: ii hurd-libs0.3 1:0.9.git20250622-2 ii init-system-helpers 1.68 ii less 668-1 ii libacpica0 0~20220331-4 ii libblkid1 2.40.2-12 ii libc0.3 2.41-9 ii libdaemon0 0.14-7.1+b2 ii libgcrypt20 1.11.0-6 ii liblwip0t64 2.2.1+dfsg1-1 ii libncursesw6 6.5+20250216-2 ii libpciaccess0 0.17-3+b3 ii libtinfo6 6.5+20250216-2 ii libxkbcommon0 1.7.0-2 ii passwd 1:4.17.2-5+hurd.1 ii sysv-rc 3.14-4 ii xkb-data 2.42-1 Versions of packages hurd recommends: ii bf-utf-source 0.08+nmu2 ii netdde 0.0.20200330-12 Versions of packages hurd suggests: pn hurd-doc <none> -- no debconf information
[toc] | [next] | [standalone]
| From | Samuel Thibault <sthibault@debian.org> |
|---|---|
| Date | 2025-07-01 11:40 +0200 |
| Message-ID | <L3FD3-erys-3@gated-at.bofh.it> |
| In reply to | #1251571 |
Hello, Martin-Éric Racine, le mar. 01 juil. 2025 12:07:56 +0300, a ecrit: > ln: failed to access 'stdin/0': Not a directory > ln: failed to access 'stdout/1': Not a directory > ln: failed to access 'stderr/2': Not a directory This is because cmd ln -f -s fd/0 stdin does not take care of the case when /dev/stdin already exist. This doesn't have any consequence, but could be fixed by checking whether the symlink already exists. > settrans: console: Device or resource busy This is more surpring since -K is passed, so st() is supposed to check that the translator is already set up. That needs some more investigation in the MAKEDEV script. Samuel
[toc] | [prev] | [next] | [standalone]
| From | Samuel Thibault <sthibault@debian.org> |
|---|---|
| Date | 2025-07-03 12:00 +0200 |
| Message-ID | <L4oTv-eVal-3@gated-at.bofh.it> |
| In reply to | #1251571 |
Martin-Éric Racine, le jeu. 03 juil. 2025 12:43:53 +0300, a ecrit: > ti 1.7.2025 klo 12.38 Samuel Thibault (sthibault@debian.org) kirjoitti: > > > settrans: console: Device or resource busy > > > > This is more surpring since -K is passed, so st() is supposed to check > > that the translator is already set up. That needs some more > > investigation in the MAKEDEV script. > > This one apparently works better now: ? There is no difference that I can see. > Preparing to unpack .../hurd_1%3a0.9.git20250622-3+b1_hurd-i386.deb ... > Unpacking hurd (1:0.9.git20250622-3+b1) over (1:0.9.git20250622-2) ... > Setting up hurd (1:0.9.git20250622-3+b1) ... > update-alternatives: warning: forcing reinstallation of alternative > /usr/bin/w-hurd because link group w is broken > update-alternatives: warning: not replacing /usr/bin/w with a link > Restarting Hurd console multiplexer: hurd-console. > Setting up translators: /hurd/exec /hurd/proxy-defpager /hurd/pflocal > (+link) inet (+link) inet6 (+link) /hurd/pci-arbiter /hurd/acpi > /hurd/shutdown /hurd/password crash-kill crash-suspend crash-dump-core > crash. > Creating device nodes: fdln: failed to access 'stdin/0': Not a directory > ln: failed to access 'stdout/1': Not a directory > ln: failed to access 'stderr/2': Not a directory > fdX stdsettrans: console: Device or resource busy > ln: failed to access 'stdin/0': Not a directory > ln: failed to access 'stdout/1': Not a directory > ln: failed to access 'stderr/2': Not a directory > vcs hdX hdXsY hdXs1Y sdX sdXsY sdXs1Y rumpdisk wdX wdXsY wdXs1Y > rumpusbdisk udX udXsY udXs1Y cdX netdde ethX pseudo-root rtc loopX > ttyX ptyp ptyq lprX comX random urandom kbd mouse shm. > (Reading database ... 39849 files and directories currently installed.) > Preparing to unpack .../gnumach-common_2%3a1.8+git20250702-1_hurd-i386.deb ...
[toc] | [prev] | [next] | [standalone]
| From | Samuel Thibault <sthibault@debian.org> |
|---|---|
| Date | 2025-08-22 13:30 +0200 |
| Message-ID | <Lmy82-9uJE-9@gated-at.bofh.it> |
| In reply to | #1251571 |
Martin-Éric Racine, le ven. 22 août 2025 13:47:21 +0300, a ecrit: > ti 1.7.2025 klo 12.38 Samuel Thibault (sthibault@debian.org) kirjoitti: > > > > Hello, > > > > Martin-Éric Racine, le mar. 01 juil. 2025 12:07:56 +0300, a ecrit: > > > ln: failed to access 'stdin/0': Not a directory > > > ln: failed to access 'stdout/1': Not a directory > > > ln: failed to access 'stderr/2': Not a directory > > > > This is because > > > > cmd ln -f -s fd/0 stdin > > > > does not take care of the case when /dev/stdin already exist. This > > doesn't have any consequence, but could be fixed by checking whether the > > symlink already exists. > > Still not fixed as of Hurd 1:0.9.git20250801-3. Sure, it "just" needs somebody to take care of it. "could" above doesn't mean that I plan to take the time to fix it. > $ ls -al stdin stdout stderr > lrwxrwxrwx 1 root root 4 2025-05-01 21:11 stderr -> fd/2 > lrwxrwxrwx 1 root root 4 2025-05-01 21:11 stdin -> fd/0 > lrwxrwxrwx 1 root root 4 2025-05-01 21:11 stdout -> fd/1 > > It really should ship with a script to normalize this as needed. Contribution is always welcome. Samuel
[toc] | [prev] | [next] | [standalone]
| From | Samuel Thibault <sthibault@debian.org> |
|---|---|
| Date | 2025-08-23 22:30 +0200 |
| Message-ID | <Ln329-9OZB-7@gated-at.bofh.it> |
| In reply to | #1251571 |
Stéphane Glondu, le sam. 23 août 2025 12:55:53 +0200, a ecrit:
> Ah, OK. Then isn't simply adding -T to ln enough?
>
> Attached is an updated patch.
It seems to be doing it, applied, thanks!
> From 43bc9b8f4aaf540f83b998a715f5889160dae744 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?St=C3=A9phane=20Glondu?= <steph@glondu.net>
> Date: Sat, 23 Aug 2025 10:42:51 +0100
> Subject: [PATCH] Do not fail if std{in,out,err} exist in MAKEDEV (Closes:
> #1108605)
>
> ---
> sutils/MAKEDEV.sh | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/sutils/MAKEDEV.sh b/sutils/MAKEDEV.sh
> index 637c156..c664259 100644
> --- a/sutils/MAKEDEV.sh
> +++ b/sutils/MAKEDEV.sh
> @@ -149,9 +149,9 @@ mkdev() {
> st $I root 666 c /hurd/magic tty;;
> fd)
> st $I root 666 d /hurd/magic --directory fd
> - cmd ln -f -s fd/0 stdin
> - cmd ln -f -s fd/1 stdout
> - cmd ln -f -s fd/2 stderr
> + cmd ln -f -s -T fd/0 stdin
> + cmd ln -f -s -T fd/1 stdout
> + cmd ln -f -s -T fd/2 stderr
> ;;
> 'time')
> st $I root 644 c /hurd/storeio --no-cache time ;;
> --
> 2.50.1
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web