unix package has untracked dependency on libbsd
|Reported by:||duncan||Owned by:|
|Keywords:||Cc:||leon.p.smith@…, v.dijk.bas@…, bos|
|Type of failure:||None/Unknown||Difficulty:|
|Test Case:||Blocked By:|
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.
#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.
Change History (8)
comment:7 Changed 2 years ago by igloo
- Milestone changed from 7.4.1 to 7.6.1
- Priority changed from normal to low