jstribny pushed to vagrant (f22). "Include $USER path in binstub"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue May 5 15:30:30 UTC 2015


>From f0a4d2b99d370299c6895814b60dc54f78ef9fc2 Mon Sep 17 00:00:00 2001
From: Josef Stribny <jstribny at redhat.com>
Date: Tue, 5 May 2015 16:31:55 +0200
Subject: Include $USER path in binstub


diff --git a/binstub b/binstub
index 966e5d8..6ed06e6 100755
--- a/binstub
+++ b/binstub
@@ -7,8 +7,12 @@
 VAGRANT_DIR="@vagrant_dir@"
 
 # Export gem paths so that we use the isolated gems.
+#
+# Include $USER path to ensure it does not get lost when we call
+# vagrant from already initialized environment.
+#
 # TODO: Should be repalced from .spec file.
-export GEM_PATH="/usr/share/gems:/usr/share/vagrant/gems"
+export GEM_PATH="/home/$USER/.vagrant.d/gems:/usr/share/gems:/usr/share/vagrant/gems"
 #export GEM_HOME="${GEM_PATH}"
 
 # SSL certs
diff --git a/vagrant.spec b/vagrant.spec
index 86608e4..cfbc224 100644
--- a/vagrant.spec
+++ b/vagrant.spec
@@ -4,7 +4,7 @@
 
 Name: vagrant
 Version: 1.7.2
-Release: 3%{?dist}
+Release: 4%{?dist}
 Summary: Build and distribute virtualized development environments
 Group: Development/Languages
 License: MIT
@@ -219,6 +219,9 @@ getent group vagrant >/dev/null || groupadd -r vagrant
 
 
 %changelog
+* Tue May 05 2015 Josef Stribny <jstribny at redhat.com> - 1.7.2-4
+- Include $USER path in binstub
+
 * Fri Feb 20 2015 Vít Ondruch <vondruch at redhat.com> - 1.7.2-3
 - Fix Puppet provisioning error available in 1.7.2 re-release.
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/vagrant.git/commit/?h=f22&id=f0a4d2b99d370299c6895814b60dc54f78ef9fc2


More information about the scm-commits mailing list