-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the configure logic around detecting (n)curses.h.
It's complicated (see e.g. PR #21), and we don't actually need it for the build.
- Loading branch information
Showing
2 changed files
with
0 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
includes: @TERMINFO_INCLUDES@ | ||
include-dirs: @TERMINFO_INCLUDE_DIRS@ | ||
extra-lib-dirs: @TERMINFO_LIB_DIRS@ | ||
extra-libraries: @TERMINFO_LIB@ |
02ebf00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@judah This should fix #15, right? This deserves a release!
02ebf00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change has already been released on Hackage in
terminfo-0.4.1.0
.I'm not sure if it'll fix that problem. Although we no longer need the headers, we still require the library itself (for example:
lib(n)curses.a
) which is also not listed explicitly interminfo.cabal
.02ebf00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, this makes matters even worse for me: While I could work around the issue by adding
ncurses
to Stack's Nix environment untilterminfo-0.4.0.2
, this does not work forterminfo-0.4.1.0
, and I haven't yet figured a way to get it to work.Related issues are commercialhaskell/stack#3233 and NixOS/nixpkgs#15995.
02ebf00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I recall correctly, this PR should have been a no-op to the behavior of terminfo, no matter the platform. It only changes the includes and include-dirs parameters, but those shouldn't actually affect the link-time behavior of this package.
Are you able to give me concrete steps (e.g. via a stack package that uses nix) to help me verify that this change made things worse for you?
02ebf00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Building
terminfo
in a new Stack project:NixOS version: 17.03.981.a7ebf59aa7 (Gorilla)
Nix version: nix-env (Nix) 1.11.8
Stack version: Version 1.3.2 x86_64
Here ist my
~/.stack/config.yaml
Earlier,
nix.enable.packages = [ncurses]
was already sufficient to buildterminfo
, I added the others hoping that one of them might provide the necessary dependency.I also had a look at the possibility that this breakage might have been caused by a NixOS/nixpkgs upgrade; however, I haven't found anything suspicious in the commit history for
pkgs/development/libraries/ncurses
.02ebf00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the detailed instructions; I was able to reproduce your issue.
I was able to fix it on my machine by adding
gcc
to the list of packages, so that my~/.stack/config.yaml
contains:Does that work for you? If so, it sounds like perhaps an issue either with the
ncurses
Nix package or a regression in how Stack interacts with Nix (i.e., the shell it builds ought to have gcc)?02ebf00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed, adding
gcc
to thenix.packages
works for me, too. Thanks!