kmod: add patches to support build on RHEL 5
PATCH v2 1/1 kmod: add patches to support build on RHEL 5
kmod uses certain features not available on older RHEL 5 machines (RedHat Enterprise Linux). This commit adds two patches to fix that.
Both patches have been proposed upstream, the second one being accepted, the first rejected with the suggestion to add the patch in Buildroot instead.
--- package/kmod/kmod-0001-fix-O_CLOEXEC.patch | 45 ++++++ package/kmod/kmod-0002-add-backup-implementation-of-be32toh.patch | 72 ++++++++++ 2 files changed, 117 insertions(+), 0 deletions(-)
package/kmod/kmod-0001-fix-O_CLOEXEC.patch new file +45 -0
@@ -0,0 +1,45 @@ +From b39a62f6682463bcd47480348fac3dcd209a19a5 Mon Sep 17 00:00:00 2001 +From: Robert Yang <[email protected]> +Date: Wed, 22 Jan 2014 01:06:40 -0500 +Subject: [PATCH] Add dummy definition of O_CLOEXEC + +O_CLOEXEC is introduced from Linux 2.6.23, so old kernel doesn't have +it, we need check before use. + +This patch is much more like a workaround, since it may need fcntl() use +FD_CLOEXEC to replace. + +This problem was reported by "Ting Liu <[email protected]>" + +[Thomas De Schampheleire <thomas.de.schampheleire at gmail.com: + - move dummy definition from libkmod-internal.h to missing.h + - update commit title] + +Signed-off-by: Thomas De Schampheleire <[email protected]> + +Upstream-status: rejected, suggests to add in buildroot instead [1] + +[1] http://news.gmane.org/find-root.php?message_id=1412062906%2d27378%2d1%2dgit%2dsend%2demail%2dpatrickdepinguin%40gmail.com + +--- + libkmod/missing.h | 4 ++++ + 1 files changed, 4 insertions(+), 0 deletions(-) + +diff --git a/libkmod/missing.h b/libkmod/missing.h +index 4c0d136..e123e98 100644 +--- a/libkmod/missing.h ++++ b/libkmod/missing.h +@@ -19,6 +19,10 @@ + # define __NR_finit_module -1 + #endif + ++#ifndef O_CLOEXEC ++#define O_CLOEXEC 0 ++#endif ++ + #ifndef HAVE_FINIT_MODULE + #include <errno.h> + +-- +1.7.1 +
package/kmod/kmod-0002-add-backup-implementation-of-be32toh.patch new file +72 -0
72 lines not on this page · raw message
PATCH v2 1/1 kmod: add patches to support build on RHEL 5
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas De Schampheleire <[email protected]> writes:
kmod uses certain features not available on older RHEL 5 machines (RedHat Enterprise Linux). This commit adds two patches to fix that.
Both patches have been proposed upstream, the second one being accepted, the first rejected with the suggestion to add the patch in Buildroot instead.
Signed-off-by Thomas De Schampheleire <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard