[arch-haskell] ghc 7.4.1 in a temporary repo
Magnus Therning
magnus at therning.org
Wed Feb 15 10:50:00 CET 2012
On Wed, Feb 15, 2012 at 10:28, Adrien Haxaire <adrien at haxaire.org> wrote:
> On Tue, 14 Feb 2012 13:01:05 +0100, Magnus Therning wrote:
>>
>> Start with cleaning up your ah-ghc74 directory (you can use `git
>> clean` for that) and make sure you have `cblrepo` in your path. Then
>> the following steps ought to do the job:
>>
>> $ cd ah-ghc74
>> $ cblrepo build $(cblrepo list | cut -f1 -d\ ) > ,,build-order
>> $ cblrepo pkgbuild $(cat ,,build-order)
>> $ ./makeahpkg -x -- ghc $(cat ,,build-order)
>
> Seems it built successfully.
>
> I started with a cblrepo sync to initialize it. Here are the
> files/directories in my ah-ghc74 directory after running the scripts:
Ah, yes, you do need to sync it first, I tend to forget that step all
the time when writing down instructions.
> ,,build-order
> cblrepo.db
> ghc
> haskell-ansi-terminal
[...]
> haskell-zlib
> i686-chroot
> makeahpkg
> patches
You'll find all the built packages under `ghc` and `haskell-*`.
> I made a copy of it for safety, then tried to install it:
>
> sudo pacman -U ghc/ghc-7.4.1-1-i686.pkg.tar.xz
> Mot de passe :
> chargement des paquets…
> résolution des dépendances...
> recherche des conflits entre paquets...
> Erreur : la préparation de la transaction a échoué (la satisfaction des
> dépendances a échoué)
> :: haskell-cpphs : requiert ghc=7.0.3-2
> :: haskell-ghc-paths : requiert ghc=7.0.3-2
> :: haskell-haskell-src-exts : requiert ghc=7.0.3-2
> :: haskell-hlint : requiert ghc=7.0.3-2
> :: haskell-hscolour : requiert ghc=7.0.3-2
> :: haskell-hscolour : requiert haskell-containers=0.4.0.0
> :: haskell-hunit : requiert ghc=7.0.3-2
> :: haskell-json : requiert ghc=7.0.3-2
> :: haskell-json : requiert haskell-array=0.3.0.2
> :: haskell-json : requiert haskell-bytestring=0.9.1.10
> :: haskell-json : requiert haskell-containers=0.4.0.0
> :: haskell-json : requiert haskell-pretty=1.0.1.2
> :: haskell-mtl : requiert ghc=7.0.3-2
> :: haskell-parsec : requiert ghc=7.0.3-2
> :: haskell-primitive : requiert ghc=7.0.3-2
> :: haskell-quickcheck : requiert ghc=7.0.3-2
> :: haskell-syb : requiert ghc=7.0.3-2
> :: haskell-transformers : requiert ghc=7.0.3-2
> :: haskell-uniplate : requiert ghc=7.0.3-2
> :: haskell-vector : requiert ghc=7.0.3-2
> :: haskell-xhtml : requiert ghc=7.0.3-2
>
> It says it cannot resolve the dependencies, namely ghc 7.0.3-2, but ghc
> --version gives: The Glorious Glasgow Haskell Compilation System, version
> 7.0.3.
>
> Any clue? I did not update my arch for a while, maybe this is why.
You have a number of installed haskell packages that require ghc
7.0.3-2 on your system. Remove those first (e.g. `pacman -Rncs ghc`),
then you should have no problems installing the newly built one.
> By the way, where should I upload it when finished?
Good question. Do you have any place where you can keep them long
enough for me to copy them over?
/M
--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: magnus at therning.org jabber: magnus at therning.org
twitter: magthe http://therning.org/magnus
More information about the arch-haskell
mailing list