id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
5063	unix package has untracked dependency on libbsd	duncan		"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."	bug	new	low	7.6.2	libraries/unix	7.0.3			leon.p.smith@… v.dijk.bas@… bos	Unknown/Multiple	Unknown/Multiple	None/Unknown					
