Re: [Rpm-maint] [rpm-software-management/rpm] Parametric macro arguments are not expanded (#127)

2022-10-14 Thread Paul Donohue
For reference, I've found an ugly hack to work around some of these issues on RPM 4.11.3 (RHEL7). Example macros that work in current RPM but break in RPM 4.11.3: ``` %define nested() %{echo:%{?1}} %define outer() %{nested -- %{?1}} %{outer -- test} ``` (In 4.11.3, `%{?1}` in the `nested` macro e

[Rpm-maint] [rpm-software-management/rpm] Fix regression: -bp should check BuildRequires (PR #2271)

2022-11-08 Thread Paul Donohue
Some source packages assume that BuildRequires are installed before %prep is executed. For example, `openssh` BuildRequires `automake` and runs `autoreconf` in %prep. Prior to 11c56d5 `rpmbuild -bp` checked BuildRequires and printed a helpful error message if there were any missing dependencie

Re: [Rpm-maint] [rpm-software-management/rpm] Fix regression: -bp should check BuildRequires (PR #2271)

2022-11-08 Thread Paul Donohue
... Looking at this again more closely ... It looks like a the BuildRequires checks have been moved after %prep in a lot of other places. Should this be considered a bug in `openssh` instead? (Should `autoreconf` be moved to the new %conf section to fix this?) -- Reply to this email directly