[Bug 214966] New port: x11-toolkits/hs-gtk3: Haskell bindings for GTK 3.0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jan 14 09:29:26 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214966
arrowd <6yearold at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |6yearold at gmail.com
--- Comment #2 from arrowd <6yearold at gmail.com> ---
At this point it doesn't compile with current GHC. After updating to the latest
upstream version it should do, I presume. I can do that when I find free time,
but OP is also invited to do that.
Error log:
===> Configuring for hs-gtk3-0.14.2
[1 of 2] Compiling SetupWrapper ( SetupWrapper.hs, SetupWrapper.o )
SetupWrapper.hs:86:16: error:
* Couldn't match expected type `IO (PackageIndex.PackageIndex a0)'
with actual type `ProgramConfiguration
-> IO PackageIndex.InstalledPackageIndex'
* Probable cause: `getInstalledPackages' is applied to too few arguments
In a stmt of a 'do' block:
index <- getInstalledPackages verbosity usePackageDB conf
In the expression:
do { index <- getInstalledPackages verbosity usePackageDB conf;
let cabalDep
= Dependency
(PackageName "Cabal") (orLaterVersion useCabalVersion);
case PackageIndex.lookupDependency index cabalDep of {
[]
-> die
$ "The package requires Cabal library version "
++
display useCabalVersion ++ " but no suitable version is
installed."
pkgs -> return $ bestVersion (map fst pkgs) } }
In an equation for `installedCabalVersion':
installedCabalVersion comp conf
= do { index <- getInstalledPackages verbosity usePackageDB conf;
let cabalDep = ...;
case PackageIndex.lookupDependency index cabalDep of {
[]
-> die
$ "The package requires Cabal library version "
++
display useCabalVersion ++ " but no suitable
version is installed."
pkgs -> return $ bestVersion (map fst pkgs) } }
where
bestVersion = maximumBy (comparing preference)
preference version
= (sameVersion, sameMajorVersion, stableVersion,
latestVersion)
where
sameVersion = version == cabalVersion
sameMajorVersion
= majorVersion version == majorVersion cabalVersion
....
SetupWrapper.hs:86:47: error:
* Couldn't match expected type `Compiler'
with actual type `[PackageDB]'
* In the second argument of `getInstalledPackages', namely
`usePackageDB'
In a stmt of a 'do' block:
index <- getInstalledPackages verbosity usePackageDB conf
In the expression:
do { index <- getInstalledPackages verbosity usePackageDB conf;
let cabalDep
= Dependency
(PackageName "Cabal") (orLaterVersion useCabalVersion);
case PackageIndex.lookupDependency index cabalDep of {
[]
-> die
$ "The package requires Cabal library version "
++
display useCabalVersion ++ " but no suitable version is
installed."
pkgs -> return $ bestVersion (map fst pkgs) } }
SetupWrapper.hs:120:54: error:
* Couldn't match type `Distribution.Simple.Program.Db.ProgramDb'
with `[PackageDB]'
Expected type: PackageDBStack
Actual type: ProgramConfiguration
* In the second argument of `cabalLibVersionToUse', namely `conf'
In a stmt of a 'do' block:
cabalLibVersion <- cabalLibVersionToUse comp conf
In the second argument of `($)', namely
`do { debug verbosity "Setup script is out of date, compiling...";
(comp, _, conf) <- configCompilerEx
(Just GHC) Nothing Nothing
defaultProgramConfiguration verbosity;
cabalLibVersion <- cabalLibVersionToUse comp conf;
let cabalPkgid
= PackageIdentifier (PackageName "Cabal") cabalLibVersion;
.... }'
*** Error code 1
Stop.
make: stopped in /usr/ports/x11-toolkits/hs-gtk3
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list