Bug 990717 - %{_var} is not set to scl root
%{_var} is not set to scl root
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: scl-utils (Show other bugs)
19
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jan Zeleny
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-31 16:15 EDT by Omair Majid
Modified: 2013-10-09 07:26 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-10-09 07:26:13 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Omair Majid 2013-07-31 16:15:00 EDT
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 07:26:13 EDT
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.