Bug#981650: libc6-dev: Update flag bit defines in fcntl.h on hppa
Package: libc6-dev
Version: 2.31-9
Severity: normal
Tags: patch
Dear Maintainer,
Several flags in fcntl.h need updating to match the current kernel support
for hppa. In particular, the define for O_NONBLOCK has changed. The defines
for __O_RSYNC and O_BLKSEEK are removed. They are not used in Linux.
These defines are fixed upstream in master.
This caused a build failure for tor package:
util/socket_ipv4: [forking]
FAIL ../src/test/test_util.c:5432: assert(fd_is_nonblocking(fd2) OP_EQ 1): 0 vs 1
[socket_ipv4 FAILED]
util/socket_ipv6: [forking]
FAIL ../src/test/test_util.c:5432: assert(fd_is_nonblocking(fd2) OP_EQ 1): 0 vs 1
[socket_ipv6 FAILED]
Please install.
Regards,
Dave Anglin
-- System Information:
Debian Release: bullseye/sid
APT prefers buildd-unstable
APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)
Kernel: Linux 5.10.12+ (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libc6-dev depends on:
ii libc-dev-bin 2.31-9
ii libc6 2.31-9
ii libcrypt-dev 1:4.4.17-1
ii libnsl-dev 1.3.0-2
ii linux-libc-dev 5.10.12-1
libc6-dev recommends no packages.
Versions of packages libc6-dev suggests:
ii glibc-doc 2.31-9
ii manpages-dev 5.10-1
-- no debconf information
Index: glibc-2.31/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
===================================================================
--- glibc-2.31.orig/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
+++ glibc-2.31/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
@@ -24,14 +24,11 @@
#define O_EXCL 00002000 /* not fcntl */
#define O_NOCTTY 00400000 /* not fcntl */
#define O_APPEND 00000010
-#define O_NONBLOCK 00200004 /* HPUX has separate NDELAY & NONBLOCK */
+#define O_NONBLOCK 00200000
#define __O_DSYNC 01000000
-#define __O_RSYNC 02000000 /* HPUX only */
#define __O_SYNC 00100000
#define O_SYNC (__O_SYNC|__O_DSYNC)
-#define O_BLKSEEK 00000100 /* HPUX only */
-
#define __O_DIRECTORY 000010000 /* Must be a directory. */
#define __O_NOFOLLOW 000000200 /* Do not follow links. */
#define __O_CLOEXEC 010000000 /* Set close_on_exec. */
Reply to: