[Build-common-hackers] Bug#379981: cdbs/kde.mk: forbid
--enable-final in slow arches
Adeodato Simó
dato at net.com.org.es
Wed Jul 26 16:38:45 UTC 2006
Package: cdbs
Version: 0.4.44
Tags: patch
Hi.
The --enable-final option for ./configure that can be enabled by setting
DEB_KDE_ENABLE_FINAL, basically means that instead of:
% for source in **/*.cpp; do
g++ -c $source
done
% g++ -o binary **/*.o
This is done instead:
% cat **/*.cpp >_all.cpp
% g++ -c _all.cpp
% g++ -o binary _all.o
This results in potentially faster builds, but it is a really big memory
hog. Most of our buildd network copes well, but arm and m68k routinely
suffer from the "killed build after 500 minutes of inactivity" problem.
This is presumably because the machine is busy in swaping like hell.
Please apply the attached patch, in order to have this feature disabled
for those slow arches.
Thanks,
--
Adeodato Simó dato at net.com.org.es
Debian Developer adeodato at debian.org
Listening to: Madeleine Peyroux - Always a use
-------------- next part --------------
--- cdbs-0.4.44.orig/debian/changelog
+++ cdbs-0.4.45/debian/changelog
@@ -1,3 +1,10 @@
+cdbs (0.4.45) unstable; urgency=low
+
+ * 1/class/kde.mk.in: never use --enable-final on arm and m68k, since it hogs
+ the machines down.
+
+ -- Adeodato Simó <dato at net.com.org.es> Wed, 26 Jul 2006 18:15:42 +0200
+
cdbs (0.4.44) unstable; urgency=medium
* Shortened uploaders list
--- cdbs-0.4.44.orig/1/class/kde.mk.in
+++ cdbs-0.4.45/1/class/kde.mk.in
@@ -36,8 +36,14 @@
export kde_confdir = \$${sysconfdir}/kde3
export kde_htmldir = \$${datadir}/doc/kde/HTML
+_cdbs_treat_me_gently_arches := arm m68k
+
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ ifeq (,$(filter $(DEB_HOST_ARCH_CPU),$(_cdbs_treat_me_gently_arches)))
cdbs_kde_enable_final = $(if $(DEB_KDE_ENABLE_FINAL),--enable-final,)
+ else
+ cdbs_kde_enable_final =
+ endif
endif
ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
More information about the Build-common-hackers
mailing list