#5063: unix package has untracked dependency on libbsd
---------------------------------+------------------------------------------
Reporter: duncan | Owner:
Type: bug | Status: new
Priority: normal | Component: libraries/unix
Version: 7.0.3 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
See ticket #4974 about unix-compat failing to build.
That is just a symptom. The real problem is that the unix package installs
a HsUnix.h file which is broken on some target platforms, standard linux
platforms.
HsUnix.h contains:
{{{
#ifdef HAVE_LIBUTIL_H
#include <libutil.h>
#endif
}}}
If the system that the package is built on has libbsd installed then it'll
use it. But if the target system does not have this C lib then the
HsUnix.h header is broken on such systems.
Why does the unix package optionally depend on libbsd? Is it really
needed?
If it is needed then the distro packages need to be modified so that the
unix package has dependency on libbsd-dev.
This raises another issue: we should be able to check that all the headers
we install on a target actually work on that target. This check should be
run as part of the ghc and HP release testing process.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5063>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs