Bug 1074136 - crash: unescaped % in spec file
crash: unescaped % in spec file
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: David Mair
E-mail List
:
Depends on:
Blocks:
  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: ---


Attachments

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.

https://build.opensuse.org/request/show/554974

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.