[Rpm-maint] [rpm-software-management/rpm] Usage of %end in macros breaks them (#401)

2018-02-24 Thread Igor Gnatenko
Imagine something like this: ``` %ldconfig /sbin/ldconfig %ldconfig_post(n:) %{?ldconfig:%post -p %ldconfig %{?*} %{-n:-n %{-n*}}\ %end\ } %ldconfig_postun(n:) %{?ldconfig:%postun -p %ldconfig %{?*} %{-n:-n %{-n*}}\ %end\ } ``` ``` %ldconfig_post foo %ldconfig_postun foo ``` will expand into ``

Re: [Rpm-maint] [rpm-software-management/rpm] Usage of %end in macros breaks them (#401)

2018-02-24 Thread Igor Gnatenko
Or, khm this is probably caused by `}` being on new line... -- 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/401#issuecomment-368286041_

Re: [Rpm-maint] [rpm-software-management/rpm] Usage of %end in macros breaks them (#401)

2018-02-26 Thread Panu Matilainen
%end is a spec directive, the macro engine knows absolutely nothing about it. -- 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/401#issuecomment-368461399___

Re: [Rpm-maint] [rpm-software-management/rpm] Usage of %end in macros breaks them (#401)

2018-02-26 Thread Igor Gnatenko
macros.foo ``` %xxx defined %aaa %{?xxx:\ aaa\ } %bbb %{?xxx:\ bbb\ } ``` ``` ⋊> ~ rpm --macros macros.foo --eval "%aaa" --eval "%bbb" 13:08:23 aaa