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

How to obtain Cabal 3.6.0.0 #34

Closed
tscholak opened this issue Apr 28, 2021 · 2 comments
Closed

How to obtain Cabal 3.6.0.0 #34

tscholak opened this issue Apr 28, 2021 · 2 comments

Comments

@tscholak
Copy link

Hi, following #23, I've started today to look into using hsthrift. Unfortunately, all projects in this repository depend on cabal-version: 3.6, and I do not know how to install this unreleased version of Cabal. It would help me if you could share the Dockerfile for https://github.com/orgs/facebookincubator/packages/container/package/hsthrift%2Fci-base, because this image has it installed. Thanks.

@tscholak
Copy link
Author

tscholak commented Apr 28, 2021

nvm, I think I found it, https://github.com/facebookincubator/hsthrift/blob/b71b8199ea65934b2a63db4f1c7a19bfe9cb16f6/Dockerfile

will use this and see how far I get:

# build a post-3.4 cabal HEAD which includes support for the new
# 'hsc2hs-options' field.
RUN git clone https://github.com/haskell/cabal.git && cd cabal && git checkout f5f8d933db229d30e6fc558f5335f0a4e85d7d44
RUN cd cabal && sed -i 's/3.5.0.0/3.6.0.0/' */*.cabal
RUN cd cabal && cabal install cabal-install/ --allow-newer=Cabal-QuickCheck:Cabal --allow-newer=Cabal-described:Cabal --allow-newer=Cabal-tree-diff:Cabal --allow-newer=cabal-install:Cabal --allow-newer=cabal-install-solver:Cabal
RUN rm -rf cabal/

@zsol
Copy link
Contributor

zsol commented Apr 29, 2021

Hey @tscholak glad you found the dockerfile. Feel free to reopen if you bump into further issues getting Cabal 3.6 set up

@zsol zsol closed this as completed Apr 29, 2021
Atry added a commit to Atry/hsthrift that referenced this issue Sep 1, 2022
…g::glog (facebookincubator#34)

Summary:
X-link: facebookexperimental/rust-shed#34

X-link: facebook/fbthrift#521

X-link: facebook/watchman#1055

X-link: facebook/folly#1854

X-link: facebook/openr#140

X-link: facebook/fb303#31

Previously Folly provided a polyfill of the `GflagsFlagSaver` symbol, which was removed since facebook/folly@4dadde1. Therefore, the `glog` should solve the `GflagsFlagSaver` symbol from `gflags`.

This diff added `gflags` libraries as a dependency of the CMake project `glog::glog` into `fbcode_builder`'s `FindGlog.cmake`, so that the `fbcode_builder` users will be able to automatically link with `gflags`.

Differential Revision: D39220438

fbshipit-source-id: d48193945e87cf0fddf3309d594116ec580c92b8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants