将最新版本的流程构建为依赖项

时间:2017-10-30 10:22:54

标签: haskell haskell-stack

为了能够取消Windows上的流程,我需要使用this fix process package,但仍未发布。我尝试在github中添加最新版本作为stack.yaml文件中的依赖项:

packages:
- '.'
- location:
    git: https://github.com/haskell/process.git
    commit: 2fb7e739771f4a899a12b45f8b392e4874616b89
  extra-dep: true

stack build命令失败:

Process exited with code: ExitFailure 1
Logs have been written to: C:\Users\nadalesagutde\Documents\github\capitanbatata\sandbox\racing-turtles\.stack-work\logs\process-1.6.1.0.log

Configuring process-1.6.1.0...
Warning: The 'build-type' is 'Configure' but there is no 'configure' script.
You probably need to run 'autoreconf -i' to generate it.
setup.exe: configure script not found.

process的自述文件中声明必须先运行autoreconf -i,但我不知道如何告诉stack。我的stack.yaml文件中是否需要一些额外的配置?

1 个答案:

答案 0 :(得分:2)

看起来软件包的git repo不包含直接使用软件包所需的“configure”脚本。从hackage下载时工作原理是源分发确实包含configure脚本。令人沮丧!我认为这是使用configure的软件包的非典型设计决策。我已经打开了这个堆栈问题:https://github.com/commercialhaskell/stack/issues/3534

建议的解决方法是将repo克隆为子模块并手动运行autoreconf -i