[MacPorts] #37229: hs-cabal path and config file
#37229: hs-cabal path and config file --------------------------+-------------------------------- Reporter: yusuhail@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: config; path | Port: hs-cabal --------------------------+-------------------------------- I just installed the hs-cabal port. 1. It installed a file cabal-0.14.0 in /opt/local/bin. Shouldn't the executable be called just cabal? 2. I tried to install {{{ $ cabal-0.14.0 install git-annex --bindir=$HOME/bin Config file path source is default config file. Config file /Users/name/.cabal/config not found. Writing default configuration to /Users/name/.cabal/config Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal update' to download it. cabal-0.14.0: There is no package named 'git-annex'. You may need to run 'cabal update' to get the latest list of available packages. }}} So I try to update the packages. {{{ $ cabal-0.14.0 update Downloading the latest package list from hackage.haskell.org Note: there is a new version of cabal-install available. To upgrade, run: cabal install cabal-install }}} So I try to install cabal-install {{{ $ cabal-0.14.0 install cabal-install Resolving dependencies... Downloading Cabal-1.16.0.3... ... (a lot of lines) Linking dist/build/cabal/cabal ... Installing executable(s) in /Users/name/.cabal/bin }}} Now I have two executables, one at /opt/local/bin/cabal-0.14.0, and the other at $HOME/.cabal/bin/cabal. Which one should I use? Is there something wrong with the way the paths are configured in the port, or am I doing something wrong? -- Ticket URL: <https://trac.macports.org/ticket/37229> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37229: hs-cabal path and config file -------------------------+----------------------- Reporter: yusuhail@… | Owner: gwright@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: hs-cabal | -------------------------+----------------------- Changes (by macsforever2000@…): * keywords: config; path => * owner: macports-tickets@… => gwright@… Comment: In the future, please Cc the port maintainer(s). -- Ticket URL: <https://trac.macports.org/ticket/37229#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37229: hs-cabal path and config file -------------------------------+----------------------- Reporter: yusuhail@… | Owner: gwright@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: invalid | Keywords: Port: hs-cabal-install | -------------------------------+----------------------- Changes (by cal@…): * cc: cal@… (added) * status: new => closed * resolution: => invalid * port: hs-cabal => hs-cabal-install Comment: I think this ticket is obsolete since the switch to the `hs-cabal-install` port, which actually provides `/opt/local/bin/cabal`. Please do not use cabal's built-in method to update it, but rather file a bug and have it updated in MacPorts, if that happens again. MacPorts does not use cabal to install haskell software in `/opt/local`. -- Ticket URL: <https://trac.macports.org/ticket/37229#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts