]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
kmod: Upgrade to latest git
authorSaul Wold <sgw@linux.intel.com>
Tue, 15 Jul 2014 20:17:19 +0000 (13:17 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 17 Jul 2014 11:28:06 +0000 (12:28 +0100)
Update to version 18 with an additional patch from
the git repo to address an issue.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-kernel/kmod/kmod.inc
meta/recipes-kernel/kmod/kmod/0001-Add-missing-O_CLOEXEC-in-kmod_module_get_size.patch [new file with mode: 0644]

index 504a32fceede996e5fcbd051d3a3fcd8a36cad6d..dda74c85b695a003bb0f74362cd255bfa6295fbb 100644 (file)
@@ -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 (file)
index 0000000..77624ce
--- /dev/null
@@ -0,0 +1,27 @@
+From 74c26943f1228870022d116a1fda25be3a55a38e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crrodriguez@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@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
+