From b0050a9bb1e76b18c8a33b265f68d7e80163bf02 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 26 Oct 2010 15:04:12 +0000 Subject: testing/iscs-scst-grsec: build fix for 2.6.35 kernel --- testing/iscsi-scst-grsec/2.6.35.patch | 11 +++++++++++ testing/iscsi-scst-grsec/APKBUILD | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 testing/iscsi-scst-grsec/2.6.35.patch diff --git a/testing/iscsi-scst-grsec/2.6.35.patch b/testing/iscsi-scst-grsec/2.6.35.patch new file mode 100644 index 0000000000..54fde38221 --- /dev/null +++ b/testing/iscsi-scst-grsec/2.6.35.patch @@ -0,0 +1,11 @@ +--- ./kernel/conn.c.orig ++++ ./kernel/conn.c +@@ -86,7 +86,7 @@ + switch (sk->sk_family) { + case AF_INET: + snprintf(buf, sizeof(buf), +- "%u.%u.%u.%u", NIPQUAD(inet_sk(sk)->daddr)); ++ "%u.%u.%u.%u", NIPQUAD(inet_sk(sk)->inet_daddr)); + break; + case AF_INET6: + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29) diff --git a/testing/iscsi-scst-grsec/APKBUILD b/testing/iscsi-scst-grsec/APKBUILD index c8c95c158e..0320a5caaa 100644 --- a/testing/iscsi-scst-grsec/APKBUILD +++ b/testing/iscsi-scst-grsec/APKBUILD @@ -26,6 +26,7 @@ makedepends="linux-${_flavor}-dev=${_kernelver} scst-grsec-dev" subpackages= source="http://downloads.sourceforge.net/scst/$_realname-$_realver.tar.gz config.c.patch + 2.6.35.patch " _ksrc=/usr/src/linux-headers-${_abi_release} @@ -57,4 +58,5 @@ package() { } md5sums="56109c01e3d4421a36d6f47efa1fb0d5 iscsi-scst-1.0.1.1.tar.gz -48e21e3466fd819418f29e3b2487f052 config.c.patch" +48e21e3466fd819418f29e3b2487f052 config.c.patch +d2490c86d9138226ec674997817a163b 2.6.35.patch" -- cgit v1.2.3