Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

record-dot-preprocessor: Dependencies are missed #85

Open
hololeap opened this issue Jan 27, 2021 · 3 comments
Open

record-dot-preprocessor: Dependencies are missed #85

hololeap opened this issue Jan 27, 2021 · 3 comments
Labels

Comments

@hololeap
Copy link
Member

As you can see here, record-dot-preprocessor pulls in uniplate, however this is not added to the ebuild by hackport. I am running the latest hackport-9999 (b8a6814).

# hackport merge record-dot-preprocessor
accepting dep: ghc-8.4.3
Accepted depends: ["extra"]
Skipped depends: ["base >=4.8 && <5"]
Dead flags: []
Dropped flags: []
Active flags: []
Irrelevant flags: []
Current keywords: Nothing -> ["~amd64","~x86"]
Current license: Nothing -> Right "BSD"
Writing record-dot-preprocessor-0.2.7.ebuild
Recalculating digests...
Running repoman full --include-dev and pkgcheck scan...

RepoMan scours the neighborhood...
RepoMan sez: "If everyone were like you, I'd be out of business!"

Generated ebuild:

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

# ebuild generated by hackport 0.6.7.9999

CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal

DESCRIPTION="Preprocessor to allow record.field syntax"
HOMEPAGE="https://github.com/ndmitchell/record-dot-preprocessor#readme"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"

RDEPEND="dev-haskell/extra:=[profile?]
	>=dev-lang/ghc-8.4.3:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-2.2.0.1
	test? ( dev-haskell/record-hasfield )
"
@trofi
Copy link
Contributor

trofi commented Jan 27, 2021

It gets pulled in only on very fresh ghc:

    if impl(ghc >= 8.6)
        build-depends:
            record-dot-preprocessor

In your case hackport stopped at accepting dep: ghc-8.4.3.

@hololeap
Copy link
Member Author

I'm using 8.10.3: The Glorious Glasgow Haskell Compilation System, version 8.10.3

What needs to be done on my system? Could there be a stale config file somewhere?

@trofi
Copy link
Contributor

trofi commented Jan 28, 2021

Hackport does not generate ebuilds based on currently installed ghc. It tries to determine lowest ghc version enough to resolve dependencies in .cabal file and uses that ghc version to derive rest of dependencies. It does not always lead to reasonable solutions. I usually manually remove if impl(ghc >= 8.6) constraints to get hackport generate full dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants