Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 864729

Summary: dev-haskell/regex-tdfa-1.3.2 fails tests: Could not import module: Text.Regex.TDFA.
Product: Gentoo Linux Reporter: Jonathan Lovelace <kingjon3377>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: UNCONFIRMED ---    
Severity: normal Keywords: TESTFAILURE
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-haskell:regex-tdfa-1.3.2:20220808-122124.log
emerge-info.txt

Description Jonathan Lovelace 2022-08-10 01:43:13 UTC
Created attachment 799051 [details]
dev-haskell:regex-tdfa-1.3.2:20220808-122124.log

=dev-haskell/regex-tdfa-1.3.2 fails its test phase (while upgrading from 1.3.1.1 as the first of four packages scheduled for building in a haskell-updater run). All the unit tests pass, but then we see:

Test suite doc-test: RUNNING...                                                                               
Could not import module: Text.Regex.TDFA. This can be caused by a number of issues:                           
                                                                                                              
 1. A module found by GHC contained tests, but was not in 'exposed-modules'. If you want                      
    to test non-exposed modules follow the instructions here:                                                 
    https://github.com/martijnbastiaan/doctest-parallel#test-non-exposed-modules                              
                                                                                                              
 2. For Cabal users: Cabal did not generate a GHC environment file. Either:                                   
   * Run with '--write-ghc-environment-files=always'   
   * Add 'write-ghc-environment-files: always' to your cabal.project                                          
                                                                                                              
 3. For Cabal users: Cabal did not generate a GHC environment file in time. This                              
    can happen if you use 'cabal test' instead of 'cabal run doctests'. See                                   
    https://github.com/martijnbastiaan/doctest-parallel/issues/22.                                            
                                                                                                              
 4. The testsuite executable does not have a dependency on your project library. Please                       
    add it to the 'build-depends' section of the testsuite executable.                                        
                                                                                                              
See the example project at https://github.com/martijnbastiaan/doctest-parallel/blob/main/example/README.md for
 more information.                                     
                                                                                                              
The original reason given by GHCi was:                                                                        
                                                                                                              
Error:                                                                                                        
                                                       
<no location info>: error:                                                                                    
    Could not load module ‘Text.Regex.TDFA’                                                                   
    It is a member of the package ‘regex-tdfa-1.3.1.1-5RkfvRkwT0ok2IR9T73uh’                                      which is unusable due to missing dependencies:                                                            
      regex-base-0.94.0.0-90akf7MH4gL42SgNn4lXMF                                                                                                                                                                            
Examples: 14  Tried: 0  Errors: 1  Unexpected output: 0                                                       
Test suite doc-test: FAIL                                                                                     
Test suite logged to: dist/test/regex-tdfa-1.3.2-doc-test.log
Comment 1 Jonathan Lovelace 2022-08-10 01:44:46 UTC
Created attachment 799053 [details]
emerge-info.txt