Great, that did the trick. Thanks.


On Mon, Apr 21, 2014 at 12:44 PM, Magnus Therning <magnus@therning.org> wrote:
On Mon, Apr 21, 2014 at 11:23:40AM -0700, Richard Wallace wrote:
> I'd like to try and get taffybar added to habs so I'm trying to learn how
> to build packages and all that.  The first one I'm trying it
> HStringTemplate, which should be simple as all dependencies are available.
>  But for some reason, it fails to build.
>
> *** Building in /home/rwallace/Development/habs/haskell-hstringtemplate
> :: Synchronizing package databases...
>  haskell-core is up to date
>  core is up to date
>  extra is up to date
>  community is up to date
> :: Starting full system upgrade...
>  there is nothing to do
>
> ==> Making package: haskell-hstringtemplate 0.7.3-1 (Mon Apr 21 11:18:03
> MST 2014)
> ==> Retrieving sources...
>   -> Downloading HStringTemplate-0.7.3.tar.gz...
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
>  Current
>                                  Dload  Upload   Total   Spent    Left
>  Speed
>   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
>   0
>   0     0    0 15961    0     0  17499      0 --:--:-- --:--:-- --:--:--
> 17499
> ==> Validating source files with sha256sums...
>     HStringTemplate-0.7.3.tar.gz ... Passed
> ==> Making package: haskell-hstringtemplate 0.7.3-1 (Mon Apr 21 11:18:04
> MST 2014)
> ==> Checking runtime dependencies...
> ==> Installing missing dependencies...
> warning: downgrading package ghc (7.8.2-1 => 7.6.3-1)
> resolving dependencies...
> looking for inter-conflicts...
> error: failed to prepare transaction (could not satisfy dependencies)
> :: haskell-text: requires ghc=7.8.2-1
> :: haskell-blaze-builder: requires ghc=7.8.2-1
> :: haskell-mtl: requires ghc=7.8.2-1
> :: haskell-parsec: requires ghc=7.8.2-1
> :: haskell-syb: requires ghc=7.8.2-1
> :: haskell-utf8-string: requires ghc=7.8.2-1
> :: haskell-hashable: requires ghc=7.8.2-1
> :: haskell-nats: requires ghc=7.8.2-1
> :: haskell-unordered-containers: requires ghc=7.8.2-1
> :: haskell-semigroups: requires ghc=7.8.2-1
> :: haskell-void: requires ghc=7.8.2-1
> ==> ERROR: 'pacman' failed to install missing dependencies.
>
> ==> ERROR: Build failed, check
> /home/rwallace/Development/habs/x86_64-chroot/build/build
> *** ERROR: Trapped ERR, something went very wrong.
>
> Seems it is trying to use ghc 7.6.3 for some reason.  Checking the
> haskell-hstringtemplate/PKGBUILD I find
>
> depends=("ghc=7.6.3-1"
>          "haskell-blaze-builder=0.3.3.2-58"
>          "haskell-mtl=2.1.3.1-3"
>          "haskell-parsec=3.1.5-59"
>          "haskell-syb=0.4.1-55"
>          "haskell-text=1.1.0.1-3"
>          "haskell-utf8-string=0.3.7-55"
>          "haskell-void=0.6.1-61")
>
> I tried with another already existing package and the same is true,
> the ghc dependency is listed as 7.6.3-1.
>
> What's going on? What am I missing?

What's going on is that I haven't pushed out a new version of
`cblrepo` yet :(

There are two ways out of this:

1. Re-build all the PKGBUILDs using
   `cblrepo pkgbuild --ghc-version 7.8.2`.
2. Run the script `./ghc/helpers/adjust-ghc.sh */PKGBUILD`.

/M

--
Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

The results point out the fragility of programmer expertise: advanced
programmers have strong expectations about what programs should look like,
and when those expectations are violated--in seemingly innocuous
ways--their performance drops drastically.
     -- Elliot Soloway and Kate Ehrlich

_______________________________________________
arch-haskell mailing list
arch-haskell@haskell.org
http://www.haskell.org/mailman/listinfo/arch-haskell