[Bug 807187] New: rpm: macro expansion fails in SLE
https://bugzilla.novell.com/show_bug.cgi?id=807187 https://bugzilla.novell.com/show_bug.cgi?id=807187#c0 Summary: rpm: macro expansion fails in SLE Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: All OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: BuildService AssignedTo: mls@suse.com ReportedBy: jengelh@inai.de QAContact: adrian@suse.com Found By: Beta-Customer Blocker: --- In SLE11 SP2, rpm macro expansion fails unexpectedly. This plagues both SLE as well as the SLE environment in OBS. $ rpm --eval '%{service_del_postun x2gocleansessions.service}' error: Recursion depth(17) greater than max(16) 15< (empty) 14< (empty) 13< (empty) 12< (empty) 11< (empty) 10< (empty) 9< (empty) 8< (empty) 7< (empty) 6< (empty) 5< (empty) 4< (empty) 3< (empty) 2< (empty) 1< for service in 0< test -n "$FIRST_ARG" || FIRST_ARG=$1 if test "$FIRST_ARG" -ge 1 ; then test -f /etc/sysconfig/services && . /etc/sysconfig/services if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_RESTART_ON_UPDATE" != yes ; then for service in test -n "$FIRST_ARG" || FIRST_ARG=$1 if test "$FIRST_ARG" -ge 1 ; then test -f /etc/sysconfig/services && . /etc/sysconfig/services if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_RESTART_ON_UPDATE" != yes ; then for service in -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=807187 https://bugzilla.novell.com/show_bug.cgi?id=807187#c1 --- Comment #1 from Michael Schröder <mls@suse.com> 2013-03-04 12:59:31 UTC --- Yeah, the macro is bad. Do not use it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=807187 https://bugzilla.novell.com/show_bug.cgi?id=807187#c2 --- Comment #2 from Jan Engelhardt <jengelh@inai.de> 2013-03-04 14:21:52 CET --- How exactly is it bad? It is just a "redirect" so to speak. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=807187 https://bugzilla.novell.com/show_bug.cgi?id=807187#c3 --- Comment #3 from Michael Schröder <mls@suse.com> 2013-03-04 14:29:45 UTC --- Well, rpm can't cope well with passing %{1} to another macro. Try: rpm --eval '%trace%{service_del_postun xx}' A fix is to change the definition to: %service_del_postun() %{expand:%%{restart_on_update %{1}}} -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=807187 https://bugzilla.novell.com/show_bug.cgi?id=807187#c4 --- Comment #4 from Jan Engelhardt <jengelh@inai.de> 2013-03-06 20:05:05 CET --- If that is the fix, can you include it in SLE's rpm? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=807187 https://bugzilla.novell.com/show_bug.cgi?id=807187#c5 --- Comment #5 from Michael Schröder <mls@suse.com> 2013-03-07 09:30:25 UTC --- I can do that, but nobody seems to use the macro anyway... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=807187 https://bugzilla.novell.com/show_bug.cgi?id=807187#c6 --- Comment #6 from Jan Engelhardt <jengelh@inai.de> 2013-03-07 12:43:48 CET --- Well I do, or at least I intented to. %post %if 0%{?service_add_post:1} %service_add_post blah.service %else %if 0%{?systemd_post:1} %systemd_post blah.service %else %if 0%{?stop_on_removal:1} %stop_on_removal blah %endif %endif %endif -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com