From 3563a48af96b37453774afc08787d3e449c3f0f9 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Wed, 23 Aug 2017 11:37:40 -0400 Subject: 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 Reviewed-on: https://review.gluster.org/18102 Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: Anoop C S --- glusterfs.spec.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'glusterfs.spec.in') 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} ) -- cgit