| | 152 | |
| | 153 | COMPILING GHC ON DEBIAN ETCH |
| | 154 | ---------------------------- |
| | 155 | |
| | 156 | This is a somewhat tricky procedure at present, because installing a new ghc may |
| | 157 | make old libghc6-* packages uninstallable. The following procedure should work |
| | 158 | around that, but be warned it hasn't been tested in exactly this way. Complain |
| | 159 | on #perl6 if you have trouble. -rhr |
| | 160 | |
| | 161 | 1. Compile the new version of GHC from testing: |
| | 162 | echo 'deb-src ftp://ftp.debian.org/debian/ lenny main contrib non-free' >> /etc/apt/sources.list |
| | 163 | apt-get update |
| | 164 | apt-get build-dep ghc6 |
| | 165 | apt-get source --compile ghc6 |
| | 166 | Don't install the debs yet! |
| | 167 | 2. Remove old GHC packages |
| | 168 | dpkg --get-selections|grep ghc |
| | 169 | Check to see what you'll need to reinstall later |
| | 170 | dpkg --get-selections|grep ghc|awk '$2 == "install" {print $1}'|xargs apt-get remove |
| | 171 | dpkg --get-selections|grep libghc |
| | 172 | Make sure no libghc6-* packages are installed |
| | 173 | 3. Install new GHC |
| | 174 | dpkg -i ghc6_6.6.1-*.deb |
| | 175 | 4. Satisfy build-deps for GHC libs |
| | 176 | dpkg -i ghc6-doc_6.6.1-*.deb |
| | 177 | apt-get build-dep haddock |
| | 178 | apt-get source --compile haddock |
| | 179 | dpkg -i haddock*.deb |
| | 180 | apt-get build-dep haskell-utils |
| | 181 | apt-get source --compile haskell-utils |
| | 182 | dpkg -i haskell-utils*.deb |
| | 183 | apt-get build-dep libghc6-mtl-dev libghc6-network-dev libghc6-time-dev |
| | 184 | 5. Build and install GHC libs |
| | 185 | apt-get source --compile libghc6-mtl-dev |
| | 186 | dpkg -i libghc6-mtl-dev*.deb |
| | 187 | apt-get source --compile libghc6-network-dev |
| | 188 | dpkg -i libghc6-network-dev*.deb |
| | 189 | apt-get source --compile libghc6-time-dev |
| | 190 | dpkg -i libghc6-time-dev*.deb |