Bug#862227: haskell-posix-pty: FTBFS on non-Linux: libutil.h absent

Aaron M. Ucko ucko at debian.org
Tue May 9 23:18:13 UTC 2017


Source: haskell-posix-pty
Version: 0.2.1.1-1
Severity: important
Justification: fails to build from source

Builds of haskell-posix-pty for kFreeBSD and the Hurd have been failing:

  cbits/fork_exec_with_pty.c:19:21: error:
       fatal error: libutil.h: No such file or directory

Per
https://sources.debian.net/src/haskell-posix-pty/0.2.1.1-1/cbits/fork_exec_with_pty.c/#L16,
upstream apparently assumes that only Linux has <pty.h>, and that
other operating systems should use <libutil.h> (or <util.h>, in the
case of macOS).  AFAICT, *all* glibc systems have <pty.h>, so I'd
suggest substituting __GLIBC__ for __linux__ here.

Could you please take a look?

Thanks!

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu



More information about the Pkg-haskell-maintainers mailing list