Merge lp:~csurbhi/ubuntu/maverick/redhat-cluster/redhat-cluster-fix.600984 into lp:ubuntu/maverick/redhat-cluster

Proposed by Surbhi Palande
Status: Rejected
Rejected by: Benjamin Drung
Proposed branch: lp:~csurbhi/ubuntu/maverick/redhat-cluster/redhat-cluster-fix.600984
Merge into: lp:ubuntu/maverick/redhat-cluster
Diff against target: 99 lines (+81/-0)
3 files modified
debian/changelog (+10/-0)
debian/patches/02-compilation-err-fix.patch (+70/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~csurbhi/ubuntu/maverick/redhat-cluster/redhat-cluster-fix.600984
Reviewer Review Type Date Requested Status
Benjamin Drung Disapprove
Ubuntu branches Pending
Review via email: mp+29848@code.launchpad.net

Description of the change

This patch fixes the bug #600984 on LP. It makes the following changes to fix the compilation error(s) while building redhat-cluster package:

1) changes bdev_hardsect_size() to bdev_logical_block_size()
2) changes generic_file_aio_write_nolock() to generic_file_aio_write()
3) changes the default include dir for nss and nspr to be /usr/include/nss and /usr/include/nspr respectively

Please do consider merging this for maverick.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks for this.

This merge doesn't seem to fix the build failure bug. I get the same
failure when test-building it as I do when test-building the package in
the archive.

