
Axel.Thimm at ATrpms
Jun 29, 2009, 9:04 AM
Post #5 of 5
(1660 views)
Permalink
|
On Mon, Jun 29, 2009 at 10:40:38AM -0300, Martin Giguere wrote: > I had to use the command below to be able to compile on Centos 4.7. > If you could point me to a method of enabling debuging output all the > macros (would a spec file with echo macroname work?), I am happy to > troubleshoot your macro. > > Please let me know if you are interested. Of course I am! But debuggging rpm macros is a bit of a pain. You can use %trace and %dump for debugging, see /usr/share/doc/rpm-*/macros for the whole list. > rpmbuild -bb --define '_kernel 2.6.9-78.0.22.EL' --define > 'kmdl_kernelsrcdir /lib/modules/2.6.9-78.0.22.EL/build' > /usr/src/redhat/SPECS/dahdi-linux.spec > > On Sat, Jun 27, 2009 at 4:03 AM, Axel Thimm <Axel.Thimm [at] atrpms> wrote: > > > > On Thu, Jun 25, 2009 at 03:07:18PM -0300, Martin Giguere wrote: > > > Problem still occurring update: > > > > > > I am now trying to rebuild the dahdi kmdl for the current running > > > version of the kernel, thus I am using the command below: > > > > > > rpmbuild -bb --define 'kmdl_userland 0' --define 'dist .el4' > > > /usr/src/redhat/SPECS/dahdi-linux.spec > > > > > > > > > I get the output: > > > .............. > > > Wrote: /usr/src/redhat/RPMS/i386/dahdi-linux-kmdl--2.1.0.4-60.el4.i386.rpm > > > ............ > > > > > > The kernel version number appears to not be picked up by the building > > > macros, as you can see below, the atrpms-rpm-config rpm is installed > > > properly > > > > The macros try to guess the kernel you want to build for by querying > > the kernel source directory. Are the kernel sources properly > > installed? > > > > Otherwise you can force the kernel version with --define "_kernel 2.6...." > > > > > [root [at] hfxignmgtes build]# rpm -Vv atrpms-rpm-config > > > ........ /etc/rpm/macros.atrpms > > > ........ /etc/rpm/macros.bcond > > > ........ /etc/rpm/macros.kmdl > > > ........ /etc/rpm/macros.libs > > > ........ /etc/rpm/macros.perl > > > ........ /usr/lib/rpm/atrpms > > > ........ /usr/lib/rpm/atrpms/brp-compress > > > ........ /usr/lib/rpm/atrpms/brp-strip > > > ........ /usr/lib/rpm/atrpms/brp-strip-comment-note > > > ........ /usr/lib/rpm/atrpms/brp-strip-static-archive > > > ........ /usr/lib/rpm/atrpms/find-debuginfo.sh > > > ........ /usr/lib/rpm/atrpms/find-devel.sh > > > ........ /usr/lib/rpm/atrpms/find-lib.sh > > > ........ /usr/lib/rpm/atrpms/find-provides > > > ........ /usr/lib/rpm/atrpms/find-requires > > > ........ /usr/lib/rpm/atrpms/macros > > > ........ /usr/lib/rpm/atrpms/python_burninversion.sh > > > ........ /usr/lib/rpm/atrpms/rpmrc > > > > > > _______________________________________________ > > > 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 -- Axel.Thimm at ATrpms.net
|