Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 759415 - dev-haskell/persistent-test-2.0.3.0 : src/EmbedOrderTest.hs: error:
Summary: dev-haskell/persistent-test-2.0.3.0 : src/EmbedOrderTest.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:
Depends on:
Blocks:
 
Reported: 2020-12-10 21:17 UTC by Toralf Förster
Modified: 2020-12-14 08:24 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.81 KB, text/plain)
2020-12-10 21:17 UTC, Toralf Förster
Details
dev-haskell:persistent-test-2.0.3.0:20201210-204454.log (dev-haskell:persistent-test-2.0.3.0:20201210-204454.log,15.19 KB, text/plain)
2020-12-10 21:17 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,126.23 KB, text/plain)
2020-12-10 21:17 UTC, Toralf Förster
Details
environment (environment,79.71 KB, text/plain)
2020-12-10 21:17 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,15.47 KB, application/x-bzip)
2020-12-10 21:17 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,22.75 KB, application/x-bzip)
2020-12-10 21:17 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 2020-12-10 21:17:05 UTC
[ 7 of 34] Compiling EmbedOrderTest   ( src/EmbedOrderTest.hs, dist/build/EmbedOrderTest.o )

src/EmbedOrderTest.hs:16:102: error:
    • No instance for (PersistFieldSql Char)
        arising from a use of ‘sqlType’
    • In the fourth argument of ‘FieldDef’, namely

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-libressl_test-20201207-113004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
Available Python interpreters, in order of preference:
  [1]   python3.9
  [2]   python3.8 (fallback)
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
Available Rust versions:
  [1]   rust-1.48.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.272_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu Dec 10 08:05:20 PM UTC 2020
/var/db/repos/libressl	Wed Dec  9 02:37:52 PM UTC 2020

emerge -qpvO dev-haskell/persistent-test
[ebuild  N    ] dev-haskell/persistent-test-2.0.3.0  USE="-doc -hscolour -profile"
Comment 1 Toralf Förster gentoo-dev 2020-12-10 21:17:06 UTC
Created attachment 677779 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-12-10 21:17:07 UTC
Created attachment 677782 [details]
dev-haskell:persistent-test-2.0.3.0:20201210-204454.log
Comment 3 Toralf Förster gentoo-dev 2020-12-10 21:17:09 UTC
Created attachment 677785 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-12-10 21:17:10 UTC
Created attachment 677788 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-12-10 21:17:11 UTC
Created attachment 677791 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-12-10 21:17:13 UTC
Created attachment 677794 [details]
temp.tbz2
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2020-12-13 12:29:16 UTC
Test passes here fine. The only difference in direct depends it a monad-logger delta:

good: Dependency monad-logger >=0.3.25: using monad-logger-0.3.35
bad:  Dependency monad-logger >=0.3.25: using monad-logger-0.3.32

and it does not seem to define any extra instances. Probably some other intermediate depend changed an API.
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2020-12-13 12:33:27 UTC
The database schema looks very standard:

```
share [mkPersist sqlSettings { mpsGeneric = True }, mkMigrate "embedOrderMigrate"] [persistUpperCase|
Foo sql=foo_embed_order
    bars [Bar]
    deriving Eq Show
Bar sql=bar_embed_order
    b String
    u String
    g String
    deriving Eq Show
|]
```

1. Does this failure happen for you every time you build a package?
2. What use flags dev-haskell/persistent was built with? Does it have USE=nooverlap by chance?
Comment 9 Toralf Förster gentoo-dev 2020-12-13 14:43:38 UTC
(In reply to Sergei Trofimovich from comment #8)
> 2. What use flags dev-haskell/persistent was built with? Does it have
> USE=nooverlap by chance?

yes, let me check this for you ;)  (b/c it is in https://bugs.gentoo.org/attachment.cgi?id=677791 too :-D )

tinderbox@mr-fox ~/run $ bw 17.1_systemd-libressl_test-20201207-113004
17_1_systemd-libressl_test-20201207-113004 /var/tmp/tb # grep lap /etc/portage/package.use/*
/etc/portage/package.use/24thrown_package_use_flags:dev-haskell/persistent                             nooverlap
17_1_systemd-libressl_test-20201207-113004 /var/tmp/tb # exit
logout
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2020-12-13 15:02:09 UTC
Ah, nice! I keep forgetting about etc.portage.tbz2!
Comment 11 Larry the Git Cow gentoo-dev 2020-12-14 08:24:02 UTC
The bug has been closed via the following commit(s):

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

commit acb4fc817d02da3c17763a66d049c805b7efaea3
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-12-14 08:23:46 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-12-14 08:23:58 +0000

    dev-haskell/persistent: disable USE=nooverlap
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/759415
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/persistent/metadata.xml               | 6 ------
 dev-haskell/persistent/persistent-2.10.5.2.ebuild | 7 ++++---
 2 files changed, 4 insertions(+), 9 deletions(-)