[OE stablebranch] [Review] Add check for problematic /proc/sys/vm/mmap_min_addr values

Koen Kooi k.kooi at student.utwente.nl
Thu May 8 21:20:16 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This patch informs people of strange vm setting before starting a  
build instead of having qemu choking on it during glibc compile.

Author: rpurdie at openembedded.org
Branch: org.openembedded.dev
Changelog: sanity.bbclass: Add check for problematic /proc/sys/vm/ 
mmap_min_addr values
Date: 2008-05-07T09:39:08
Revision: 057aae3f21d16e159e1c03e8aa4b19ab8b9e241c

Signed-off-by: Koen Kooi <koen at openembedded.org>

- --- classes/sanity.bbclass	a81f2a3b9cc1e0daf9c88d6874dd369ef2c660b5
+++ classes/sanity.bbclass	666298f81af70a97408b29ae81f1e50c59b579fa
@@ -91,6 +91,12 @@ def check_sanity(e):
  	if not check_app_exists('${BUILD_PREFIX}g++', e.data):
  		missing = missing + "C++ Compiler (${BUILD_PREFIX}g++),"

+	if os.path.exists("/proc/sys/vm/mmap_min_addr"):
+		f = file("/proc/sys/vm/mmap_min_addr", "r")
+		if (f.read().strip() != "0"):
+			messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This  
will cause problems with qemu so please fix the value (as root).\n"
+		f.close()
+
  	required_utilities = "patch help2man diffstat texi2html makeinfo  
cvs svn bzip2 tar gzip gawk md5sum"

  	for util in required_utilities.split():

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFII1JyMkyGM64RGpERAjq1AJ9GZ4alFe4PZkUlV7b8006ogUAKIACgpz2D
d6E686+DCgnKNkHw4uUaMRM=
=ZJNd
-----END PGP SIGNATURE-----



More information about the Openembedded-stablebranch mailing list