Merge lp:~vanvugt/ubuntu/natty/oss4/fix-746048 into lp:ubuntu/natty/oss4

Proposed by Daniel van Vugt
Status: Merged
Merge reported by: Colin Watson
Merged at revision: not available
Proposed branch: lp:~vanvugt/ubuntu/natty/oss4/fix-746048
Merge into: lp:ubuntu/natty/oss4
Diff against target: 60 lines (+39/-1)
3 files modified
debian/changelog (+7/-0)
debian/patches/missing_fop_ioctl_2.6.36.patch (+31/-0)
debian/patches/series (+1/-1)
To merge this branch: bzr merge lp:~vanvugt/ubuntu/natty/oss4/fix-746048
Reviewer Review Type Date Requested Status
Marc Deslauriers Pending
Stefano Rivera Pending
Ubuntu branches Pending
Review via email: mp+64945@code.launchpad.net

This proposal supersedes a proposal from 2011-06-16.

Description of the change

Fixed build failure on kernels >= 2.6.36 (LP: #746048)

To post a comment you must log in.
Revision history for this message
Marc Deslauriers (mdeslaur) wrote : Posted in a previous version of this proposal

Thanks for the fix, however could you please do the following:
1- Add an appropriate changelog entry to debian/changelog that details the fix and references the bug number
2
- Add tagging to the patch to locate it's origin (see http://dep.debian.net/deps/dep3/)
3- Add the other part of the upstream fix:

     1.6 /* readdir_t tmp_readdir = (readdir_t)op->readdir; */
     1.7 +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,35)
     1.8 ioctl_t tmp_ioctl = (ioctl_t) op->ioctl;
     1.9 +#endif

Thanks!

review: Needs Fixing
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal

Changes made as requested by Marc.

Though, is it necessary to always include debian/changelog in a merge proposal? I stopped doing so a while ago because I noticed other people didn't bother and the required info is already on the merge proposal page. Or is a debian/changelog only needed in cases like this where it's likely the be the only merge proposal going into the package revision?

Revision history for this message
Stefano Rivera (stefanor) wrote : Posted in a previous version of this proposal

Daniel: Now that this is fixed in Oneiric, we can see about doing this SRU.
See the SRU documentation: https://wiki.ubuntu.com/StableReleaseUpdates

The proposal looks good, but needs a couple of tweaks:
* natty -> natty-proposed
* Please use the version number 4.2-build2003-1ubuntu1.1 (it indicates an SRU)
* Please provide test-case instructions in the bug report. (Should be pretty simple: install oss4-base + oss4-dkms, look for success / failure)

review: Needs Fixing
Revision history for this message
Stefano Rivera (stefanor) wrote :

Whoops, I the version should have actually been 4_4.2-build2003-1ubuntu1.11.04.1, as 4_4.2-build2003-1ubuntu1 is published in both maverick and natty.

Anyway, I fixed that on upload.

I've uploaded this to natty-proposed, and it's pending SRU team review.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-07-31 19:37:43 +0000
3+++ debian/changelog 2011-06-17 07:21:24 +0000
4@@ -1,3 +1,10 @@
5+oss4 (4.2-build2003-1ubuntu1.1) natty-proposed; urgency=low
6+
7+ * Fixed DKMS build failure on kernels >= 2.6.36, ie. oss4-dkms never
8+ successfully installed on natty until now (LP: #746048)
9+
10+ -- Daniel van Vugt <vanvugt@gmail.com> Wed, 15 Jun 2011 14:00:38 +0800
11+
12 oss4 (4.2-build2003-1ubuntu1) maverick; urgency=low
13
14 * Merge from debian unstable (LP: #606833). Remaining changes:
15
16=== added file 'debian/patches/missing_fop_ioctl_2.6.36.patch'
17--- debian/patches/missing_fop_ioctl_2.6.36.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/missing_fop_ioctl_2.6.36.patch 2011-06-17 07:21:24 +0000
19@@ -0,0 +1,31 @@
20+From: Daniel van Vugt <vanvugt@gmail.com>
21+Description: Fixed build failure on kernels >= 2.6.36 (LP: #746048)
22+Bug-Ubuntu: https://launchpad.net/bugs/746048
23+Bug-Debian: http://bugs.debian.org/595298
24+Origin: upstream, http://opensound.hg.sourceforge.net/hgweb/opensound/opensound/rev/c63e54ba4988
25+Forwarded: not-needed
26+Author: Yair K (at Origin)
27+
28+--- a/setup/Linux/oss/build/osscore.c Mon Aug 09 04:43:06 2010 +0300
29++++ b/setup/Linux/oss/build/osscore.c Sat Sep 25 18:02:53 2010 +0300
30+@@ -933,7 +933,9 @@
31+ read_t tmp_read = (read_t) op->read;
32+ write_t tmp_write = (write_t) op->write;
33+ /* readdir_t tmp_readdir = (readdir_t)op->readdir; */
34++#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,35)
35+ ioctl_t tmp_ioctl = (ioctl_t) op->ioctl;
36++#endif
37+ mmap_t tmp_mmap = (mmap_t) op->mmap;
38+ open_t tmp_open = (open_t) op->open;
39+ release_t tmp_release = (release_t) op->release;
40+@@ -953,7 +955,9 @@
41+ fop->write = tmp_write;
42+ fop->readdir = NULL; /* tmp_readdir; */
43+ fop->poll = tmp_poll;
44++#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,35)
45+ fop->ioctl = tmp_ioctl;
46++#endif
47+ fop->mmap = tmp_mmap;
48+ fop->open = tmp_open;
49+ fop->release = tmp_release;
50+
51
52=== modified file 'debian/patches/series'
53--- debian/patches/series 2009-12-07 14:52:21 +0000
54+++ debian/patches/series 2011-06-17 07:21:24 +0000
55@@ -4,4 +4,4 @@
56 arch_without_mregparm.patch
57 dont_build_kernel_module.patch
58 fix_invalid_printf.patch
59-
60+missing_fop_ioctl_2.6.36.patch

Subscribers

People subscribed via source and target branches