From 4b36634fe8f9c86146e2e78c6fc4cc4dec086243 Mon Sep 17 00:00:00 2001 From: Matthias Hentges Date: Thu, 22 Feb 2007 12:40:06 +0000 Subject: nfs-utils: Fix compile for kernels > 2.6.18 --- packages/nfs-utils/nfs-utils-1.0.6/kernel-2.6.18+.patch | 13 +++++++++++++ packages/nfs-utils/nfs-utils_1.0.6.bb | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 packages/nfs-utils/nfs-utils-1.0.6/kernel-2.6.18+.patch (limited to 'packages/nfs-utils') diff --git a/packages/nfs-utils/nfs-utils-1.0.6/kernel-2.6.18+.patch b/packages/nfs-utils/nfs-utils-1.0.6/kernel-2.6.18+.patch new file mode 100644 index 0000000000..219bed094b --- /dev/null +++ b/packages/nfs-utils/nfs-utils-1.0.6/kernel-2.6.18+.patch @@ -0,0 +1,13 @@ +--- nfs-utils-1.0.6/tools/getkversion/getkversion.c.orig 2007-02-22 12:33:54.000000000 +0000 ++++ nfs-utils-1.0.6/tools/getkversion/getkversion.c 2007-02-22 12:33:56.000000000 +0000 +@@ -12,6 +12,10 @@ + int + main(void) /* This is for Dan Popp ;) */ + { ++ ++#ifdef UTS_RELEASE + printf("%s\n", UTS_RELEASE); ++#endif ++ + return 0; + } diff --git a/packages/nfs-utils/nfs-utils_1.0.6.bb b/packages/nfs-utils/nfs-utils_1.0.6.bb index 2072bd3157..8ca082114e 100644 --- a/packages/nfs-utils/nfs-utils_1.0.6.bb +++ b/packages/nfs-utils/nfs-utils_1.0.6.bb @@ -2,13 +2,14 @@ DESCRIPTION = "userspace utilities for kernel nfs" PRIORITY = "optional" SECTION = "console/network" LICENSE = "GPL" -PR = "r7" +PR = "r8" SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.gz \ file://acinclude-lossage.patch;patch=1 \ file://rpcgen-lossage.patch;patch=1 \ file://stat-include.patch;patch=1 \ file://nfs-utils-1.0.6-uclibc.patch;patch=1 \ + file://kernel-2.6.18+.patch;patch=1 \ file://nfsserver \ file://forgotten-defines" -- cgit v1.2.3