Conversation
- `%global` instead of `%define` for static expressions: `%global`s are evaluated once when set, `%define`s are evaluated each time used. Plus the scope of `%global`s is all sections, including the scriptlets.
- `-n %{name}-%{version}` always has been the default for `%setup`, hence omitted now.
- `rm -rf %{buildroot}` as first statement in the `%install` section is long obsolete, thus superfluous.
|
I believe the |
|
When you say the rm on the bildroot is obsolete, does this mean it is done implicitly? I know the |
Scratch that, works fine without it. |
Definitely not by OBS in general, but maybe by Jolla's Edit: Actually, it is this behaviour which creates the necessity to have the
Yes, both the And it is successfully build by our CI workflow, which utilises Coderus' Sailfish-SDK images, hence |
I am still glad (every time), that you double-checked and triggered me to re-evaluate and properly document my reasoning. |
%globalinstead of%definefor static expressions:%globals are evaluated once when set,%defines are evaluated each time used. Plus the scope of%globals is all sections, including the scriptlets.-n %{name}-%{version}always has been the default for%setup, hence omitted now.rm -rf %{buildroot}as first statement in the%installsection is long obsolete, thus superfluous.