Bug 990717 - %{_var} is not set to scl root
Summary: %{_var} is not set to scl root
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: scl-utils
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Zeleny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-31 20:15 UTC by Omair Majid
Modified: 2013-10-09 11:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-09 11:26:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Omair Majid 2013-07-31 20:15:00 UTC
Description of problem:

The %{_var} macro generally expands to /var/
$ rpmbuild --showrc | grep _var
-14: _dbpath    %{_var}/lib/rpm
-14: _tmppath   %{_var}/tmp
-14: _var       /var

but macros.scl does not redefine it in terms of scl root:

$ grep _var /etc/rpm/macros.scl
(no output)

This casues scl-using rpms that use %{_var} to create/own/put files in /var instead of somehwere under /opt.

Comment 1 Jan Zeleny 2013-10-09 11:26:13 UTC
I'm pretty sure you are not supposed to use %_var. IIRC you should be using %_localstatedir and that one is defined correctly. Redefining %_var might actually cause some problems, as _dbpath and _tmppath depend on it.


Note You need to log in before you can comment on or make changes to this bug.