[asterisk-dev] rebuilding kmod-dahdi-linux i686 vs i386

Bob Beers bob.beers at gmail.com
Tue Aug 31 15:56:13 CDT 2010


I have RHEL5 on a Pentium M machine.
I am trying to rebuild the dahdi RPMs on my box.

The package built on my machine using
$ rpmbuild --rebuild
dahdi-linux-kmod-2.3.0.1-1_centos5.2.6.18_194.11.3.el5.src.rpm
is
kmod-dahdi-linux-2.3.0.1-1_centos5.2.6.18_194.11.3.el5.i386.rpm

The package at asterisk.org yum repository is
kmod-dahdi-linux-2.3.0.1-1_centos5.2.6.18_194.11.3.el5.i686.rpm

Trying to install the .i386.rpm, built on my local machine doesn't work,
 since my machine has i686 kernel installed.

Is there a 'special sauce' required for the 'rpmbuild --rebuild' command
 to get the kmod-dahdi-linux to be the correct arch?

I tried adding '--define "arch i686"', but that had no effect.

Shouldn't the .spec file determine the correct arch from the running
kernel, unless
 specifically overridden?

Thanks,

-Bob Beers



More information about the asterisk-dev mailing list