simplex-chat / simplex-chat/simplexmq
Dependency problem while resolving dependencies of simplexmq
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 847
- Forks
- 111
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 9
Description
While trying to create the FreeBSD port for simplexmq, I've encountered this problem:
$ make cabal-configure
cd /usr/ports/net-im/hs-simplexmq/work/simplexmq-5.4.0 && /usr/bin/env XDG_DATA_HOME=/usr/ports/net-im/hs-simplexmq/work XDG_CONFIG_HOME=/usr/ports/net-im/hs-simplexmq/work XDG_CACHE_HOME=/usr/ports/net-im/hs-simplexmq/work/.cache HOME=/usr/ports/net-im/hs-simplexmq/work PATH=/usr/local/libexec/ccache:/usr/ports/net-im/hs-simplexmq/work/.bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/usr/ports/net-im/hs-simplexmq/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " MANPREFIX="/usr/local" CCACHE_DIR="/tmp/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" XDG_DATA_HOME=/usr/ports/net-im/hs-simplexmq/work/cabal-home XDG_CONFIG_HOME=/usr/ports/net-im/hs-simplexmq/work/cabal-home XDG_CACHE_HOME=/usr/ports/net-im/hs-simplexmq/work/cabal-home HOME=/usr/ports/net-im/hs-simplexmq/work/cabal-home cabal build --dry-run --disable-benchmarks --disable-tests --flags="-relocatable" exe:smp-agent exe:smp-server
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: aeson-2.2.1.0 (user goal)
[__1] trying: template-haskell-2.19.0.0/installed-2.19.0.0 (dependency of
aeson)
[__2] next goal: simplexmq (user goal)
[__2] rejecting: simplexmq-5.4.0.7 (conflict:
template-haskell==2.19.0.0/installed-2.19.0.0, simplexmq =>
template-haskell>=2.20 && <2.21)
[__2] skipping: simplexmq-1.1.0, simplexmq-1.0.2, simplexmq-1.0.0,
simplexmq-0.5.2, simplexmq-0.5.1, simplexmq-0.5.0, simplexmq-0.4.1,
simplexmq-0.4.0, simplexmq-0.3.2, simplexmq-0.3.1 (has the same
characteristics that caused the previous version to fail: excludes
'template-haskell' version 2.19.0.0)
[__2] fail (backjumping, conflict set: simplexmq, template-haskell)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: simplexmq, aeson, template-haskell
*** Error code 1
Stop.
It doesn't like template-haskell for some reason.
Version: 5.4.0
hs-cabal-install-3.10.1.0_3
ghc-9.4.6
FreeBSD 14.0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported cabal build --dry-run command for exe:smp-agent and exe:smp-server with GHC 9.4.6 and cabal-install 3.10.1.0_3. Inspect the dependency constraints involving simplexmq, aeson, and template-haskell; done means the FreeBSD cabal-configure step resolves dependencies successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100