bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug#1022563: perl: FTBFS on hurd-i386: op/stat.t fails


From: Samuel Thibault
Subject: Bug#1022563: perl: FTBFS on hurd-i386: op/stat.t fails
Date: Mon, 24 Oct 2022 01:29:45 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Package: perl
Version: 5.36.0-4
Severity: normal

Hello,

On hurd-i386, op/stat.t fails like this:

not ok 36 - ls and -b agreeing on /dev (0 310)
# Failed test 36 - ls and -b agreeing on /dev (0 310) at op/stat.t line 323
#      got "0"
# expected "310"
# = before
# total 68340
# lrwxr-xr-x 1 root root       13 Oct 23 17:56 MAKEDEV -> /sbin/MAKEDEV
# -rw-r----- 1 root root        0 Nov 24  2019 cd0
# -rw-r----- 1 root root        0 Nov 24  2019 cd1
# -rw------- 1 root root        0 Nov 24  2019 com0
# -rw------- 1 root root        0 Nov 24  2019 com1
# -rw------- 1 root root        0 Nov 24  2019 com2
# -rw------- 1 root root        0 Nov 24  2019 com3
etc.

The issue is that nowadays ls doesn't manage to see that entries are
block or character devices any more. This is because it now passes
AT_NO_AUTOMOUNT to its statx call, thus preventing from actually asking
translators whether they are character or block devices (O_NOTRANS, see
glibc's 13710e7e6af6c8965cc9a63a0660cb4ce1966557).

We have the same kind of issue with e.g.

stat /dev/null

because the stat tool also passes AT_NO_AUTOMOUNT nowadays.

I'm really not sure what to do about this, since there is technically
no difference between the null translator sitting on /dev/null and
a translator configured on /net/foobar. At best we could have an
xattr that we could set on /dev/ entries, to distinguish between
AT_NO_AUTOMOUNT and O_NOTRANS.

Samuel

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 
'proposed-updates-debug'), (500, 'proposed-updates'), (500, 
'oldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), 
(500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 
'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64

Kernel: Linux 6.0.0 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages perl depends on:
ii  dpkg               1.21.9+b1
ii  libperl5.34        5.34.0-5
ii  perl-base          5.34.0-5
ii  perl-modules-5.34  5.34.0-5

Versions of packages perl recommends:
ii  netbase  6.4

Versions of packages perl suggests:
pn  libtap-harness-archive-perl  <none>
ii  libterm-readline-gnu-perl    1.43-1
ii  make                         4.3-4.1
ii  perl-doc                     5.34.0-5

-- no debconf information

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]