Bug 20269

Summary: %{_var} -> %{_localstatedir} on SPEC
Product: [Retired] Red Hat Linux Reporter: Arenas Belon, Carlo Marcelo <carenas>
Component: apacheAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact: Dale Lovelace <dale>
Severity: medium Docs Contact:
Priority: low    
Version: 7.1CC: pekkas
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-04 10:01:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Arenas Belon, Carlo Marcelo 2000-11-03 06:12:33 UTC
on %{makeinstall} call %{var} should be changed to %{_localstatedir} as
used on %build for runtimedir, logfiledir and proxycachedir

also runtimedir (IMHO) should be :

  runtimedir=$RPM_BUILD_ROOT%{_localstatedir}/run
                                               ^^^

instead of

  runtimedir=$RPM_BUILD_ROOT%{_var}/httpd
                                    ^^^^^

on %file the cache and logfile should be (as used on %configure)

%attr(-,apache,apache) %dir %{localstatedir}/cache/httpd
%dir %{_localstatedir}/log/httpd

Comment 1 Pekka Savola 2000-12-28 20:31:38 UTC
Please note that RPM 3.0.5 has by default:

%_prefix                /usr
%_localstatedir         %{_prefix}/var



Comment 2 Arenas Belon, Carlo Marcelo 2001-01-04 09:56:08 UTC
not really,

this is actually and RPMism but macros are parsed (and overriden) as explained
on the macrofiles tag on /usr/lib/rpm/rpmrc (from 3.0.5-9.6x)

macrofiles:
/usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:/etc/rpm/macros...

%{_target} can be i386-redhat-linux or any other "supported" target and there
the _localstatedir gets overriden as :

%_localstatedir /var

actually the RFE was suggested as part of an incomplete standarization of the
SPEC that forgot this "convertion" ;)

Comment 3 Nalin Dahyabhai 2001-01-12 02:25:36 UTC
This will be fixed in apache-1.3.14-7 and later.  (Also removing a redundant
--libexecdir=.)  Thanks!