Bug 1074136 - crash: unescaped % in spec file
crash: unescaped % in spec file
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: David Mair
E-mail List
Depends on:
  Show dependency treegraph
Reported: 2017-12-27 11:58 UTC by Dominique Leuenberger
Modified: 2018-01-02 09:33 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Leuenberger 2017-12-27 11:58:32 UTC
crash.spec uses a construct like

%define kver %(rpm -q --qf '%{VERSION}-%{RELEASE}' kernel-source)
%define kver_ %(rpm -q --qf '%{VERSION}_%{RELEASE}' kernel-source)

in the spec file. Wihtout escaping %, there is no guarantee that RPM passes %{VERSION{ literal to the external rpm comman (which we do, in order to get the version of the kernel-source package)

Especially with RPM 4.14, the variable %{VERSION} is used internally by RPM already and results in it being expanded now.

A fix for this had been prepared on Dec 7 by me and submitted to the devel prj, but ignored ever since.


RPM 4.14 will be landing early 2018
Comment 1 Petr Tesařík 2018-01-02 09:33:23 UTC
I have accepted the SR now and forwarded it to Factory.

Thank you, Dominique, and I'm sorry for lack of responsiveness at the end of 2017.