[Rpm-maint] [rpm-software-management/rpm] Remove %ifarch-%endif from %debug_package macro (#635)

pavlinamv notifications at github.com
Tue Feb 19 19:29:54 UTC 2019


In PR #625 Comment 6 Panu wrote:

*"%if-%else-%endif is a spec-only construct, there's no support for them in the actual macro engine. Macro files are purely declarative and doesn't support any sort of conditionals."*

In maco file macros.in there is macro 

```
%debug_package \
%ifnarch noarch\
%global __debug_package 1\
%_debuginfo_template\
%{?_debugsource_packages:%_debugsource_template}\
%endif\
%{nil}
```

that contains %ifnarch and thus it should be corrected. 
Currently after expanding of macro %debug_package (e.g. in some spec file) global definition
```
%global __debug_package 1\
```
is expanded in all cases.

-- 
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/635
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190219/2cb18642/attachment.html>


More information about the Rpm-maint mailing list