Bug 1482509 - rpmmacros and rpmrc error
Summary: rpmmacros and rpmrc error
Keywords:
Status: CLOSED DUPLICATE of bug 1475439
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config
Version: 26
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Florian Festi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-17 12:48 UTC by Dominik Kucher
Modified: 2017-08-21 13:19 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-21 13:19:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dominik Kucher 2017-08-17 12:48:35 UTC
i build with my rpmrc and rpmmacro file on fedora 25 my binarys but on fedora 26 it not works 

Fehler: Zu viele Rekursionsebenen bei der Expansion des Makros. Dies wird wahrscheinlich durch eine rekursive Makro-Deklaration verursacht.
Fehler: Zu viele Rekursionsebenen bei der Expansion des Makros. Dies wird wahrscheinlich durch eine rekursive Makro-Deklaration verursacht.
Ausführung(%prep): /bin/sh -e /var/tmp/rpm-tmp.eVaIuY
/var/tmp/rpm-tmp.eVaIuY: Zeile 5: Dateiende beim Suchen nach `"' erreicht.
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.eVaIuY (%prep)


Fehler beim Bauen des RPM:
    Zu viele Rekursionsebenen bei der Expansion des Makros. Dies wird wahrscheinlich durch eine rekursive Makro-Deklaration verursacht.
    Zu viele Rekursionsebenen bei der Expansion des Makros. Dies wird wahrscheinlich durch eine rekursive Makro-Deklaration verursacht.
    Fehler-Status beim Beenden von /var/tmp/rpm-tmp.eVaIuY (%prep)

[dsoft@srv:~/rpmbuild/SPECS]$ cat /home/dsoft/.rpmrc 
optflags: x86_64 %{__global_cflags} -m64 -march=core2 -mtune=core2 

[dsoft@srv:~/rpmbuild/SPECS]$ cat /home/dsoft/.rpmmacros 

%_topdir %(echo $HOME)/rpmbuild
%__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot

%fedora                 26
%dist                   .fc%fedora.%(echo $(/usr/bin/date +%Y%m%d)).dk
%packager               Dominik Kucher
%vendor                 Dominik Kucher
%php_api                .php71
%php_debug_build        0
%O3_flags               -O3 -fno-strict-aliasing -fno-gcse-after-reload -fno-inline-functions -fno-ipa-cp -fno-ipa-cp-clone -fno-peel-loops -fno-predictive-commoning -fno-tree-loop-distribute-patterns -fno-unswitch-loops
%_smp_mflags            -j8
%_include_minidebuginfo 0
%debug_package          %{nil}
%__perl_requires        %{nil}
%_binary_payload        w1.gzdio
%_source_payload        w1.gzdio
%__global_ldflags       -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -specs=/usr/lib/rpm/redhat/redhat-hardened-ld

%configure \
  CFLAGS="${CFLAGS:-%optflags}"; export CFLAGS; \
  CXXFLAGS="${CXXFLAGS:-%optflags}"; export CXXFLAGS; \
  FFLAGS="${FFLAGS:-%optflags -I%_fmoddir}"; export FFLAGS; \
  FCFLAGS="${FCFLAGS:-%optflags -I%_fmoddir}"; export FCFLAGS; \
  LDFLAGS="${LDFLAGS:-%__global_ldflags}"; export LDFLAGS; \
  ./configure \\\
   --host=x86_64-redhat-linux \\\
   --build=x86_64-redhat-linux \\\
   --target=x86_64-redhat-linux \\\
   --program-prefix=%{?_program_prefix} \\\
   --disable-dependency-tracking \\\
   --prefix=%{_prefix} \\\
   --exec-prefix=%{_exec_prefix} \\\
   --bindir=%{_bindir} \\\
   --sbindir=%{_sbindir} \\\
   --sysconfdir=%{_sysconfdir} \\\
   --datadir=%{_datadir} \\\
   --includedir=%{_includedir} \\\
   --libdir=%{_libdir} \\\
   --libexecdir=%{_libexecdir} \\\
   --localstatedir=%{_localstatedir} \\\
   --sharedstatedir=%{_sharedstatedir} \\\
   --mandir=%{_mandir} \\\

Comment 1 Igor Gnatenko 2017-08-19 16:49:57 UTC
What's the error in english?

Comment 2 Dominik Kucher 2017-08-19 22:22:04 UTC
Error: Too many recursion levels when expanding the macro. This is probably caused by a recursive macro declaration.
Error: Too many recursion levels when expanding the macro. This is probably caused by a recursive macro declaration.
execution(%prep): /bin/sh -e /var/tmp/rpm-tmp.eVaIuY
/var/tmp/rpm-tmp.eVaIuY: Zeile 5: Files reached while searching for `"' 
Error: Error status when exiting /var/tmp/rpm-tmp.eVaIuY (%prep)


Error in building the RPM:
   Error: Too many recursion levels when expanding the macro. This is probably caused by a recursive macro declaration.
    Error: Too many recursion levels when expanding the macro. This is probably caused by a recursive macro declaration.
    Fehler-Status beim Beenden von /var/tmp/rpm-tmp.eVaIuY (%prep)

Comment 3 Panu Matilainen 2017-08-21 13:19:45 UTC

*** This bug has been marked as a duplicate of bug 1475439 ***


Note You need to log in before you can comment on or make changes to this bug.