[Rpm-maint] [rpm-software-management/rpm] rpm-4.16.0a regression in rpmbuild: "Tag takes single token only" (#1167)
Panu Matilainen
notifications at github.com
Wed Apr 8 09:49:46 UTC 2020
I'm don't know what such a change would be.
You're getting that error because %mkrel is undefined, for whatever reason - the error message clearly shows its not getting expanded at all.
This is trivial to demonstrate:
```
[pmatilai🎩︎lumikko SPECS]$ cat relmacro.spec
Name: relmacro
Version: 1.0
Release: %{mkrel 1}
Summary: %{name}
License: foo
%description
%files
[pmatilai🎩︎lumikko SPECS]$ rpmbuild -bb relmacro.spec
error: line 3: Tag takes single token only: Release: %{mkrel 1}
[pmatilai🎩︎lumikko SPECS]$ rpmbuild -bb --define "mkrel() 1 2" relmacro.spec
error: line 3: Tag takes single token only: Release: 1 2
[pmatilai🎩︎lumikko SPECS]$ rpmbuild -bb --define "mkrel() 1" relmacro.spec
Processing files: relmacro-1.0-1.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pmatilai/rpmbuild/BUILDROOT/relmacro-1.0-1.x86_64
Wrote: /home/pmatilai/rpmbuild/RPMS/x86_64/relmacro-1.0-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.BTxnVn
+ umask 022
+ cd /home/pmatilai/rpmbuild/BUILD
+ /usr/bin/rm -rf /home/pmatilai/rpmbuild/BUILDROOT/relmacro-1.0-1.x86_64
+ RPM_EC=0
++ jobs -p
+ exit 0
```
As to why it's not getting defined I dont know, there aren't any macro path etc changes in 4.16 that I can remember. I don't know where Mageia defines that macro, but --with-vendor=<name> to configure is one thing that could affect it.
I'm not ruling out a bug, I just can't think of anything even remotely related in 4.16.
--
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/1167#issuecomment-610862773
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200408/4b18ff76/attachment.html>
More information about the Rpm-maint
mailing list