aboutsummaryrefslogtreecommitdiff
path: root/reproduce
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2019-02-20 11:14:06 +0000
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2019-02-20 11:14:06 +0000
commitd8af43e8a2c804b42d7931c108baca3a5c31ded2 (patch)
tree1ba165fc9761d9e3a427cdee548f090ea56037dd /reproduce
parent41b458f8f31bbb5b74f96c5647beae28c49dedaf (diff)
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.
Diffstat (limited to 'reproduce')
-rw-r--r--reproduce/src/make/dependencies-basic.mk7
1 files changed, 7 insertions, 0 deletions
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 \