diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2019-06-28 01:14:48 +0200 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2019-06-28 01:14:48 +0200 |
commit | 5761eecf6c9018f204c9b3a4e6b9313d24ae7d16 (patch) | |
tree | 1fcad3da9c59242ac4cbbc03dab40ea4928b21ad /reproduce | |
parent | 9684bf87d69bdc19a43b022b558974b7e46b74b2 (diff) |
Libiconv built as a dependency of Git
Prasenjit Saha reported that while building on a macOS, Git complained
about not finding `libiconv' functions. Therefore with this commit,
`libiconv' is also built as a dependency of Git.
Also, since the build of Binutils (and the subsequent GCC) doesn't depend
on the exact versions of the other basic software, they are set as
existance-only prerequsites (ignoring their timestamps). This is done to
avoid re-building when it is not needed.
Diffstat (limited to 'reproduce')
-rw-r--r-- | reproduce/software/config/installation/versions.mk | 3 | ||||
-rw-r--r-- | reproduce/software/make/basic.mk | 37 |
2 files changed, 24 insertions, 16 deletions
diff --git a/reproduce/software/config/installation/versions.mk b/reproduce/software/config/installation/versions.mk index d0174c8..3bc95fc 100644 --- a/reproduce/software/config/installation/versions.mk +++ b/reproduce/software/config/installation/versions.mk @@ -37,6 +37,8 @@ grep-version = 3.3 gzip-version = 1.10 isl-version = 0.18 libbsd-version = 0.9.1 +libiconv-version = 1.16 +libtool-version = 2.4.6 lzip-version= 1.20 m4-version = 1.4.18 make-version = 4.2.90 @@ -87,7 +89,6 @@ libffi-version = 3.2.1 libjpeg-version = v9b libpng-version = 1.6.37 libtiff-version = 4.0.10 -libtool-version = 2.4.6 libxml2-version = 2.9.9 openblas-version = 0.3.5 openmpi-version = 4.0.1 diff --git a/reproduce/software/make/basic.mk b/reproduce/software/make/basic.mk index 3ea1453..9628140 100644 --- a/reproduce/software/make/basic.mk +++ b/reproduce/software/make/basic.mk @@ -108,6 +108,7 @@ tarballs = $(foreach t, bash-$(bash-version).tar.lz \ gzip-$(gzip-version).tar.gz \ isl-$(isl-version).tar.bz2 \ libbsd-$(libbsd-version).tar.xz \ + libiconv-$(libiconv-version).tar.gz \ libtool-$(libtool-version).tar.xz \ lzip-$(lzip-version).tar.gz \ m4-$(m4-version).tar.gz \ @@ -155,6 +156,7 @@ $(tarballs): $(tdir)/%: | $(lockdir) elif [ $$n = gzip ]; then w=http://ftp.gnu.org/gnu/gzip; \ elif [ $$n = isl ]; then w=ftp://gcc.gnu.org/pub/gcc/infrastructure; \ elif [ $$n = libbsd ]; then w=http://libbsd.freedesktop.org/releases; \ + elif [ $$n = libiconv ]; then w=https://ftp.gnu.org/pub/gnu/libiconv; \ elif [ $$n = libtool ]; then w=http://ftp.gnu.org/gnu/libtool; \ elif [ $$n = lzip ]; then w=http://download.savannah.gnu.org/releases/lzip; \ elif [ $$n = m ]; then \ @@ -834,12 +836,17 @@ $(ibidir)/gawk: $(tdir)/gawk-$(gawk-version).tar.lz \ fi \ && echo "GNU AWK $(gawk-version)" > $@ +$(ibidir)/libiconv: $(tdir)/libiconv-$(libiconv-version).tar.gz \ + $(ibidir)/coreutils + $(call gbuild, $<, libiconv-$(libiconv-version), static) \ + && echo "GNU libiconv $(libiconv-version)" > $@ + $(ibidir)/git: $(tdir)/git-$(git-version).tar.xz \ - $(ibidir)/coreutils \ + $(ibidir)/libiconv \ $(ibidir)/curl # Coreutils, so Git is built after it. $(call gbuild, $<, git-$(git-version), static, \ - --without-tcltk --with-shell=$(ibdir)/bash, \ - V=1) \ + --without-tcltk --with-shell=$(ibdir)/bash \ + --with-iconv=$(idir), V=1) \ && echo "Git $(git-version)" > $@ $(ibidir)/gmp: $(tdir)/gmp-$(gmp-version).tar.lz \ @@ -1022,18 +1029,18 @@ endif # all other basic programs as Binutils prerequisite and GCC (the final # basic target) ultimately just depends on Binutils. $(ibidir)/binutils: $(binutils-tarball) \ - $(gcc-prerequisites) \ - $(ibidir)/metastore \ - $(ibidir)/findutils \ - $(ibidir)/diffutils \ - $(ibidir)/coreutils \ - $(ibidir)/glibtool \ - $(ibidir)/which \ - $(ibidir)/wget \ - $(ibidir)/grep \ - $(ibidir)/file \ - $(ibidir)/gawk \ - $(ibidir)/sed + | $(gcc-prerequisites) \ + $(ibidir)/metastore \ + $(ibidir)/findutils \ + $(ibidir)/diffutils \ + $(ibidir)/coreutils \ + $(ibidir)/glibtool \ + $(ibidir)/which \ + $(ibidir)/wget \ + $(ibidir)/grep \ + $(ibidir)/file \ + $(ibidir)/gawk \ + $(ibidir)/sed if [ x$(on_mac_os) = xyes ]; then \ $(call makelink,as); \ |