Bug#1017242: haskell-descriptive: FTBFS: • Couldn't match expected type ‘Key’ with actual type ‘Text’ • In the second argument of =?UTF-8?Q?=E2=80=98?=(.:)=?UTF-8?Q?=E2=80=99, ?= namely ‘k’ In the first argument of =?UTF-8?Q?=E2=80=98const=E2=80=99, ?= namely ‘?=(s .: k)=?UTF-8?Q?’ In the first argument of =?UTF-8?Q?=E2=80=98parseMaybe=E2=80=99, ?= namely ‘?=(const (s .: k))=?UTF-8?Q?’

Lucas Nussbaum lucas at debian.org
Sun Aug 14 08:42:25 BST 2022


Source: haskell-descriptive
Version: 0.9.5-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220813 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> test -x debian/rules
> dh_testroot
> dh_prep 
> dh_installdirs -A 
> mkdir -p "."
> CDBS WARNING:    DEB_DH_STRIP_ARGS is deprecated since 0.4.85
> CDBS WARNING:    DEB_COMPRESS_EXCLUDE is deprecated since 0.4.85
> Adding cdbs dependencies to debian/libghc-descriptive-doc.substvars
> dh_installdirs -plibghc-descriptive-doc \
> 	
> perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
> 	-E 'make_setup_recipe'
> Running ghc --make Setup.hs -o debian/hlibrary.setup
> [1 of 1] Compiling Main             ( Setup.hs, Setup.o )
> Linking debian/hlibrary.setup ...
> perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
> 	-E 'configure_recipe'
> Running find . ! -newer /tmp/OeJFQdNWqO -exec touch -d 1998-01-01 UTC {} ;
> Running dh_listpackages
> libghc-descriptive-dev
> libghc-descriptive-prof
> libghc-descriptive-doc
> Running dh_listpackages
> libghc-descriptive-dev
> libghc-descriptive-prof
> libghc-descriptive-doc
> Running dpkg-buildflags --get LDFLAGS
> -Wl,-z,relro
> Running debian/hlibrary.setup configure --ghc -v2 --package-db=/var/lib/ghc/package.conf.d --prefix=/usr --libdir=/usr/lib/haskell-packages/ghc/lib --libexecdir=/usr/lib --builddir=dist-ghc --ghc-option=-optl-Wl,-z,relro --haddockdir=/usr/lib/ghc-doc/haddock/descriptive-0.9.5/ --datasubdir=descriptive --htmldir=/usr/share/doc/libghc-descriptive-doc/html/ --enable-library-profiling --enable-tests
> Using Parsec parser
> Configuring descriptive-0.9.5...
> Dependency aeson >=0.7.0.5: using aeson-2.0.3.0
> Dependency base >=4.4 && <5: using base-4.15.1.0
> Dependency bifunctors: using bifunctors-5.5.12
> Dependency containers >=0.5: using containers-0.6.4.1
> Dependency mtl: using mtl-2.2.2
> Dependency scientific >=0.3.2: using scientific-0.3.7.0
> Dependency text: using text-1.2.5.0
> Dependency transformers: using transformers-0.5.6.2
> Dependency vector: using vector-0.12.3.1
> Dependency HUnit: using HUnit-1.6.2.0
> Dependency aeson: using aeson-2.0.3.0
> Dependency base: using base-4.15.1.0
> Dependency bifunctors: using bifunctors-5.5.12
> Dependency containers: using containers-0.6.4.1
> Dependency descriptive: using descriptive-0.9.5
> Dependency hspec: using hspec-2.8.5
> Dependency mtl: using mtl-2.2.2
> Dependency text: using text-1.2.5.0
> Dependency transformers: using transformers-0.5.6.2
> Source component graph:
>     component lib
>     component test:test dependency lib
> Configured component graph:
>     component descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD
>         include aeson-2.0.3.0-AMpeUvq093B6yWOa7oRnlZ
>         include base-4.15.1.0
>         include bifunctors-5.5.12-EkHRFXmt5NvB4N6g2Q7ooc
>         include containers-0.6.4.1
>         include mtl-2.2.2
>         include scientific-0.3.7.0-7BCpthzRrIo63GoBWzRPfh
>         include text-1.2.5.0
>         include transformers-0.5.6.2
>         include vector-0.12.3.1-TXkE6leK98EdYcmdk29JF
>     component descriptive-0.9.5-2wpA94z6qKhAUiIfaZuloy-test
>         include HUnit-1.6.2.0-6A7GkX10OfW69odZH6xHBm
>         include aeson-2.0.3.0-AMpeUvq093B6yWOa7oRnlZ
>         include base-4.15.1.0
>         include bifunctors-5.5.12-EkHRFXmt5NvB4N6g2Q7ooc
>         include containers-0.6.4.1
>         include descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD
>         include hspec-2.8.5-ztFhIZtg6636xJR5cbSTr
>         include mtl-2.2.2
>         include text-1.2.5.0
>         include transformers-0.5.6.2
> Linked component graph:
>     unit descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD
>         include aeson-2.0.3.0-AMpeUvq093B6yWOa7oRnlZ
>         include base-4.15.1.0
>         include bifunctors-5.5.12-EkHRFXmt5NvB4N6g2Q7ooc
>         include containers-0.6.4.1
>         include mtl-2.2.2
>         include scientific-0.3.7.0-7BCpthzRrIo63GoBWzRPfh
>         include text-1.2.5.0
>         include transformers-0.5.6.2
>         include vector-0.12.3.1-TXkE6leK98EdYcmdk29JF
>         Descriptive=descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD:Descriptive,Descriptive.Char=descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD:Descriptive.Char,Descriptive.Form=descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD:Descriptive.Form,Descriptive.Formlet=descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD:Descriptive.Formlet,Descriptive.JSON=descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD:Descriptive.JSON,Descriptive.Options=descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD:Descriptive.Options
>     unit descriptive-0.9.5-2wpA94z6qKhAUiIfaZuloy-test
>         include HUnit-1.6.2.0-6A7GkX10OfW69odZH6xHBm
>         include aeson-2.0.3.0-AMpeUvq093B6yWOa7oRnlZ
>         include base-4.15.1.0
>         include bifunctors-5.5.12-EkHRFXmt5NvB4N6g2Q7ooc
>         include containers-0.6.4.1
>         include descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD
>         include hspec-2.8.5-ztFhIZtg6636xJR5cbSTr
>         include mtl-2.2.2
>         include text-1.2.5.0
>         include transformers-0.5.6.2
> Ready component graph:
>     definite descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD
>         depends aeson-2.0.3.0-AMpeUvq093B6yWOa7oRnlZ
>         depends base-4.15.1.0
>         depends bifunctors-5.5.12-EkHRFXmt5NvB4N6g2Q7ooc
>         depends containers-0.6.4.1
>         depends mtl-2.2.2
>         depends scientific-0.3.7.0-7BCpthzRrIo63GoBWzRPfh
>         depends text-1.2.5.0
>         depends transformers-0.5.6.2
>         depends vector-0.12.3.1-TXkE6leK98EdYcmdk29JF
>     definite descriptive-0.9.5-2wpA94z6qKhAUiIfaZuloy-test
>         depends HUnit-1.6.2.0-6A7GkX10OfW69odZH6xHBm
>         depends aeson-2.0.3.0-AMpeUvq093B6yWOa7oRnlZ
>         depends base-4.15.1.0
>         depends bifunctors-5.5.12-EkHRFXmt5NvB4N6g2Q7ooc
>         depends containers-0.6.4.1
>         depends descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD
>         depends hspec-2.8.5-ztFhIZtg6636xJR5cbSTr
>         depends mtl-2.2.2
>         depends text-1.2.5.0
>         depends transformers-0.5.6.2
> Using Cabal-3.4.1.0 compiled by ghc-9.0
> Using compiler: ghc-9.0.2
> Using install prefix: /usr
> Executables installed in: /usr/bin
> Libraries installed in:
> /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-9.0.2/descriptive-0.9.5-5P2vCz4KhPqJCdag67L8cD
> Dynamic Libraries installed in:
> /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-9.0.2
> Private executables installed in:
> /usr/lib/x86_64-linux-ghc-9.0.2/descriptive-0.9.5
> Data files installed in: /usr/share/descriptive
> Documentation installed in:
> /usr/share/doc/x86_64-linux-ghc-9.0.2/descriptive-0.9.5
> Configuration files installed in: /usr/etc
> No alex found
> Using ar found on system at: /usr/bin/x86_64-linux-gnu-ar
> No c2hs found
> No cpphs found
> No doctest found
> Using gcc version 12 found on system at: /usr/bin/x86_64-linux-gnu-gcc
> Using ghc version 9.0.2 found on system at: /usr/bin/ghc
> Using ghc-pkg version 9.0.2 found on system at: /usr/bin/ghc-pkg
> No ghcjs found
> No ghcjs-pkg found
> No greencard found
> Using haddock version 2.25.1 found on system at: /usr/bin/haddock
> No happy found
> Using haskell-suite found on system at: haskell-suite-dummy-location
> Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
> No hmake found
> Using hpc version 0.68 found on system at: /usr/bin/hpc
> Using hsc2hs version 0.68.7 found on system at: /usr/bin/hsc2hs
> Using hscolour version 1.24 found on system at: /usr/bin/HsColour
> No jhc found
> Using ld found on system at: /usr/bin/x86_64-linux-gnu-ld.gold
> No pkg-config found
> Using runghc version 9.0.2 found on system at: /usr/bin/runghc
> Using strip version 2.38 found on system at: /usr/bin/strip
> Using tar found on system at: /bin/tar
> No uhc found
> touch configure-ghc-stamp
> perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
> 	-E 'build_recipe'
> Running dh_listpackages
> libghc-descriptive-dev
> libghc-descriptive-prof
> libghc-descriptive-doc
> Preprocessing library for descriptive-0.9.5..
> Building library for descriptive-0.9.5..
> [1 of 7] Compiling Descriptive      ( src/Descriptive.hs, dist-ghc/build/Descriptive.o, dist-ghc/build/Descriptive.dyn_o )
> [2 of 7] Compiling Descriptive.Char ( src/Descriptive/Char.hs, dist-ghc/build/Descriptive/Char.o, dist-ghc/build/Descriptive/Char.dyn_o )
> [3 of 7] Compiling Descriptive.Form ( src/Descriptive/Form.hs, dist-ghc/build/Descriptive/Form.o, dist-ghc/build/Descriptive/Form.dyn_o )
> [4 of 7] Compiling Descriptive.Formlet ( src/Descriptive/Formlet.hs, dist-ghc/build/Descriptive/Formlet.o, dist-ghc/build/Descriptive/Formlet.dyn_o )
> [5 of 7] Compiling Descriptive.Internal ( src/Descriptive/Internal.hs, dist-ghc/build/Descriptive/Internal.o, dist-ghc/build/Descriptive/Internal.dyn_o )
> [6 of 7] Compiling Descriptive.JSON ( src/Descriptive/JSON.hs, dist-ghc/build/Descriptive/JSON.o, dist-ghc/build/Descriptive/JSON.dyn_o )
> 
> src/Descriptive/JSON.hs:107:43: error:
>     • Couldn't match expected type ‘Key’ with actual type ‘Text’
>     • In the second argument of ‘(.:)’, namely ‘k’
>       In the first argument of ‘const’, namely ‘(s .: k)’
>       In the first argument of ‘parseMaybe’, namely ‘(const (s .: k))’
>     |
> 107 |              case parseMaybe (const (s .: k))
>     |                                           ^
> 
> src/Descriptive/JSON.hs:133:43: error:
>     • Couldn't match expected type ‘Key’ with actual type ‘Text’
>     • In the second argument of ‘(.:)’, namely ‘k’
>       In the first argument of ‘const’, namely ‘(s .: k)’
>       In the first argument of ‘parseMaybe’, namely ‘(const (s .: k))’
>     |
> 133 |              case parseMaybe (const (s .: k))
>     |                                           ^
> -e: error: debian/hlibrary.setup build --builddir=dist-ghc returned exit code 1
>  at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 852.
> 	Debian::Debhelper::Dh_Lib::error("debian/hlibrary.setup build --builddir=dist-ghc returned exit"...) called at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 596
> 	Debian::Debhelper::Dh_Lib::error_exitcode("debian/hlibrary.setup build --builddir=dist-ghc") called at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 470
> 	Debian::Debhelper::Dh_Lib::doit("debian/hlibrary.setup", "build", "--builddir=dist-ghc") called at /usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 650
> 	Debian::Debhelper::Buildsystem::Haskell::Recipes::build_recipe() called at -e line 1
> make: *** [/usr/share/cdbs/1/class/hlibrary.mk:160: build-ghc-stamp] Error 25


The full build log is available from:
http://qa-logs.debian.net/2022/08/13/haskell-descriptive_0.9.5-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220813;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220813&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-haskell-maintainers mailing list