As a matter of convention, we usually put Ubuntu patches at the end of
the patch queue, i.e. run 'quilt push -a' before creating the patch, and
I'd suggest using some kind of similar numbering scheme rather than
having the Debian patch have four digits at the start and the Ubuntu
patch have two. (You can just edit the series file when in the 'quilt
pop -a' state to move the existing patch around.)

Why does configure need to be patched? debian/rules already passes
--nssincdir and --nsprincdir, so it shouldn't matter what their defaults
are.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the build failure has been fixed now, is that request still valid or should it be deleted now?

Revision history for this message
Benjamin Drung (bdrung) wrote :

Superseded by version 3.0.12-2ubuntu1

review: Disapprove

Unmerged revisions

33. By Surbhi Palande

* Fixed a compilation error by doing the following changes:
  - changed bdev_hardsect_size() to bdev_logical_block_size()
  - changed generic_file_aio_write_nolock() to generic_file_aio_write()
  - changed the default include dir for nss and nspr to be /usr/include/nss
  and /usr/include/nspr respectively (LP: #600984)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2010-03-27 18:20:36 +0000
+++ debian/changelog 2010-07-14 09:25:57 +0000
@@ -1,3 +1,13 @@
1redhat-cluster (3.0.2-2ubuntu4) maverick; urgency=low
2
3 * Fixed a compilation error by doing the following changes:
4 - changed bdev_hardsect_size() to bdev_logical_block_size()
5 - changed generic_file_aio_write_nolock() to generic_file_aio_write()
6 - changed the default include dir for nss and nspr to be /usr/include/nss
7 and /usr/include/nspr respectively (LP: #600984)
8
9 -- Surbhi Palande <surbhi.palande@canonical.com> Wed, 14 Jul 2010 12:05:39 +0300
10
1redhat-cluster (3.0.2-2ubuntu3) lucid; urgency=low11redhat-cluster (3.0.2-2ubuntu3) lucid; urgency=low
212
3 * debian/gfs2-tools.links: Fix symlinks (LP: #549415)13 * debian/gfs2-tools.links: Fix symlinks (LP: #549415)
414
=== added file 'debian/patches/02-compilation-err-fix.patch'
--- debian/patches/02-compilation-err-fix.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/02-compilation-err-fix.patch 2010-07-14 09:25:57 +0000
@@ -0,0 +1,70 @@
1Index: b/configure
2===================================================================
3--- a/configure
4+++ b/configure
5@@ -251,9 +251,9 @@
6 print "--openaisincdir=\tthe base directory for openais include files. (Default: {incdir})\n";
7 print "--openaislibdir=\tthe base directory for openais libraries. (Default: {libdir}/openais)\n";
8 print "--corosyncbin=\tlocation of corosync executable file. (Default: /usr/sbin/corosync)\n";
9- print "--nssincdir=\tthe base directory for libnss include files. (Default: {incdir}/nss3)\n";
10+ print "--nssincdir=\tthe base directory for libnss include files. (Default: {incdir}/nss)\n";
11 print "--nsslibdir=\tthe base directory for libnss libraries. (Default: {libdir})\n";
12- print "--nsprincdir=\tthe base directory for libnspr include files. (Default: {incdir}/nspr4)\n";
13+ print "--nsprincdir=\tthe base directory for libnspr include files. (Default: {incdir}/nspr)\n";
14 print "--nsprlibdir=\tthe base directory for libnspr libraries. (Default: {libdir})\n";
15 print "--virtincdir=\tthe base directory for libvirt include files. (Default: {incdir}/libvirt)\n";
16 print "--virtlibdir=\tthe base directory for libvirt libraries. (Default: {libdir})\n";
17@@ -509,13 +509,13 @@
18 $corosyncbin="/usr/sbin/corosync";
19 }
20 if (!$nssincdir) {
21- $nssincdir="${incdir}/nss3";
22+ $nssincdir="${incdir}/nss";
23 }
24 if (!$nsslibdir) {
25 $nsslibdir="${libdir}";
26 }
27 if (!$nsprincdir) {
28- $nsprincdir="${incdir}/nspr4";
29+ $nsprincdir="${incdir}/nspr";
30 }
31 if (!$nsprlibdir) {
32 $nsprlibdir="${libdir}";
33Index: b/gfs-kernel/src/gfs/ops_file.c
34===================================================================
35--- a/gfs-kernel/src/gfs/ops_file.c
36+++ b/gfs-kernel/src/gfs/ops_file.c
37@@ -352,7 +352,7 @@
38 goto out_gunlock;
39
40 if (gfs_is_stuffed(ip)) {
41- size_t mask = bdev_hardsect_size(inode->i_sb->s_bdev) - 1;
42+ size_t mask = bdev_logical_block_size(inode->i_sb->s_bdev) - 1;
43
44 if (((*offset) & mask) || (((unsigned long)buf) & mask))
45 goto out_gunlock;
46@@ -508,7 +508,7 @@
47 kiocb = iocb;
48
49 kiocb->ki_pos = *offset;
50- count = generic_file_aio_write_nolock(kiocb, &local_iov, kiocb->ki_nr_segs,
51+ count = generic_file_aio_write(kiocb, &local_iov, kiocb->ki_nr_segs,
52 kiocb->ki_pos);
53 *offset = kiocb->ki_pos;
54 if (kiocb == &local_iocb && count == -EIOCBQUEUED)
55Index: b/gfs-kernel/src/gfs/ops_fstype.c
56===================================================================
57--- a/gfs-kernel/src/gfs/ops_fstype.c
58+++ b/gfs-kernel/src/gfs/ops_fstype.c
59@@ -300,9 +300,9 @@
60 sizes, version #s, locations of important on-disk inodes, etc. */
61
62 error = -EINVAL;
63- if (sdp->sd_sb.sb_bsize < bdev_hardsect_size(sb->s_bdev)) {
64+ if (sdp->sd_sb.sb_bsize < bdev_logical_block_size(sb->s_bdev)) {
65 printk("GFS: fsid=%s: FS block size (%u) is too small for device block size (%u)\n",
66- sdp->sd_fsname, sdp->sd_sb.sb_bsize, bdev_hardsect_size(sb->s_bdev));
67+ sdp->sd_fsname, sdp->sd_sb.sb_bsize, bdev_logical_block_size(sb->s_bdev));
68 goto fail;
69 }
70 if (sdp->sd_sb.sb_bsize > PAGE_SIZE) {
071
=== modified file 'debian/patches/series'
--- debian/patches/series 2009-09-03 19:20:08 +0000
+++ debian/patches/series 2010-07-14 09:25:57 +0000
@@ -1,1 +1,2 @@
102-compilation-err-fix.patch
10001-add-dlm-kernel-headers.patch20001-add-dlm-kernel-headers.patch

Subscribers

People subscribed via source and target branches

to all changes: