From d8af43e8a2c804b42d7931c108baca3a5c31ded2 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Wed, 20 Feb 2019 11:14:06 +0000 Subject: Pipeline's Bash and AWK deleted when re-building ncurses As in all programs, the build process of ncurses depends on the running shell (Bash) and AWK. At the start of the building of ncurses, we remove its library. But Bash and AWK depend on ncurses to run (this creates a circular dependency). Therefore its necessary to remove the Bash and AWK executables when re-building ncurses. This bug was found by Raul Infante Sainz. --- reproduce/src/make/dependencies-basic.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'reproduce/src') diff --git a/reproduce/src/make/dependencies-basic.mk b/reproduce/src/make/dependencies-basic.mk index 184d089..ebe7551 100644 --- a/reproduce/src/make/dependencies-basic.mk +++ b/reproduce/src/make/dependencies-basic.mk @@ -342,6 +342,13 @@ $(ilidir)/ncurses: $(tdir)/ncurses-$(ncurses-version).tar.gz \ # the build process completed afterwards and reset the links). rm -f $(ildir)/libncursesw* + # Delete the (possibly existing) low-level programs that depend on + # `readline', and thus `ncurses'. Since these programs are actually + # used during the building of `ncurses', we need to delete them so + # the build process doesn't use the pipeline's Bash and AWK, but + # the host systems. + rm -f $(ibdir)/bash* $(ibdir)/awk* $(ibdir)/gawk* + # Standard build process. $(call gbuild, $<, ncurses-$(ncurses-version), static, \ --with-shared --enable-rpath --without-normal \ -- cgit v1.2.1