bug-texinfo
[Top][All Lists]
Advanced

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

Portability of mknod


From: Daniel E. Macks
Subject: Portability of mknod
Date: Sun, 27 Nov 2016 06:40:08 +0000 (UTC)
User-agent: slrn/pre1.0.3-10 (Darwin)

A bunch of info/t tests in texinfo-6.3 were SKIPped on my OS X 10.11
box, all as a result of 'mknod' being detected but then failing in
Init-inter.inc. I do have /sbin/mknod, but it's not GNUish. In
particular, it doesn't support the "p" token to cause creation of a
named FIFO pipe. If I install GNU coreutils, I do get a mknod that
behaves the way the tests want, and the tests succeed. But darwin does
have 'mkfifo', and if I use that instead of mknod, the tests also
succeed.

It's not as simple as setting an autoconf variable whose value could
be "mknod" or "mkfifo", because mkfifo implicitly knows to create
named pipes (no token to pass). That is, GNU wants:

  mknod FOO p

but darwin needs:

  mkfifo FOO

so it might be cleaner to have autoconf propagate a boolean
HAVE_GNU_MKNOD to control which commands are used. Or else autodetect
mkfifo and then propagate MKFIFO via TESTS_ENVIRONMENT (using it if
detected, else using mknod)? I can work up a patch if someone says
what sort of test/default/fallback behavior is preferred.

dan

--
Daniel Macks
address@hidden




reply via email to

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