[Hackage] #253: Check for invalid operating system names
#253: Check for invalid operating system names ----------------------------------+----------------------------------------- Reporter: duncan | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: very easy (<1 hour) | Ghcversion: 6.8.2 Platform: | ----------------------------------+----------------------------------------- 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` -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/253> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
#253: Check for invalid operating system names ----------------------------+----------------------------------------------- Reporter: duncan | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Cabal-1.4 Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * difficulty: very easy (<1 hour) => easy (<4 hours) * milestone: => Cabal-1.4 Comment: Requires an API change in Distribution.PackageDescription.Check to take the `GenericPackageDescription`. Because it's a (minor) api change we should get it into Cabal-1.4. -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/253#comment:1> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
#253: Check for invalid operating system names ----------------------------+----------------------------------------------- Reporter: duncan | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Cabal-1.4 Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Comment (by duncan): Fixed {{{ Wed Apr 23 16:14:10 BST 2008 Duncan Coutts <duncan@haskell.org> * Add checks for unknown OS Arch and Compiler names They're ok locally but for distribution they need to be known. }}} -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/253#comment:2> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
#253: Check for invalid operating system names ----------------------------+----------------------------------------------- Reporter: duncan | Owner: Type: enhancement | Status: closed Priority: normal | Milestone: Cabal-1.4 Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: fixed Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => fixed -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/253#comment:3> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
participants (1)
-
Hackage