Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916263 - dev-haskell/cabal-install-3.4.1.0-r3 fails to install if CABAL_CHDEPS' base items are not commented out
Summary: dev-haskell/cabal-install-3.4.1.0-r3 fails to install if CABAL_CHDEPS' base i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-25 13:01 UTC by Paul Preney
Modified: 2023-11-19 18:39 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Preney 2023-10-25 13:01:57 UTC
In cabal-install-3.4.1.0-r3.ebuild if:

  CABAL_CHDEPS=(
      'base       >= 4.8      && < 4.15' 'base >= 4.8'
      'hashable   >= 1.0      && < 1.4' 'hashable >=1.0'
      'HTTP       >= 4000.1.5 && < 4000.4' 'HTTP       >= 4000.1.5 && < 4000.5'
  )

is commented out like this:

  CABAL_CHDEPS=(
      #'base       >= 4.8      && < 4.15' 'base >= 4.8'
      'hashable   >= 1.0      && < 1.4' 'hashable >=1.0'
      'HTTP       >= 4000.1.5 && < 4000.4' 'HTTP       >= 4000.1.5 && < 4000.5'
  )

then dev-haskell/cabal-install will install otherwise it will not due to this error:

   * Messages for package dev-haskell/cabal-install-3.4.1.0-r3:
  
   * ERROR: dev-haskell/cabal-install-3.4.1.0-r3::gentoo failed (prepare phase):
   *   no trigger for 'base       >= 4.8      && < 4.15'
   * 
   * Call stack:
   *     ebuild.sh, line  136:  Called src_prepare
   *   environment, line 1982:  Called haskell-cabal_src_prepare
   *   environment, line 1662:  Called cabal_chdeps 'base       >= 4.8      && <   4.15' 'base >= 4.8' 'hashable   >= 1.0      && < 1.4' 'hashable >=1.0' 'HTTP     >= 4000.1.5 && < 4000.4' 'HTTP       >= 4000.1.5 && < 4000.5'
   *   environment, line  758:  Called die
   * The specific snippet of code:
   *           [[ "${next_c}" == "${new_c}" ]] && die "no trigger for '${from_pat}'";

What does base refer to as presumably there is a dependency not properly set in the ebuild for dev-haskell/cabal-install? HTTP appears to refer to dev-haskell/http and hashable to dev-haskell/hashable.
Comment 1 Larry the Git Cow gentoo-dev 2023-11-19 18:39:39 UTC
The bug has been closed via the following commit(s):

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

commit edbb4e70b6fb4d9eca3f47e2d6270a8aa149b7a7
Author:     hololeap <hololeap@protonmail.com>
AuthorDate: 2023-11-03 15:50:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-11-19 18:32:25 +0000

    dev-haskell/cabal-install: Fix CABAL_CHDEPS line
    
    cabal-install-3.4.1.0 has an updated dependency for base in it's 2nd
    Hackage revision. This updates the string in CABAL_CHDEPS to avoid
    "no trigger for" errors.
    
    Closes: https://bugs.gentoo.org/916263
    Signed-off-by: hololeap <hololeap@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-haskell/cabal-install/cabal-install-3.4.1.0-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)