Hi, On Mon, Dec 29, 2008 at 07:18:29PM +0100, Alexander 'Leo' Bergolth wrote: > On F10, there seems to be a macro expansion loop in macros.kmdl. (See > the error below.)
it's not a loop, it is indeed too limited macro expansion. If I
remember correctly rpm uses more than 1 (I think 4) stack slots for
one invocation, so you can already hit the limit with a couple
complicated macros.
> The error seems to be related to the definition of kmdl_name:
>
> Using
> rpmbuild --define 'kmdl_userland 1' --define 'kmdl_name x' ...
> or
> rpmbuild --define 'kmdl_name x' ...
>
> works fine but
>
> rpmbuild --define 'kmdl_userland 1' --define '_kpkgname x' ...
>
> ... also shows the max-recursion error.
Defining kmdl_kernelsrcdir also works.
Please do something of the above for now as a temporary
workaround. The true fix would be to allow rpm to be more generously,
and the long term workaround would be to manually expand some of the
macros or even use $global ... %{expand:%{exec...}} style definitions.
> Cheers,
> --leo
>
> -------------------- 8< --------------------
> + exec rpmbuild --define '_topdir /home/software/perl/DBD-Oracle' -bb
> perl-DBD-Oracle.spec
> error: Recursion depth(17) greater than max(16)
> 15< (empty)
> 14< /lib/modules/
> 13< (empty)
> 12< (empty)
> 11< (empty)
> 10< (empty)
> 13< uname -r
> 12< 2.6.27.7-134.fc10.i686.PAE/build
> 11< /lib/modules/2.6.27.7-134.fc10.i686.PAE...
> 10< 2.6.27.7-134.fc10.i686.PAE
> 14< grep -i fedora.core /etc/redhat-r...
> 13< f
> 14< %{VERSION}' /etc/redhat-release |...
> 13< 10
> 12< 10 | sed -e's,\.,_,g'
> 11< f10
> 10< f10
> error: Recursion depth(17) greater than max(16)
> 15< (empty)
> 14< /lib/modules/
> 13< (empty)
> 12< (empty)
> 11< (empty)
> 10< (empty)
> 9< (empty)
> 8< (empty)
> 7< (empty)
> 6< %{_kpkgname}-kmdl--debuginfo"
> 5< debuginfo
> 5< perl-DBD-Oracle
> 8< %{_kpkgname}" = "%{_kpkgname}" && echo 1 || e...
> 7< 1
> 14< grep -i fedora.core /etc/redhat-r...
> 13< f
> 14< %{VERSION}' /etc/redhat-release |...
> 13< 10
> 12< 10 | sed -e's,\.,_,g'
> 11< f10
> 10< f10
> error: Recursion depth(17) greater than max(16)
> 15< (empty)
> 14< /lib/modules/
> 13< (empty)
> 12< (empty)
> 11< (empty)
> 10< (empty)
> 13< uname -r
> 12< 2.6.27.7-134.fc10.i686.PAE/build
> 11< /lib/modules/2.6.27.7-134.fc10.i686.PAE...
> 10< 2.6.27.7-134.fc10.i686.PAE
> 14< grep -i fedora.core /etc/redhat-r...
> 13< f
> 14< %{VERSION}' /etc/redhat-release |...
> 13< 10
> 12< 10 | sed -e's,\.,_,g'
> 11< f10
> 10< f10
> error: Recursion depth(17) greater than max(16)
> 15< (empty)
> 14< /lib/modules/
> 13< (empty)
> 12< (empty)
> 11< (empty)
> 10< (empty)
> 9< (empty)
> 8< (empty)
> 7< (empty)
> 6< %{_kpkgname}-kmdl--debuginfo"
> 5< debuginfo
> 5< perl-DBD-Oracle
> 8< %{_kpkgname}" = "%{_kpkgname}" && echo 1 || e...
> 7< 1
> 14< grep -i fedora.core /etc/redhat-r...
> 13< f
> 14< %{VERSION}' /etc/redhat-release |...
> 13< 10
> 12< 10 | sed -e's,\.,_,g'
> 11< f10
> 10< f10
> error: Recursion depth(17) greater than max(16)
> 15< (empty)
> 14< /lib/modules/
> 13< (empty)
> 12< (empty)
> 11< (empty)
> 10< (empty)
> 13< uname -r
> 12< 2.6.27.7-134.fc10.i686.PAE/build
> 11< /lib/modules/2.6.27.7-134.fc10.i686.PAE...
> 10< 2.6.27.7-134.fc10.i686.PAE
> 14< grep -i fedora.core /etc/redhat-r...
> 13< f
> 14< %{VERSION}' /etc/redhat-release |...
> 13< 10
> 12< 10 | sed -e's,\.,_,g'
> 11< f10
> 10< f10
> error: Recursion depth(17) greater than max(16)
> 15< (empty)
> 14< /lib/modules/
> 13< (empty)
> 12< (empty)
> 11< (empty)
> 10< (empty)
> 9< (empty)
> 8< (empty)
> 7< (empty)
> 6< %{_kpkgname}-kmdl--debuginfo"
> 5< debuginfo
> 5< (empty)
> 4< (empty)
> 3< %endif
> 2< %endif
> 2< (empty)
> 1< (empty)
> 0<
> %ifnarch noarch
> %package debuginfo
> Summary: Debug information for package perl-DBD-Oracle
> Group: Development/Debug
> %description debuginfo
> This package provides debug information for package perl-DBD-Oracle.
> Debug information is useful when developing applications that use this
> package or when debugging this package.
> %files debuginfo -f debugfiles.list
> %defattr(-,root,root)
> %endif
>
>
>
> %install
> LANG=C
> export LANG
> unset DISPLAY || :
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EVt1ts
> + umask 022
> + cd /home/software/perl/DBD-Oracle/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + cd /home/software/perl/DBD-Oracle/BUILD
> + rm -rf DBD-Oracle-1.22
> + /usr/bin/gzip -dc
> /home/software/perl/DBD-Oracle/SOURCES/DBD-Oracle-1.22.tar.gz
> [...]
--
Axel.Thimm at ATrpms.net
pgpMjXWJ25ofe.pgp
Description: PGP signature
_______________________________________________ atrpms-devel mailing list [email protected] http://lists.atrpms.net/mailman/listinfo/atrpms-devel
