[Bug 520724] [NEW] requires_releq_kernel macro broken

Adam Golebiowski adamg at pld-linux.org
Thu Feb 11 23:49:39 CET 2010


Public bug reported:

It looks like our rpm doesn't like "%macro -n value" in preamble.
Consider this simple spec:

[adamg at builder test]$ cat test.spec
Summary: foo
Name: foo
Group: foo
Version: 1
Release: 1
License: GPL
BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%requires_releq_kernel -n drm
%prep
%files
%defattr(644,root,root,755)
[adamg at builder test]$ ../packages/builder -nn test.spec
builder: SMP make flags are set to -j8
error: line 8: Unknown tag:  -n drm
Error: package build failed. (no more info)
[adamg at builder test]$ rpm -q rpm-build-macros
rpm-build-macros-1.534-1.noarch
[adamg at builder test]$

** Affects: pld-linux
     Importance: Undecided
         Status: New

-- 
requires_releq_kernel macro broken
https://bugs.launchpad.net/bugs/520724
You received this bug notification because you are subscribed to PLD
Linux.

Status in PLD Linux Distribution: New

Bug description:
It looks like our rpm doesn't like "%macro -n value" in preamble.
Consider this simple spec:

[adamg at builder test]$ cat test.spec
Summary: foo
Name: foo
Group: foo
Version: 1
Release: 1
License: GPL
BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%requires_releq_kernel -n drm
%prep
%files
%defattr(644,root,root,755)
[adamg at builder test]$ ../packages/builder -nn test.spec
builder: SMP make flags are set to -j8
error: line 8: Unknown tag:  -n drm
Error: package build failed. (no more info)
[adamg at builder test]$ rpm -q rpm-build-macros
rpm-build-macros-1.534-1.noarch
[adamg at builder test]$




More information about the pld-bugs mailing list