Skip to content

Commit 075c357

Browse files
committed
redhat: spec: fix "unexpected argument to non-parametric macro" warnings
JIRA: INTERNAL Upstream Status: RHEL-only (ARK commit 587236d6984d26002a8ba3cd3b0dffcb8b75fe21) warning: /builddir/build/SPECS/kernel.spec: line 1555: unexpected argument to non-parametric macro %uname_suffix warning: /builddir/build/SPECS/kernel.spec: line 1597: unexpected argument to non-parametric macro %uname_variant ... Signed-off-by: Augusto Caringi <[email protected]>
1 parent ef2902a commit 075c357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redhat/kernel.spec.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
# Replace '-' with '_' where needed so that variants can use '-' in
6464
# their name.
65-
%define uname_suffix %{lua:
65+
%define uname_suffix() %{lua:
6666
local flavour = rpm.expand('%{?1:+%{1}}')
6767
flavour = flavour:gsub('-', '_')
6868
if flavour ~= '' then
@@ -75,7 +75,7 @@
7575
# string. However, kernel-64k-debug is the debug version of kernel-64k,
7676
# in this case we need to return "64k", and so on. This is used in
7777
# macros below where we need this for some uname based requires.
78-
%define uname_variant %{lua:
78+
%define uname_variant() %{lua:
7979
local flavour = rpm.expand('%{?1:%{1}}')
8080
_, _, main, sub = flavour:find("(%w+)-(.*)")
8181
if main then

0 commit comments

Comments
 (0)