Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 799077 - dev-haskell/cairo-0.13.8.1-r1 - /.../Setup.hs: error:
Summary: dev-haskell/cairo-0.13.8.1-r1 - /.../Setup.hs: error:
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
: 776637 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-06-28 15:03 UTC by Toralf Förster
Modified: 2021-07-27 09:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.57 KB, text/plain)
2021-06-28 15:03 UTC, Toralf Förster
Details
dev-haskell:cairo-0.13.8.1-r1:20210628-145605.log (dev-haskell:cairo-0.13.8.1-r1:20210628-145605.log,4.64 KB, text/plain)
2021-06-28 15:03 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,345.50 KB, text/plain)
2021-06-28 15:03 UTC, Toralf Förster
Details
environment (environment,78.39 KB, text/plain)
2021-06-28 15:03 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,19.97 KB, application/x-bzip)
2021-06-28 15:03 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,20.26 KB, application/x-bzip)
2021-06-28 15:03 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-06-28 15:03:48 UTC
[1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/cairo-0.13.8.1-r1/work/cairo-0.13.8.1/Setup.hs, /var/tmp/portage/dev-haskell/cairo-0.13.8.1-r1/work/cairo-0.13.8.1/Setup.o )

/var/tmp/portage/dev-haskell/cairo-0.13.8.1-r1/work/cairo-0.13.8.1/Setup.hs:8:29: error:
    • Couldn't match expected type ‘Distribution.Simple.UserHooks.UserHooks’
                  with actual type ‘Cabal-3.2.1.0:Distribution.Simple.UserHooks.UserHooks’
      NB: ‘Cabal-3.2.1.0:Distribution.Simple.UserHooks.UserHooks’
            is defined in ‘Distribution.Simple.UserHooks’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j3-20210622-144814

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.9.5
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.53.0 *
The following VMs are available for generation-2:
1)	JamVM JDK 2.0.0 [jamvm]
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   jamvm 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  HEAD of ::gentoo
commit f1d0affc74180d249299f853590f7f7f0fba4ebb
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jun 28 14:07:07 2021 +0000

    2021-06-28 14:07:06 UTC

emerge -qpvO dev-haskell/cairo
[ebuild  N    ] dev-haskell/cairo-0.13.8.1-r1  USE="pdf postscript svg -doc -hscolour -profile"
Comment 1 Toralf Förster gentoo-dev 2021-06-28 15:03:49 UTC
Created attachment 719793 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-06-28 15:03:50 UTC
Created attachment 719796 [details]
dev-haskell:cairo-0.13.8.1-r1:20210628-145605.log
Comment 3 Toralf Förster gentoo-dev 2021-06-28 15:03:52 UTC
Created attachment 719799 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-06-28 15:03:53 UTC
Created attachment 719802 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-06-28 15:03:55 UTC
Created attachment 719805 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-06-28 15:03:56 UTC
Created attachment 719808 [details]
temp.tar.bz2
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2021-06-29 08:30:58 UTC
>  * Using cabal-3.0.1.0.
>  * Prepending /usr/lib64/ghc-8.10.4 to LD_LIBRARY_PATH
> /usr/bin/ghc -package Cabal-3.0.1.0 --make /var/tmp/portage/dev-haskell/cairo-0.13.8.1-r1/work/cairo-0.13.8.1/Setup.hs -j3 +RTS -A256M -qb0 -RTS -threaded -dynamic -o setup
> [1 of 1] Compiling Main             ( /var/tmp/portage/dev-haskell/cairo-0.13.8.1-r1/work/cairo-0.13.8.1/Setup.hs, /var/tmp/portage/dev-haskell/cairo-0.13.8.1-r1/work/cairo-0.13.8.1/Setup.o )
> 
> /var/tmp/portage/dev-haskell/cairo-0.13.8.1-r1/work/cairo-0.13.8.1/Setup.hs:8:29: error:
>     • Couldn't match expected type ‘Distribution.Simple.UserHooks.UserHooks’
>                   with actual type ‘Cabal-3.2.1.0:Distribution.Simple.UserHooks.UserHooks’
>       NB: ‘Cabal-3.2.1.0:Distribution.Simple.UserHooks.UserHooks’
>             is defined in ‘Distribution.Simple.UserHooks’
>                 in package ‘Cabal-3.2.1.0’
>           ‘Distribution.Simple.UserHooks.UserHooks’
>             is defined in ‘Distribution.Simple.UserHooks’
>                 in package ‘Cabal-3.0.1.0’

That's a bit strange: dev-haskell/gtk2hs-buildtools is built against most recent-3.2.1.0, but current ebuild pulls in older Cabal.

That happens because something causes downgrade:

> 2021-06-23T08:07:34 >>> dev-haskell/cabal-3.2.1.0-r1
...
> 2021-06-24T20:34:26 >>> dev-haskell/cabal-3.0.1.0
...
> 2021-06-27T12:15:56 >>> dev-haskell/gtk2hs-buildtools-0.13.8.0-r1

Are these binpkgs by chance?
Comment 8 Toralf Förster gentoo-dev 2021-06-29 09:38:20 UTC
(In reply to Sergei Trofimovich from comment #7)

> Are these binpkgs by chance?

No, at the tinderbox I do not build bin packages (I just emerge them ofc).
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-25 08:24:22 UTC
Aha, this one pulls outdated cabal in:
    2021-06-24T20:40:12 >>> dev-haskell/hdbc-postgresql-2.3.2.7

We need to update it.
Comment 10 Larry the Git Cow gentoo-dev 2021-07-25 08:35:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f568c992ec0db6b55df2256a1875986c51d266a3

commit f568c992ec0db6b55df2256a1875986c51d266a3
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-25 08:33:01 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-25 08:33:01 +0000

    dev-haskell/hdbc-postgresql: bump up to 2.5.0.0
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/799077
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/hdbc-postgresql/Manifest               |  1 +
 .../hdbc-postgresql/hdbc-postgresql-2.5.0.0.ebuild | 51 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-27 09:14:22 UTC
*** Bug 776637 has been marked as a duplicate of this bug. ***