Source: ncurses Version: 6.0+20150810-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: locale X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi! While working on the “reproducible builds” effort [1], we have noticed that ncurses could not be built reproducibly. The problem is that the sort order of keys.list is affected by the locale of the build environment. Here is a patch to fix that. [1]: https://wiki.debian.org/ReproducibleBuilds
--- ncurses/Makefile.in.orig 2015-08-06 02:15:41.000000000 +0300 +++ ncurses/Makefile.in 2015-08-06 02:15:41.000000000 +0300 @@ -225,7 +225,7 @@ ./make_keys$(BUILD_EXEEXT) keys.list > $@ keys.list : $(tinfo)/MKkeys_list.sh - AWK=$(AWK) $(SHELL) $(tinfo)/MKkeys_list.sh $(TERMINFO_CAPS) | sort >$@ + AWK=$(AWK) $(SHELL) $(tinfo)/MKkeys_list.sh $(TERMINFO_CAPS) | LC_ALL=C sort >$@ make_keys$(BUILD_EXEEXT) : \ $(tinfo)/make_keys.c \