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

Mailing List Archive: atrpms: devel

lirc kmdl build...?

 

 

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


john.robinson at anonymous

Dec 12, 2007, 3:12 AM

Post #1 of 8 (2559 views)
Permalink
lirc kmdl build...?

I'm probably being stupid, or just don't know the right magic, but how
should I go about building the lirc kmdl package? I need to because I've
built my own kernel rpms.

I'm using CentOS 5, I've installed atrpms-rpm-config-168-1.noarch.rpm
and am trying to follow instructions from
http://people.atrpms.net/~pcavalcanti/LCG_kernel_modules.html in
particular using bkmdl.sh, but the build seems to go on forever,
presumably in circles. I've spotted the following FATAL in the output:

Making install in lirc_serial
make[1]: Entering directory
`/home/john/rpmbuild/BUILD/lirc-0.8.3/drivers/lirc_serial'
make[2]: Entering directory
`/home/john/rpmbuild/BUILD/lirc-0.8.3/drivers/lirc_serial'
test -e /home/john/rpmbuild/BUILD/lirc-0.8.3/buildroot/serial/dev/lirc
|| (/home/john/rpmbuild/BUILD/lirc-0.8.3/install-sh -d
/home/john/rpmbuild/BUILD/lirc-0.8.3/buildroot/serial/dev &&
/home/john/rpmbuild/BUILD/lirc-0.8.3/fake_mknod/mknod
/home/john/rpmbuild/BUILD/lirc-0.8.3/buildroot/serial/dev/lirc c 61 0)
WARNING mknod called with
mknod
/home/john/rpmbuild/BUILD/lirc-0.8.3/install-sh -d
/home/john/rpmbuild/BUILD/lirc-0.8.3/buildroot/serial/lib/modules/2.6.18-53.1.4.el5.JR_nopaexen/updates/drivers/lirc
/usr/bin/install -c -m 644 lirc_serial.ko
/home/john/rpmbuild/BUILD/lirc-0.8.3/buildroot/serial/lib/modules/2.6.18-53.1.4.el5.JR_nopaexen/updates/drivers/lirc/lirc_serial.ko
/sbin/depmod -a
FATAL: Could not open
/lib/modules/2.6.18-53.1.4.el5.JR_nopaexen/modules.dep.temp for writing:
Permission denied
make[2]: [install-data-local] Error 1 (ignored)
make[2]: Leaving directory
`/home/john/rpmbuild/BUILD/lirc-0.8.3/drivers/lirc_serial'
make[1]: Leaving directory
`/home/john/rpmbuild/BUILD/lirc-0.8.3/drivers/lirc_serial'

What to do?

Many thanks in advance,

Cheers,

John.

