summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2017-08-23 11:37:40 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2017-08-29 09:48:34 +0000
commit3563a48af96b37453774afc08787d3e449c3f0f9 (patch)
treee29d621f41059a152b911ebebd3d8564ffadde34 /glusterfs.spec.in
parent553ac4cc6da5c6cbc1e6c6f87dc3cdfd935c0880 (diff)
packaging: /run and /var/run; prefer /run
Fedora packaging guidelines say to use /run. On newer Fedora and el7 /var/run is a symlink to ../run (i.e. /run). /run is a tmpfs file system that is mounted earlier than /var might be. See https://bugzilla.redhat.com/show_bug.cgi?id=1476794 Change-Id: I9631d5aa854d7bc4f4dc0c9cac1a3cb19ea516f2 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: https://review.gluster.org/18102 Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Anoop C S <anoopcs@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 3a91f4ca41d..5c3567ead49 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -106,9 +106,8 @@
# From https://fedoraproject.org/wiki/Packaging:Python#Macros
%if ( 0%{?rhel} && 0%{?rhel} <= 6 )
%{!?python2_sitelib: %global python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%global _rundir %{_localstatedir}/run
%{!?python2_sitearch: %global python2_sitearch %(python2 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
-%global _rundir /run
+%global _rundir %{_localstatedir}/run
%endif
%if ( 0%{?_with_systemd:1} )