This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via 297473d5f4d7ba6734762ec71a8d86c07332a99c (commit)
via 9ff5b381eb8a4e129978c34f969e312c302ea7b1 (commit)
via d53537ced9f0c52dbd8446e5e582275ba0053847 (commit)
via a843073c8e93e15fd8e18064abde5e3d3af67368 (commit)
via 7691a1bfe73067cb2f3ad3470d0000faf029a24f (commit)
via eeee108f183e8d39e27154ee19c1ee0a8b27be11 (commit)
via 77c863a2f113404a7f30b8591b9972291328980b (commit)
via e4ee36fa170d08bccbbd32fe0d56e53f072a2f97 (commit)
via deffc27598806b43ae03a4fb666f2f0254a94066 (commit)
via 85560933590e6ef401216b3b4fba9df917b25a22 (commit)
via 23164efba5f57b3d8ccb07a166b613f2f951e1b6 (commit)
from ea9cb48ae775a7040edaf58224535b71dcde25ea (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 297473d5f4d7ba6734762ec71a8d86c07332a99c
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Mon Mar 4 17:21:15 2019 +0000
make.sh: Fit more processes into memory
Because we have a good way to limit processes now, we should
increase the default size a little bit
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
commit 9ff5b381eb8a4e129978c34f969e312c302ea7b1
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Mon Mar 4 17:20:52 2019 +0000
boost: Build with -O2 only
This should increase build speed
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
commit d53537ced9f0c52dbd8446e5e582275ba0053847
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Mon Mar 4 11:57:22 2019 +0000
Config: Builds don't seem to like the space
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
commit a843073c8e93e15fd8e18064abde5e3d3af67368
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Mon Mar 4 11:52:34 2019 +0000
perl: Limit build to 23 parallel processes
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
commit 7691a1bfe73067cb2f3ad3470d0000faf029a24f
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Mon Mar 4 11:51:08 2019 +0000
make.sh: Introduce MAX_PARALLELISM
This will now adjust MAKETUNING to not launch more processes
than MAX_PARALLELISM. Handy to limit builds that use a lot of memory.
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
commit eeee108f183e8d39e27154ee19c1ee0a8b27be11
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Mon Mar 4 11:45:30 2019 +0000
make.sh: Drop MAKETUNING
This is now set in lfs/Config
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
commit 77c863a2f113404a7f30b8591b9972291328980b
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Mon Mar 4 11:43:47 2019 +0000
make.sh: Introduce DEFAULT_PARALLELISM
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
commit e4ee36fa170d08bccbbd32fe0d56e53f072a2f97
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Mon Mar 4 11:38:38 2019 +0000
make.sh: Use variable instead of calling system_processors function again
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
commit deffc27598806b43ae03a4fb666f2f0254a94066
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Mon Mar 4 11:35:15 2019 +0000
make.sh: Rename HOST_MEM to SYSTEM_MEMORY
We had two variables holding the same data
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
commit 85560933590e6ef401216b3b4fba9df917b25a22
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Mon Mar 4 11:33:50 2019 +0000
make.sh: Pass number of processors and total memory so that we can adjust MAKETUNING
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
commit 23164efba5f57b3d8ccb07a166b613f2f951e1b6
Author: Wolfgang Apolinarski <wolfgang.apolinarski(a)ipfire.org>
Date: Wed Feb 20 20:18:06 2019 +0100
Parallelized build for several packages
Added $(MAKETUNING) to several packages.
Marked packages that do not support parallel build.
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
lfs/Config | 10 ++++++++++
lfs/boost | 11 ++++++++---
lfs/collectd | 2 +-
lfs/cyrus-imapd | 2 +-
lfs/dhcp | 2 +-
lfs/dnsdist | 2 +-
lfs/gcc | 4 ++--
lfs/gettext | 8 ++++----
lfs/groff | 2 +-
lfs/gutenprint | 2 +-
lfs/ipfire-netboot | 4 ++--
lfs/krb5 | 2 +-
lfs/lcd4linux | 2 +-
lfs/netpbm | 2 +-
lfs/netsnmpd | 2 +-
lfs/nut | 2 +-
lfs/openssl | 2 +-
lfs/perl | 3 +++
lfs/rrdtool | 2 +-
lfs/samba | 4 ++--
lfs/slang | 2 +-
lfs/snort | 2 +-
lfs/xfsprogs | 2 +-
make.sh | 54 +++++++++++++++++++++++++-----------------------------
24 files changed, 72 insertions(+), 58 deletions(-)
Difference in files:
diff --git a/lfs/Config b/lfs/Config
index 76f279da9..42da3f3b1 100644
--- a/lfs/Config
+++ b/lfs/Config
@@ -33,6 +33,16 @@
# Cleanup environment from any variables
unexport BUILD_ARCH BUILD_PLATFORM BUILDTARGET CROSSTARGET TOOLCHAIN TOOLS_DIR
+PARALLELISM = $(shell echo $$( \
+ if [ -n "$(MAX_PARALLELISM)" ] && [ $(MAX_PARALLELISM) -lt $(DEFAULT_PARALLELISM) ]; then \
+ echo $(MAX_PARALLELISM); \
+ else \
+ echo $(DEFAULT_PARALLELISM); \
+ fi) \
+)
+
+MAKETUNING = -j$(PARALLELISM)
+
ifeq "$(BUILD_ARCH)" "aarch64"
IS_64BIT = 1
endif
diff --git a/lfs/boost b/lfs/boost
index bed2b0cdb..da657167a 100644
--- a/lfs/boost
+++ b/lfs/boost
@@ -32,8 +32,13 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
-CFLAGS += -O3 -fno-strict-aliasing
-CXXFLAGS += -O3 -fno-strict-aliasing
+CFLAGS += -fno-strict-aliasing
+CXXFLAGS += -fno-strict-aliasing
+
+# The compiler uses a lot of memory to compile boost, hence we reduce
+# the total number of processes a little bit to be able to build on
+# smaller machines
+MAX_PARALLELISM = $(shell echo $$(( $(SYSTEM_MEMORY) / 512)))
CONFIGURE_OPTIONS = \
--prefix=/usr \
@@ -95,7 +100,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && ./bootstrap.sh --with-toolset=gcc
- cd $(DIR_APP) && ./b2 -d+2 -q $(CONFIGURE_OPTIONS) stage
+ cd $(DIR_APP) && ./b2 -d+2 -q $(MAKETUNING) $(CONFIGURE_OPTIONS) stage
cd $(DIR_APP) && ./b2 $(CONFIGURE_OPTIONS) install
@rm -rf $(DIR_APP)
diff --git a/lfs/collectd b/lfs/collectd
index 9592ec95a..e31324817 100644
--- a/lfs/collectd
+++ b/lfs/collectd
@@ -116,7 +116,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
--enable-{network,nfs,ntpd,ping,processes,rrdtool,sensors,swap,syslog} \
--enable-{tcpconns,unixsock,users,wireless} \
--with-librrd=/usr/share/rrdtool-1.2.30
- cd $(DIR_APP) && make install
+ cd $(DIR_APP) && make install #collectd-4 does not support parallel build
cp -vf $(DIR_SRC)/config/collectd/collectd.* /etc/
mv /etc/collectd.vpn /var/ipfire/ovpn/collectd.vpn
chown nobody.nobody /var/ipfire/ovpn/collectd.vpn
diff --git a/lfs/cyrus-imapd b/lfs/cyrus-imapd
index 1800a08ec..50cd66875 100644
--- a/lfs/cyrus-imapd
+++ b/lfs/cyrus-imapd
@@ -89,7 +89,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
--enable-autocreate \
--enable-idled
- cd $(DIR_APP) && make $(EXTRA_MAKE)
+ cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
cd $(DIR_APP) && make install
-mkdir /var/imap
chown cyrus:mail /var/imap
diff --git a/lfs/dhcp b/lfs/dhcp
index a055d6081..4c01428f5 100644
--- a/lfs/dhcp
+++ b/lfs/dhcp
@@ -84,7 +84,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
--enable-early-chroot \
--disable-dhcpv6
- cd $(DIR_APP) && make
+ cd $(DIR_APP) && make #This package does not support parallel build
cd $(DIR_APP) && make install
mkdir -pv /var/state/dhcp
diff --git a/lfs/dnsdist b/lfs/dnsdist
index 85a841fa5..e748004ef 100644
--- a/lfs/dnsdist
+++ b/lfs/dnsdist
@@ -79,7 +79,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
- cd $(DIR_APP) && make
+ cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
#install initscripts
diff --git a/lfs/gcc b/lfs/gcc
index 6fdf2ea31..5aac2d382 100644
--- a/lfs/gcc
+++ b/lfs/gcc
@@ -264,7 +264,7 @@ ifeq "$(PASS)" "L"
$(EXTRA_ENV) \
$(DIR_APP)/libstdc++-v3/configure \
$(EXTRA_CONFIG)
- cd $(DIR_SRC)/gcc-build && make $(EXTRA_MAKE)
+ cd $(DIR_SRC)/gcc-build && make $(MAKETUNING) $(EXTRA_MAKE)
cd $(DIR_SRC)/gcc-build && make $(EXTRA_INSTALL) install
else
@@ -273,7 +273,7 @@ else
$(EXTRA_ENV) \
$(DIR_APP)/configure \
$(EXTRA_CONFIG)
- cd $(DIR_SRC)/gcc-build && make $(EXTRA_MAKE)
+ cd $(DIR_SRC)/gcc-build && make $(MAKETUNING) $(EXTRA_MAKE)
cd $(DIR_SRC)/gcc-build && make $(EXTRA_INSTALL) install
endif
diff --git a/lfs/gettext b/lfs/gettext
index 632ecac43..b1d75ed2d 100644
--- a/lfs/gettext
+++ b/lfs/gettext
@@ -81,13 +81,13 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
ifeq "$(ROOT)" ""
cd $(DIR_APP) && ./configure $(EXTRA_CONFIG)
- cd $(DIR_APP) && make
+ cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
else
cd $(DIR_APP)/gettext-tools && ./configure $(EXTRA_CONFIG)
- cd $(DIR_APP)/gettext-tools && make -C gnulib-lib
- cd $(DIR_APP)/gettext-tools && make -C intl pluralx.c
- cd $(DIR_APP)/gettext-tools && make -C src msgfmt
+ cd $(DIR_APP)/gettext-tools && make $(MAKETUNING) -C gnulib-lib
+ cd $(DIR_APP)/gettext-tools && make $(MAKETUNING) -C intl pluralx.c
+ cd $(DIR_APP)/gettext-tools && make $(MAKETUNING) -C src msgfmt
cd $(DIR_APP)/gettext-tools && cp -v src/msgfmt $(TOOLS_DIR)/bin
endif
@rm -rf $(DIR_APP)
diff --git a/lfs/groff b/lfs/groff
index 4d5bf6373..1ed393c62 100644
--- a/lfs/groff
+++ b/lfs/groff
@@ -73,7 +73,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
cd $(DIR_APP) && PAGE=A4 ./configure \
--prefix=/usr
- cd $(DIR_APP) && make
+ cd $(DIR_APP) && make #This package does not support parallel build
cd $(DIR_APP) && make install
ln -svf eqn /usr/bin/geqn
ln -svf tbl /usr/bin/gtbl
diff --git a/lfs/gutenprint b/lfs/gutenprint
index 7286b78a2..0a18aa73b 100644
--- a/lfs/gutenprint
+++ b/lfs/gutenprint
@@ -79,7 +79,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
$(UPDATE_AUTOMAKE)
cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
- cd $(DIR_APP) && make
+ cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)
@$(POSTBUILD)
diff --git a/lfs/ipfire-netboot b/lfs/ipfire-netboot
index 9536c9514..b316c9bbd 100644
--- a/lfs/ipfire-netboot
+++ b/lfs/ipfire-netboot
@@ -78,9 +78,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
# Extract iPXE source
cd $(DIR_APP) && tar axf $(DIR_DL)/ipxe-$(PXE_VER).tar.gz
cd $(DIR_APP) && rm -rfv ipxe && ln -s ipxe-$(PXE_VER) ipxe
- cd $(DIR_APP) && make bin/ipxe.lkrn
+ cd $(DIR_APP) && make $(MAKETUNING) bin/ipxe.lkrn
ifeq "$(BUILD_ARCH)" "x86_64"
- cd $(DIR_APP) && make bin-x86_64-efi/ipxe.efi
+ cd $(DIR_APP) && make $(MAKETUNING) bin-x86_64-efi/ipxe.efi
endif
# Installation
diff --git a/lfs/krb5 b/lfs/krb5
index b1ea0f76d..5a619ab84 100644
--- a/lfs/krb5
+++ b/lfs/krb5
@@ -92,7 +92,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
--enable-dns-for-realm \
CPPFLAGS="-I/usr/include/et"
- cd $(DIR_APP) && make #$(MAKETUNING)
+ cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
for LIB in gssapi_krb5 gssrpc k5crypto kadm5clnt kadm5srv \
diff --git a/lfs/lcd4linux b/lfs/lcd4linux
index 81f994621..052c905c3 100644
--- a/lfs/lcd4linux
+++ b/lfs/lcd4linux
@@ -79,7 +79,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
$(UPDATE_AUTOMAKE)
cd $(DIR_APP) && ./configure --with-plugins=all,!qnaplog,!dbus --prefix=/usr
- cd $(DIR_APP) && make
+ cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
#install initscripts
diff --git a/lfs/netpbm b/lfs/netpbm
index e22e0fbc8..58a6921a4 100644
--- a/lfs/netpbm
+++ b/lfs/netpbm
@@ -81,7 +81,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
rm -rf /usr/netpbm
cp $(DIR_SRC)/config/netpbm/config.mk $(DIR_APP)
- cd $(DIR_APP) && make CFLAGS="$(CFLAGS)"
+ cd $(DIR_APP) && make CFLAGS="$(CFLAGS)" #The build of this version cannot be parallelized
cd $(DIR_APP) && make package PKGDIR=/usr/netpbm
mkdir -pv /usr/include/netpbm
mkdir -pv /usr/share/netpbm
diff --git a/lfs/netsnmpd b/lfs/netsnmpd
index 0af276093..dde78098f 100644
--- a/lfs/netsnmpd
+++ b/lfs/netsnmpd
@@ -96,7 +96,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
--libdir=/usr/lib \
--sysconfdir="/etc"
- cd $(DIR_APP) && make
+ cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
install -v -m 644 $(DIR_SRC)/config/netsnmpd/snmpd.conf /etc/snmpd.conf
install -v -m 644 $(DIR_SRC)/config/backup/includes/netsnmpd \
diff --git a/lfs/nut b/lfs/nut
index 10e146c63..c1f019274 100644
--- a/lfs/nut
+++ b/lfs/nut
@@ -80,7 +80,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc/nut \
--with-usb --with-user=root --with-group=nut \
--with-wrap=no --with-udev-dir=/etc/udev
- cd $(DIR_APP) && make
+ cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
# sed -i -e "s|ATTR{|SYSFS{|g" /etc/udev/rules.d/52-nut-usbups.rules
mkdir -p /var/state/ups
diff --git a/lfs/openssl b/lfs/openssl
index d7822e174..f8729c2de 100644
--- a/lfs/openssl
+++ b/lfs/openssl
@@ -130,7 +130,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
$(CFLAGS) $(LDFLAGS)
cd $(DIR_APP) && make depend
- cd $(DIR_APP) && make
+ cd $(DIR_APP) && make $(MAKETUNING)
ifeq "$(KCFG)" "-sse2"
-mkdir -pv /usr/lib/sse2
diff --git a/lfs/perl b/lfs/perl
index fa2256d6b..06491a16c 100644
--- a/lfs/perl
+++ b/lfs/perl
@@ -39,6 +39,9 @@ else
TARGET = $(DIR_INFO)/$(THISAPP)-tools
endif
+# Perl does not build with -j larger than 23
+MAX_PARALLELISM = 23
+
###############################################################################
# Top-level Rules
###############################################################################
diff --git a/lfs/rrdtool b/lfs/rrdtool
index ef67dc26d..36d373d2c 100644
--- a/lfs/rrdtool
+++ b/lfs/rrdtool
@@ -78,7 +78,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
--disable-tcl \
--disable-ruby \
--disable-python
- cd $(DIR_APP) && make
+ cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
-mkdir -p /srv/web/ipfire/html/graphs/
chmod 777 /srv/web/ipfire/html/graphs/
diff --git a/lfs/samba b/lfs/samba
index 44f4623c0..c437793d6 100644
--- a/lfs/samba
+++ b/lfs/samba
@@ -180,8 +180,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
--enable-cups \
--disable-avahi \
--with-syslog
- cd $(DIR_APP)/source3 && make idl_full
- cd $(DIR_APP)/source3 && make proto && make all $(MAKETUNING) $(EXTRA_MAKE)
+ cd $(DIR_APP)/source3 && make $(MAKETUNING) idl_full
+ cd $(DIR_APP)/source3 && make $(MAKETUNING) proto && make all $(MAKETUNING) $(EXTRA_MAKE)
cd $(DIR_APP)/source3 && make install
cd $(DIR_APP)/source3 && chmod -v 644 /usr/include/libsmbclient.h
#cd $(DIR_APP)/source3 && install -v -m755 nsswitch/libnss_wins.so /lib
diff --git a/lfs/slang b/lfs/slang
index d6e685855..217e74c77 100644
--- a/lfs/slang
+++ b/lfs/slang
@@ -71,7 +71,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
- cd $(DIR_APP) && make #$(MAKETUNING)
+ cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
@rm -rf $(DIR_APP)
@$(POSTBUILD)
diff --git a/lfs/snort b/lfs/snort
index e7b5a19f7..c66a0dd1a 100644
--- a/lfs/snort
+++ b/lfs/snort
@@ -88,7 +88,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
--enable-react \
--enable-flexresp3
- cd $(DIR_APP) && make
+ cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
mv /usr/bin/snort /usr/sbin/
-mkdir -p /etc/snort/rules
diff --git a/lfs/xfsprogs b/lfs/xfsprogs
index b68e1b138..af6ccce37 100644
--- a/lfs/xfsprogs
+++ b/lfs/xfsprogs
@@ -73,7 +73,7 @@ $(subst %,%_MD5,$(objects)) :
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
- cd $(DIR_APP) && make DEBUG=-DNDEBUG INSTALL_USER=root INSTALL_GROUP=root \
+ cd $(DIR_APP) && make $(MAKETUNING) DEBUG=-DNDEBUG INSTALL_USER=root INSTALL_GROUP=root \
LOCAL_CONFIGURE_OPTIONS="--enable-readline=yes"
cd $(DIR_APP) && make install install-dev
cd $(DIR_APP) && install -v -m755 -D libhandle/libhandle.la /usr/lib/libhandle.la
diff --git a/make.sh b/make.sh
index 1b5cac46f..e28819f9b 100755
--- a/make.sh
+++ b/make.sh
@@ -201,31 +201,22 @@ configure_build() {
CXXFLAGS="${CFLAGS}"
# Determine parallelism
- if [ -z "${MAKETUNING}" ]; then
- # We assume that each process consumes about
- # 192MB of memory. Therefore we find out how
- # many processes fit into memory.
- local mem_max=$(( ${HOST_MEM} / 192 ))
-
- local processors="$(system_processors)"
- local cpu_max=$(( ${processors} + 1 ))
-
- local parallelism
- if [ ${mem_max} -lt ${cpu_max} ]; then
- parallelism=${mem_max}
- else
- parallelism=${cpu_max}
- fi
-
- # limit to -j23 because perl will not build
- # more
- if [ ${parallelism} -gt 23 ]; then
- parallelism=23
- fi
-
- MAKETUNING="-j${parallelism}"
+ # We assume that each process consumes about
+ # 128MB of memory. Therefore we find out how
+ # many processes fit into memory.
+ local mem_max=$(( ${SYSTEM_MEMORY} / 128 ))
+ local cpu_max=$(( ${SYSTEM_PROCESSORS} + 1 ))
+
+ local parallelism
+ if [ ${mem_max} -lt ${cpu_max} ]; then
+ parallelism=${mem_max}
+ else
+ parallelism=${cpu_max}
fi
+ # Use this as default PARALLELISM
+ DEFAULT_PARALLELISM="${parallelism}"
+
# Compression parameters
# We use mode 8 for reasonable memory usage when decompressing
# but with overall good compression
@@ -237,7 +228,7 @@ configure_build() {
# We need to limit memory because XZ uses too much when running
# in parallel and it isn't very smart in limiting itself.
# We allow XZ to use up to 70% of all system memory.
- local xz_memory=$(( HOST_MEM * 7 / 10 ))
+ local xz_memory=$(( SYSTEM_MEMORY * 7 / 10 ))
# XZ memory cannot be larger than 2GB on 32 bit systems
case "${build_arch}" in
@@ -469,7 +460,7 @@ prepareenv() {
# Setup environment
set +h
LC_ALL=POSIX
- export LFS LC_ALL CFLAGS CXXFLAGS MAKETUNING
+ export LFS LC_ALL CFLAGS CXXFLAGS DEFAULT_PARALLELISM
unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD
# Make some extra directories
@@ -554,6 +545,9 @@ enterchroot() {
CCACHE_COMPILERCHECK="${CCACHE_COMPILERCHECK}" \
KVER="${KVER}" \
XZ_OPT="${XZ_OPT}" \
+ DEFAULT_PARALLELISM="${DEFAULT_PARALLELISM}" \
+ SYSTEM_PROCESSORS="${SYSTEM_PROCESSORS}" \
+ SYSTEM_MEMORY="${SYSTEM_MEMORY}" \
$(fake_environ) \
$(qemu_environ) \
"$@"
@@ -633,7 +627,9 @@ lfsmake1() {
CCACHE_COMPILERCHECK="${CCACHE_COMPILERCHECK}" \
CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}" \
- MAKETUNING="${MAKETUNING}" \
+ DEFAULT_PARALLELISM="${DEFAULT_PARALLELISM}" \
+ SYSTEM_PROCESSORS="${SYSTEM_PROCESSORS}" \
+ SYSTEM_MEMORY="${SYSTEM_MEMORY}" \
make -f $* \
TOOLCHAIN=1 \
TOOLS_DIR="${TOOLS_DIR}" \
@@ -662,7 +658,6 @@ lfsmake2() {
enterchroot \
${EXTRA_PATH}bash -x -c "cd /usr/src/lfs && \
- MAKETUNING=${MAKETUNING} \
make -f $* \
LFS_BASEDIR=/usr/src install" \
>> ${LOGFILE} 2>&1 &
@@ -907,8 +902,9 @@ if [ -n "${TARGET_ARCH}" ]; then
unset TARGET_ARCH
fi
-# Get the amount of memory in this build system
-HOST_MEM=$(system_memory)
+# Get some information about the host system
+SYSTEM_PROCESSORS="$(system_processors)"
+SYSTEM_MEMORY="$(system_memory)"
if [ -n "${BUILD_ARCH}" ]; then
configure_build "${BUILD_ARCH}"
hooks/post-receive
--
IPFire 2.x development tree