_______________________________________________
atrpms-devel mailing list
atrpms-devel [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


ptiggerdine at iinet

Dec 12, 2007, 8:41 PM

Post #2 of 8 (2428 views)
Permalink
Re: lirc kmdl build...? [In reply to]

John,

The rpm appears to be needing root permission to build the rpm.. The is
really bad practice. don't quote me but I pretty sure that all rpm's
should be able to build w/o root access according to rpm standards.

Two options as I see it..

1. Run rpmbuild as root
2. Fix the spec file so it doesn't need to touch anything system wise
during the compile/make process of the rpm.

Having said all this, I haven't look the spec file and I maybe
completely wrong...

Just my $0.02

Regards,

Peter Tiggerdine.

John Robinson wrote:
> I'm probably being stupid, or just don't know the right magic, but how
> should I go about building the lirc kmdl package? I need to because I've
> built my own kernel rpms.
>
> I'm using CentOS 5, I've installed atrpms-rpm-config-168-1.noarch.rpm
> and am trying to follow instructions from
> http://people.atrpms.net/~pcavalcanti/LCG_kernel_modules.html in
> particular using bkmdl.sh, but the build seems to go on forever,
> presumably in circles. I've spotted the following FATAL in the output:
>
> Making install in lirc_serial
> make[1]: Entering directory
> `/home/john/rpmbuild/BUILD/lirc-0.8.3/drivers/lirc_serial'
> make[2]: Entering directory
> `/home/john/rpmbuild/BUILD/lirc-0.8.3/drivers/lirc_serial'
> test -e /home/john/rpmbuild/BUILD/lirc-0.8.3/buildroot/serial/dev/lirc
> || (/home/john/rpmbuild/BUILD/lirc-0.8.3/install-sh -d
> /home/john/rpmbuild/BUILD/lirc-0.8.3/buildroot/serial/dev &&
> /home/john/rpmbuild/BUILD/lirc-0.8.3/fake_mknod/mknod
> /home/john/rpmbuild/BUILD/lirc-0.8.3/buildroot/serial/dev/lirc c 61 0)
> WARNING mknod called with
> mknod
> /home/john/rpmbuild/BUILD/lirc-0.8.3/install-sh -d
> /home/john/rpmbuild/BUILD/lirc-0.8.3/buildroot/serial/lib/modules/2.6.18-53.1.4.el5.JR_nopaexen/updates/drivers/lirc
> /usr/bin/install -c -m 644 lirc_serial.ko
> /home/john/rpmbuild/BUILD/lirc-0.8.3/buildroot/serial/lib/modules/2.6.18-53.1.4.el5.JR_nopaexen/updates/drivers/lirc/lirc_serial.ko
> /sbin/depmod -a
> FATAL: Could not open
> /lib/modules/2.6.18-53.1.4.el5.JR_nopaexen/modules.dep.temp for writing:
> Permission denied
> make[2]: [install-data-local] Error 1 (ignored)
> make[2]: Leaving directory
> `/home/john/rpmbuild/BUILD/lirc-0.8.3/drivers/lirc_serial'
> make[1]: Leaving directory
> `/home/john/rpmbuild/BUILD/lirc-0.8.3/drivers/lirc_serial'
>
> What to do?
>
> Many thanks in advance,
>
> Cheers,
>
> John.
>
> _______________________________________________
> atrpms-devel mailing list
> atrpms-devel [at] atrpms
> http://lists.atrpms.net/mailman/listinfo/atrpms-devel
>

_______________________________________________
atrpms-devel mailing list
atrpms-devel [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


john.robinson at anonymous

Dec 13, 2007, 4:27 AM

Post #3 of 8 (2455 views)
Permalink
Re: lirc kmdl build...? [In reply to]

On 13/12/2007 04:41, Peter Tiggerdine wrote:
> The rpm appears to be needing root permission to build the rpm.. The is
> really bad practice. don't quote me but I pretty sure that all rpm's
> should be able to build w/o root access according to rpm standards.
>
> Two options as I see it..
>
> 1. Run rpmbuild as root

Yeuch; as you say that's not good practice.

> 2. Fix the spec file so it doesn't need to touch anything system wise
> during the compile/make process of the rpm.

Done that; in a sense it's not a problem with the spec file but the lirc
build process attempts to run depmod after the install phase, which is
not useful during rpm building, so I added "depmod=/bin/true" to the
spec file's configure command.

> Having said all this, I haven't look the spec file and I maybe
> completely wrong...

No, quite right. Having looked more closely I now see why it looked like
the build was going round in circles: building the kmdl package seems to
need to run configure; make; make install for each individual kernel
module, which seems overkill. I might have a go at rewriting the spec so
everything gets run only once, optionally building the kmdl package
depending on a switch, unless anyone here can tell me why it is done the
way it is. If I do I shall be back with more questions when I make the
inevitable stupid mistakes.

Cheers,

John.

_______________________________________________
atrpms-devel mailing list
atrpms-devel [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


promac at gmail

Dec 13, 2007, 5:14 AM

Post #4 of 8 (2452 views)
Permalink
Re: lirc kmdl build...? [In reply to]

On Dec 13, 2007 10:27 AM, John Robinson <john.robinson [at] anonymous>
wrote:

> On 13/12/2007 04:41, Peter Tiggerdine wrote:
> > The rpm appears to be needing root permission to build the rpm.. The is
> > really bad practice. don't quote me but I pretty sure that all rpm's
> > should be able to build w/o root access according to rpm standards.
> >
> > Two options as I see it..
> >
> > 1. Run rpmbuild as root
>
> Yeuch; as you say that's not good practice.
>


I can not help much, because I only build kmdls for Fedora.

But, basically, for lirc, you need the complete kernel tree.
You do not need to compile the kernel, but you need to follow the howto
until

make mrpoper
make modules

Then you can build the kmdl for lirc.

I have built lirc myself in the past, and never had any issue, but as I said
not for RHEL.


--
Paulo Roma Cavalcanti
LCG - UFRJ


john.robinson at anonymous

Dec 13, 2007, 6:54 AM

Post #5 of 8 (2458 views)
Permalink
Re: lirc kmdl build...? [In reply to]

On 13/12/2007 13:14, Paulo Cavalcanti wrote:
[...]
> I can not help much, because I only build kmdls for Fedora.
>
> But, basically, for lirc, you need the complete kernel tree.

Now I've added the "depmod=/bin/true", it all works, and it doesn't need
the complete kernel tree, it's working from /usr/src/kernels/blah from
the kernel-devel rpm I built.

> I have built lirc myself in the past, and never had any issue, but as I said
> not for RHEL.

Well, EL5 is effectively FC6, so I'd expect the same issues would occur.
Do you build as root?

Cheers,

John.


_______________________________________________
atrpms-devel mailing list
atrpms-devel [at] atrpms
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


promac at gmail

Dec 13, 2007, 7:48 AM

Post #6 of 8 (2463 views)
Permalink
Re: lirc kmdl build...? [In reply to]

On Dec 13, 2007 12:54 PM, John Robinson <john.robinson [at] anonymous>
wrote:

> On 13/12/2007 13:14, Paulo Cavalcanti wrote:
> [...]
> > I can not help much, because I only build kmdls for Fedora.
> >
> > But, basically, for lirc, you need the complete kernel tree.
>
> Now I've added the "depmod=/bin/true", it all works, and it doesn't need
> the complete kernel tree, it's working from /usr/src/kernels/blah from
> the kernel-devel rpm I built.


Yes. I compiled it for F8 and it is not requiring the complete kernel
anymore.

A lot simpler (and faster) this way ...




>
>
> > I have built lirc myself in the past, and never had any issue, but as I
> said
> > not for RHEL.
>
> Well, EL5 is effectively FC6, so I'd expect the same issues would occur.
> Do you build as root?
>


I never build anything as root. Sometimes I use mock 0.8.15.



--
Paulo Roma Cavalcanti
LCG - UFRJ


Axel.Thimm at ATrpms

Dec 13, 2007, 9:04 AM

Post #7 of 8 (2457 views)
Permalink
Re: lirc kmdl build...? [In reply to]

On Wed, Dec 12, 2007 at 11:12:36AM +0000, John Robinson wrote:
> /usr/bin/install -c -m 644 lirc_serial.ko
> /home/john/rpmbuild/BUILD/lirc-0.8.3/buildroot/serial/lib/modules/2.6.18-53.1.4.el5.JR_nopaexen/updates/drivers/lirc/lirc_serial.ko
> /sbin/depmod -a
> FATAL: Could not open
> /lib/modules/2.6.18-53.1.4.el5.JR_nopaexen/modules.dep.temp for writing:
> Permission denied
> make[2]: [install-data-local] Error 1 (ignored)

Well, it does say "ignored" which means that make doesn't consider it
really that fatal. :)

Not the cleanest approach, but it's just a cosmetic bug.
--
Axel.Thimm at ATrpms.net


Axel.Thimm at ATrpms

Dec 13, 2007, 9:10 AM

Post #8 of 8 (2453 views)
Permalink
Re: lirc kmdl build...? [In reply to]

On Thu, Dec 13, 2007 at 12:27:43PM +0000, John Robinson wrote:
> On 13/12/2007 04:41, Peter Tiggerdine wrote:
> > The rpm appears to be needing root permission to build the rpm.

No, that's not the case. The failing op is not needed. Yes, as root it
would succeed but it would be a noop and its failure is ignored
anyway.

> > The is really bad practice. don't quote me but I pretty sure that
> > all rpm's should be able to build w/o root access according to rpm
> > standards.

Exactly. That's the way all rpms at ATrpms are built.

> No, quite right. Having looked more closely I now see why it looked like
> the build was going round in circles: building the kmdl package seems to
> need to run configure; make; make install for each individual kernel
> module, which seems overkill. I might have a go at rewriting the spec so
> everything gets run only once, optionally building the kmdl package
> depending on a switch, unless anyone here can tell me why it is done the
> way it is.

Well, you already explained it: Otherwise you don't get all kernel
modules built. If you find a shorter way to reach the same results I
don't mind changing the build procedure :)
(it needs to cover the current profile, e.g. building only for a given
driver doesn't count - the package needs to be cosumable on the binary
level, not the source-build-it-yourself :)

> If I do I shall be back with more questions when I make the
> inevitable stupid mistakes.

Your questions are welcome! :)
--
Axel.Thimm at ATrpms.net

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.