sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Peng Chang (Charles) (6c73c57dfea35bae204985c05a682547063054a8)
- From: "Peng Chang (Charles)" <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Peng Chang (Charles) (6c73c57dfea35bae204985c05a682547063054a8)
- Date: Tue, 22 Sep 2009 09:17:43 -0500
GIT changes to master grimoire by Peng Chang (Charles) <chp AT sourcemage.org>:
x11-toolkits/qt4/HISTORY | 3 ++-
x11-toolkits/qt4/PREPARE | 6 +++++-
2 files changed, 7 insertions(+), 2 deletions(-)
New commits:
commit 6c73c57dfea35bae204985c05a682547063054a8
Author: Peng Chang (Charles) <chp AT sourcemage.org>
Commit: Peng Chang (Charles) <chp AT sourcemage.org>
qt4: auto detect memory size
if memory size is less than 1GB, then disable tmpfs;
else query whether to disable it
diff --git a/x11-toolkits/qt4/HISTORY b/x11-toolkits/qt4/HISTORY
index 356153d..1490a88 100644
--- a/x11-toolkits/qt4/HISTORY
+++ b/x11-toolkits/qt4/HISTORY
@@ -1,6 +1,7 @@
2009-09-22 Peng Chang (Charles) <chp AT sourcemage.org>
* DETAILS: optionally turn TMPFS=off, 1GB RAM is insufficient
- * PREPARE: added an query to ask whether to disable tmpfs
+ * PREPARE: if RAM < 1GB auto disable tmpfs, else query whether to
+ disable tmpfs
2009-09-05 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: SECURITY_PATCH++
diff --git a/x11-toolkits/qt4/PREPARE b/x11-toolkits/qt4/PREPARE
index a4aafaf..628a3b7 100755
--- a/x11-toolkits/qt4/PREPARE
+++ b/x11-toolkits/qt4/PREPARE
@@ -1,3 +1,7 @@
-if [[ $TMPFS == on || $TMPFS == 1 ]]; then
+MEMSIZ=$(free | awk '/^Mem/ {print $2}')
+
+if [[ $MEMSIZ < 1020000 ]]; then
+ QT_TMPFS=n
+elif [[ $TMPFS == on || $TMPFS == 1 ]]; then
config_query QT_TMPFS 'Enable tmpfs? (consuming over 1GB RAM)' n
fi
- [SM-Commit] GIT changes to master grimoire by Peng Chang (Charles) (6c73c57dfea35bae204985c05a682547063054a8), Peng Chang (Charles), 09/22/2009
Archive powered by MHonArc 2.6.24.