On 5/5/20 2:44 AM, Miro Hrončok wrote:
On 05. 05. 20 1:14, Orion Poplawski wrote:
https://koschei.fedoraproject.org/package/cobbler?collection=f33
Fails building the SRPM:
DEBUG util.py:600: error: /chroot_tmpdir/srpm_unpacked/SPECS/cobbler.spec: line 119: %S: argument expected
Line is:
DATE=$(date "+%Y%m%d-%H%M%S")
Do we really have a new rpm macro called %S? From where? (There is a new version of rpm, and new other rpm-macros packages).
We do. From rpm:
%{S:...} expand ... to <source> file name %{P:...} expand ... to <patch> file name %{F:...} expand ... to <file> file name
Yup. Note that these built-in primitives are *ancient* (from 3.x days), it's the check for a mandatory argument that is new in 4.16. Up to now it has just silently fallen through.
Hmm, OTOH this is a bit questionable: macro primitives can only take arguments in the %{foo:bar} form, so perhaps the non-%{} form actually should fall through silently.
- Panu -