This deadlocks for me:
```
rpm -vv --eval '%trace'
```
It hangs because rpmlog() tries to expand 
`%{?_color_output}^{!?_color_output:auto}` leading to another call to rpmlog().

We could temporarily clear print_expand_trace in the printExpansion() function 
but I think a better fix would be to revert commit 
7f220202f20c69d6f3fd957325cdbe692bbabedd. It's weird that printExpansion() uses 
rpmlog, but printMacro() does not. Also, the line is printed with multiple 
rpmlog calls, leading to `D:` being spread into the output.

The commit does not include a rationale, so it's hard to tell why this was 
changed in the first place.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1418
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to