Bug 20269 - %{_var} -> %{_localstatedir} on SPEC
Summary: %{_var} -> %{_localstatedir} on SPEC
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: apache
Version: 7.1
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Dale Lovelace
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-11-03 06:12 UTC by Arenas Belon, Carlo Marcelo
Modified: 2007-03-27 03:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-01-04 10:01:33 UTC
Embargoed:


Attachments (Terms of Use)

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!


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