Ticket #253 (closed enhancement: fixed)
Check for invalid operating system names
| Reported by: | duncan | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Cabal-1.4 |
| Component: | Cabal library | Version: | 1.2.3.0 |
| Severity: | normal | Keywords: | |
| Cc: | Difficulty: | easy (<4 hours) | |
| GHC Version: | 6.8.2 | Platform: |
Description
Some packages (eg hslogger-1.0.4) have incorrect operation system names tests:
if !os(win32)
Build-Depends: unix
It's incorrect because there is no such operating system "win32", there is "windows" which is an alias for "mingw32".
So we should check for these problems. At the moment the OS is just a String . We should decide if we want to use an enumeration or leave it more flexible and just warn about unknown ones.
Checks are easy to add, see Distribution/PackageDescription/Check.hs
Change History
Note: See
TracTickets for help on using
tickets.
