From: udo1 <udo1@udo.hu>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] OpenSuse 11.2 8.7 Kernel packages not compile
Date: Fri, 12 Mar 2010 12:17:50 +0100 [thread overview]
Message-ID: <4B9A22DE.8090007@udo.hu> (raw)
Hi Developers,
I have checked OpenSuSE 11.2 kernel and it has a patch from the 2.6.32
kernel
So I have wrote a patch to the drbd 8.3.7
Please check or made a similar modifications to enable OpenSuSE 11.2 usage
--- drbd-8.3.7/drbd/drbd_wrappers.h.orig 2010-03-11
15:40:17.000000000 +0100
+++ drbd-8.3.7/drbd/drbd_wrappers.h 2010-03-12 11:26:39.000000000 +0100
@@ -121,7 +121,7 @@
extern BIO_ENDIO_TYPE drbd_endio_write_sec BIO_ENDIO_ARGS(struct bio
*bio, int error);
extern BIO_ENDIO_TYPE drbd_endio_pri BIO_ENDIO_ARGS(struct bio *bio,
int error);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
+#if (( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32) ) && (
WITHFLIGHTPATCH != 1 ))
#define part_inc_in_flight(A, B) part_inc_in_flight(A)
#define part_dec_in_flight(A, B) part_dec_in_flight(A)
#endif
--- drbd-8.3.7/drbd/Makefile.orig 2010-03-12 11:22:42.000000000 +0100
+++ drbd-8.3.7/drbd/Makefile 2010-03-12 11:59:08.000000000 +0100
@@ -30,6 +30,7 @@
# The destination "root" directory. Meant to be overridden by
# packaging scripts.
DESTDIR ?= /
+WITHFLIGHTPATCH=1
# since 2.6.16, KERNELRELEASE may be empty,
# e.g. when building agains some (broken?) linux-header package.
@@ -48,7 +49,7 @@
include $(DRBDSRC)/Makefile-2.6
- override EXTRA_CFLAGS += -I$(DRBDSRC)
+ override EXTRA_CFLAGS += -I$(DRBDSRC)
-DWITHFLIGHTPATCH=$(WITHFLIGHTPATCH)
# remember KERNELRELEASE for install target
# .kernelversion can be included in Makefile as well as
# sourced from shell
--- drbd-8.3.7/configure.orig 2010-03-11 16:59:49.000000000 +0100
+++ drbd-8.3.7/configure 2010-03-12 11:30:02.000000000 +0100
@@ -3254,6 +3254,10 @@
fi
fi
+
+#Reset drbd/Makefile
+sed -i 's/WITHFLIGHTPATCH=1/WITHFLIGHTPATCH=0/g' drbd/Makefile
+
case "$DISTRO" in
gentoo)
{ $as_echo "$as_me:${as_lineno-$LINENO}: configured for Gentoo." >&5
@@ -3329,6 +3333,10 @@
if grep -q 'VERSION = 9' /etc/SuSE-release; then
CFLAGS="-g -O1"
fi
+ if grep -q 'VERSION = 11.2' /etc/SuSE-release; then
+ echo configure: SuSE 11.2 detected, modifying drbd/Makefile
+ sed -i 's/WITHFLIGHTPATCH=0/WITHFLIGHTPATCH=1/g' drbd/Makefile
+ fi
;;
"")
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to
determine what distribution we are running on. Distribution-specific
features will be disabled." >&5
next reply other threads:[~2010-03-12 11:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-12 11:17 udo1 [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-03-04 11:22 [Drbd-dev] OpenSuse 11.2 8.7 Kernel packages not compile udo1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B9A22DE.8090007@udo.hu \
--to=udo1@udo.hu \
--cc=drbd-dev@lists.linbit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox