Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: atrpms: devel

Modules for kernel 2.6.27.12-170.2.5.fc10

 

 

atrpms devel RSS feed   Index | Next | Previous | View Threaded


promac at gmail

Jan 28, 2009, 5:19 AM

Post #1 of 5 (1466 views)
Permalink
Modules for kernel 2.6.27.12-170.2.5.fc10

Hi,

nvidia and video4linux built fine.

alsa was the problem. I had to remove all this
stuff for compiling it:

-------------------------------------------------------------------------------------------------------------

%if %{kmdl_userland}
%else
grep gfp_t %{kmdl_kernelsrcdir}/include/linux/gfp.h > /dev/null \
&& perl -pi -e's,(.* gfp_t;)$,/* $1 */,' include/adriver.h
if ! grep DMA_31BIT_MASK %{kmdl_kernelsrcdir}/include/linux/dma-mapping.h >
/dev/null; then
mv alsa-kernel/pci/ali5451/ali5451.c alsa-kernel/pci/ali5451/ali5451.c.bak
echo '#define DMA_31BIT_MASK 0x000000007fffffffULL' >
alsa-kernel/pci/ali5451/ali5451.c
cat alsa-kernel/pci/ali5451/ali5451.c.bak >>
alsa-kernel/pci/ali5451/ali5451.c
fi
if ! grep DMA_30BIT_MASK %{kmdl_kernelsrcdir}/include/linux/dma-mapping.h >
/dev/null; then
mv alsa-kernel/pci/trident/trident_main.c
alsa-kernel/pci/trident/trident_main.c.bak
echo '#define DMA_30BIT_MASK 0x000000003fffffffULL' >
alsa-kernel/pci/trident/trident_main.c
cat alsa-kernel/pci/trident/trident_main.c.bak >>
alsa-kernel/pci/trident/trident_main.c
fi
perl -pi -e's,#include <dpi56301.h>,#include "dpi56301.h",'
pci/asihpi/hpi56301.c
perl -pi -e's,#include <boot4ka.h>,#include "boot4ka.h",'
pci/asihpi/hpi56301.c
%endif

grep -rl '#include <linux/config.h>' . | xargs perl -pi -e's,#include
<linux/config.h>,#include <linux/autoconf.h>,'

----------------------------------------------------------------------------------------------------------------------

What were these for? RHEL?


--
Paulo Roma Cavalcanti
LCG - UFRJ


Axel.Thimm at ATrpms

Jan 30, 2009, 12:23 AM

Post #2 of 5 (1363 views)
Permalink
Re: Modules for kernel 2.6.27.12-170.2.5.fc10 [In reply to]

Hi,

On Wed, Jan 28, 2009 at 11:19:55AM -0200, Paulo Cavalcanti wrote:
> nvidia and video4linux built fine.
>
> alsa was the problem. I had to remove all this
> stuff for compiling it:
>
> -------------------------------------------------------------------------------------------------------------
>
> %if %{kmdl_userland}
> %else
> grep gfp_t %{kmdl_kernelsrcdir}/include/linux/gfp.h > /dev/null \
[...]

I think you removed one more line before that. The error is due to

#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)
typedef unsigned int fmode_t;
#endif

At least as I see it trying to fix it.
--
Axel.Thimm at ATrpms.net


promac at gmail

Jan 30, 2009, 2:54 AM

Post #3 of 5 (1367 views)
Permalink
Re: Modules for kernel 2.6.27.12-170.2.5.fc10 [In reply to]

On Fri, Jan 30, 2009 at 6:23 AM, Axel Thimm <Axel.Thimm [at] atrpms> wrote:

> Hi,
>
> On Wed, Jan 28, 2009 at 11:19:55AM -0200, Paulo Cavalcanti wrote:
> > nvidia and video4linux built fine.
> >
> > alsa was the problem. I had to remove all this
> > stuff for compiling it:
> >
> >
> -------------------------------------------------------------------------------------------------------------
> >
> > %if %{kmdl_userland}
> > %else
> > grep gfp_t %{kmdl_kernelsrcdir}/include/linux/gfp.h > /dev/null \
> [...]
>
> I think you removed one more line before that. The error is due to
>
> #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)
> typedef unsigned int fmode_t;
> #endif
>
> At least as I see it trying to fix it.
>

You are right.
I cleaned everything. I should have attached the spec file (I am doing now).

This alsa package is very important, because our friends from Fedora
went back to 1.0.17 in this kernel.

I will never understand this people...

--
Paulo Roma Cavalcanti
LCG - UFRJ
Attachments: alsa-driver.spec (11.0 KB)


Axel.Thimm at ATrpms

Jan 30, 2009, 3:34 AM

Post #4 of 5 (1367 views)
Permalink
Re: Modules for kernel 2.6.27.12-170.2.5.fc10 [In reply to]

Hi,

On Fri, Jan 30, 2009 at 08:54:43AM -0200, Paulo Cavalcanti wrote:
> On Fri, Jan 30, 2009 at 6:23 AM, Axel Thimm <Axel.Thimm [at] atrpms> wrote:
> > On Wed, Jan 28, 2009 at 11:19:55AM -0200, Paulo Cavalcanti wrote:
> > > nvidia and video4linux built fine.
> > >
> > > alsa was the problem. I had to remove all this
> > > stuff for compiling it:

> I cleaned everything. I should have attached the spec file (I am doing now).
>
> This alsa package is very important, because our friends from Fedora
> went back to 1.0.17 in this kernel.
>
> I will never understand this people...

Indeed there is a changlog line that says
* Wed Jan 21 2009 Chuck Ebbert <cebbert [at] redhat> 2.6.27.12-170.2.3
- Revert ALSA to what is upstream in 2.6.27.

I'm sure there are reasons for doing so. The nice thing about kmdls is
that you can optionally install them or not, so people with issues
with alsa 1.0.19 can simply use the one in the kernel package.

Anyway the specfile needed some tweaking for RHEL5 and RHEL4
support. The %prep section looks like this now:

%prep
%setup -q
%patch1 -p1 -b .log2
%patch5 -p1 -b .strict_strtoul
perl -pi -e's,(typedef _Bool bool;),/* $1 */,' include/adriver.h
perl -pi -e's|KERNEL_VERSION\(2, 6, 19\)|KERNEL_VERSION(2, 6, 9)|' usb/usbcompat.h
perl -pi -e's|KERNEL_VERSION\(2, 6, 21\)|KERNEL_VERSION(2, 6, 9)|' usb/usbcompat.h

grep -rl '#include <linux/config.h>' . | xargs perl -pi -e's,#include <linux/config.h>,#include <linux/autoconf.h>,'

Thanks!
--
Axel.Thimm at ATrpms.net


promac at gmail

Jan 30, 2009, 4:13 AM

Post #5 of 5 (1361 views)
Permalink
Re: Modules for kernel 2.6.27.12-170.2.5.fc10 [In reply to]

On Fri, Jan 30, 2009 at 9:34 AM, Axel Thimm <Axel.Thimm [at] atrpms> wrote:

> Hi,
>
> On Fri, Jan 30, 2009 at 08:54:43AM -0200, Paulo Cavalcanti wrote:
> > On Fri, Jan 30, 2009 at 6:23 AM, Axel Thimm <Axel.Thimm [at] atrpms>
> wrote:
> > > On Wed, Jan 28, 2009 at 11:19:55AM -0200, Paulo Cavalcanti wrote:
> > > > nvidia and video4linux built fine.
> > > >
> > > > alsa was the problem. I had to remove all this
> > > > stuff for compiling it:
>
> > I cleaned everything. I should have attached the spec file (I am doing
> now).
> >
> > This alsa package is very important, because our friends from Fedora
> > went back to 1.0.17 in this kernel.
> >
> > I will never understand this people...
>
> Indeed there is a changlog line that says
> * Wed Jan 21 2009 Chuck Ebbert <cebbert [at] redhat> 2.6.27.12-170.2.3
> - Revert ALSA to what is upstream in 2.6.27.
>

There is a script in alsa-utils that dumps, among other things,
alsa-lib and driver versions:

/usr/bin/alsa-info.sh --no-upload

Using the no-upload option writes a file in /tmp (otherwise it is uploaded
to alsa site).


>
> I'm sure there are reasons for doing so. The nice thing about kmdls is
> that you can optionally install them or not, so people with issues
> with alsa 1.0.19 can simply use the one in the kernel package.
>

I think the reason is that they went to 1.0.18 without testing enough,
and now they are afraid of doing the same mistake again.

But alsa-1.0.19 is just fine, and I do not like regressions.


>
> Anyway the specfile needed some tweaking for RHEL5 and RHEL4
> support. The %prep section looks like this now:
>
> %prep
> %setup -q
> %patch1 -p1 -b .log2
> %patch5 -p1 -b .strict_strtoul
> perl -pi -e's,(typedef _Bool bool;),/* $1 */,' include/adriver.h
> perl -pi -e's|KERNEL_VERSION\(2, 6, 19\)|KERNEL_VERSION(2, 6, 9)|'
> usb/usbcompat.h
> perl -pi -e's|KERNEL_VERSION\(2, 6, 21\)|KERNEL_VERSION(2, 6, 9)|'
> usb/usbcompat.h
>
> grep -rl '#include <linux/config.h>' . | xargs perl -pi -e's,#include
> <linux/config.h>,#include <linux/autoconf.h>,'
>
>
It is much cleaner now.

Thanks.

--
Paulo Roma Cavalcanti
LCG - UFRJ

atrpms devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.