-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Description
The failure is:
[ncurses] awk -f ./tinfo/MKcodes.awk bigstrings=1 ./../include/Caps >codes.c
[ncurses] gcc -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -I./../include -I../include -DUSE_BUILD_CC -DHAVE_CONFIG_H -I../ncurses -I. -D_DARWIN_C_SOURCE -DNDEBUG -I. -I../include -I/Users/certik/.hashdist/bld/ncurses/j2l3sbotpbza/include/ncurses -O2 --param max-inline-insns-single=1200 -no-cpp-precomp ./tinfo/make_hash.c -Wl,-search_paths_first
[ncurses] sh -e ./tty/MKexpanded.sh "gcc -E" -DHAVE_CONFIG_H -I../ncurses -I. -D_DARWIN_C_SOURCE -DNDEBUG -I. -I../include -I/Users/certik/.hashdist/bld/ncurses/j2l3sbotpbza/include/ncurses > expanded.c
[ncurses] sh -e ./tinfo/MKfallback.sh /Users/certik/.hashdist/bld/ncurses/j2l3sbotpbza/share/terminfo ../misc/terminfo.src /Users/certik/.hashdist/bld/profile/px524wdzacsz/bin/tic >fallback.c
[ncurses] gcc: error: unrecognized command line option '-no-cpp-precomp'
[ncurses] make[1]: *** [make_hash] Error 1
[ncurses] make[1]: *** Waiting for unfinished jobs....
[ncurses] make: *** [all] Error 2
This patch fixes it:
diff --git a/pkgs/ncurses/ncurses.yaml b/pkgs/ncurses/ncurses.yaml
index f1ad68a..f12240d 100644
--- a/pkgs/ncurses/ncurses.yaml
+++ b/pkgs/ncurses/ncurses.yaml
@@ -1,8 +1,8 @@
extends: [autotools_package]
sources:
- - url: http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
- key: tar.gz:sbdctd5uiazezhkbgxwou6dz77wykrw5
+ - key: git:690232d93fc4ac57f0c9a484cc5781e8d1fe1fae
+ url: https://github.com/certik/ncursesIt uses my own repository, where I applied some of the patches from upstream (which seems to only distribute a very old tarball and a set of patches). The problem is that this updated package then works with gcc, but fails with native clang... We need a set of source codes, that work with both compilers.
Metadata
Metadata
Assignees
Labels
No labels