[oe-commits] Saul Wold : kmod: Upgrade to latest git

git at git.openembedded.org git at git.openembedded.org
Thu Jul 17 11:32:36 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: 5a16da19eda60992e094b38ebb185875529b3b4c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5a16da19eda60992e094b38ebb185875529b3b4c

Author: Saul Wold <sgw at linux.intel.com>
Date:   Tue Jul 15 13:17:19 2014 -0700

kmod: Upgrade to latest git

Update to version 18 with an additional patch from
the git repo to address an issue.

Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/recipes-kernel/kmod/kmod.inc                  |  5 ++--
 ...missing-O_CLOEXEC-in-kmod_module_get_size.patch | 27 ++++++++++++++++++++++
 2 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-kernel/kmod/kmod.inc b/meta/recipes-kernel/kmod/kmod.inc
index 504a32f..dda74c8 100644
--- a/meta/recipes-kernel/kmod/kmod.inc
+++ b/meta/recipes-kernel/kmod/kmod.inc
@@ -16,9 +16,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
                    "
 inherit autotools gtk-doc ptest
 
-SRCREV = "49d8e0b59052999de577ab732b719cfbeb89504d"
+SRCREV = "ae58de0fcb4a6528dd365e23d383bbe2eaf2d566"
 # Lookout for PV bump too when SRCREV is changed
-PV = "17+git${SRCPV}"
+PV = "18+git${SRCPV}"
 
 SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git \
            file://depmod-search.conf \
@@ -26,6 +26,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git \
            file://ptest.patch \
            file://avoid_parallel_tests.patch \
            file://fix-O_CLOEXEC.patch \
+           file://0001-Add-missing-O_CLOEXEC-in-kmod_module_get_size.patch \
           "
 
 S = "${WORKDIR}/git"
diff --git a/meta/recipes-kernel/kmod/kmod/0001-Add-missing-O_CLOEXEC-in-kmod_module_get_size.patch b/meta/recipes-kernel/kmod/kmod/0001-Add-missing-O_CLOEXEC-in-kmod_module_get_size.patch
new file mode 100644
index 0000000..77624ce
--- /dev/null
+++ b/meta/recipes-kernel/kmod/kmod/0001-Add-missing-O_CLOEXEC-in-kmod_module_get_size.patch
@@ -0,0 +1,27 @@
+From 74c26943f1228870022d116a1fda25be3a55a38e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crrodriguez at opensuse.org>
+Date: Wed, 18 Jun 2014 20:51:00 -0400
+Subject: [PATCH] Add missing O_CLOEXEC in kmod_module_get_size()
+
+Upstream-Status: Backport 
+Signed-off-by: Saul Wold <sgw at linux.intel.com>
+---
+ libkmod/libkmod-module.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c
+index e3cc5a7..b81b451 100644
+--- a/libkmod/libkmod-module.c
++++ b/libkmod/libkmod-module.c
+@@ -1783,7 +1783,7 @@ KMOD_EXPORT long kmod_module_get_size(const struct kmod_module *mod)
+ 	 * loaded.
+ 	 */
+ 	snprintf(line, sizeof(line), "/sys/module/%s", mod->name);
+-	dfd = open(line, O_RDONLY);
++	dfd = open(line, O_RDONLY|O_CLOEXEC);
+ 	if (dfd < 0)
+ 		return -errno;
+ 
+-- 
+1.8.3.1
+



More information about the Openembedded-commits mailing list