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

John Robinson john.robinson at anonymous.org.uk
Thu Dec 13 13:27:43 CET 2007


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.



More information about the atrpms-devel mailing list