[ATrpms-devel] lirc kmdl build...?

Peter Tiggerdine ptiggerdine at iinet.net.au
Thu Dec 13 05:41:58 CET 2007


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.net
> http://lists.atrpms.net/mailman/listinfo/atrpms-devel
>   



More information about the atrpms-devel mailing list