ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:67670] [ruby-trunk - Misc #10757] [Open] Vagrant environment for MRI contributors
       [not found] <redmine.issue-10757.20150118034729@ruby-lang.org>
@ 2015-01-18  3:47 ` anthony.crumley
  2015-01-18  7:53 ` [ruby-core:67673] [ruby-trunk - Misc #10757] " nobu
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: anthony.crumley @ 2015-01-18  3:47 UTC (permalink / raw
  To: ruby-core

Issue #10757 has been reported by Anthony Crumley.

----------------------------------------
Misc #10757: Vagrant environment for MRI contributors
https://bugs.ruby-lang.org/issues/10757

* Author: Anthony Crumley
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
This patch includes a Vagrant file that will quickly and easily setup a development environment for MRI contributors.  Following are some benefits of having a vagrant setup for contributors.

* Increase the number of contributors by making it easier to get started.
* Easy setup for someone that wants to contribute to the Ruby test suite but does not really want to become a C developer.  (This is my personal motivation)
* A canonical environment to create and work through issues on.

---Files--------------------------------
vagrant.patch (4.12 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:67673] [ruby-trunk - Misc #10757] Vagrant environment for MRI contributors
       [not found] <redmine.issue-10757.20150118034729@ruby-lang.org>
  2015-01-18  3:47 ` [ruby-core:67670] [ruby-trunk - Misc #10757] [Open] Vagrant environment for MRI contributors anthony.crumley
@ 2015-01-18  7:53 ` nobu
  2015-01-19  3:22 ` [ruby-core:67680] " anthony.crumley
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: nobu @ 2015-01-18  7:53 UTC (permalink / raw
  To: ruby-core

Issue #10757 has been updated by Nobuyoshi Nakada.


Why `build-dep ruby1.9.1`?
Debian seems having `ruby2.1`.

----------------------------------------
Misc #10757: Vagrant environment for MRI contributors
https://bugs.ruby-lang.org/issues/10757#change-51089

* Author: Anthony Crumley
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
This patch includes a Vagrant file that will quickly and easily setup a development environment for MRI contributors.  Following are some benefits of having a vagrant setup for contributors.

* Increase the number of contributors by making it easier to get started.
* Easy setup for someone that wants to contribute to the Ruby test suite but does not really want to become a C developer.  (This is my personal motivation)
* A canonical environment to create and work through issues on.

---Files--------------------------------
vagrant.patch (4.12 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:67680] [ruby-trunk - Misc #10757] Vagrant environment for MRI contributors
       [not found] <redmine.issue-10757.20150118034729@ruby-lang.org>
  2015-01-18  3:47 ` [ruby-core:67670] [ruby-trunk - Misc #10757] [Open] Vagrant environment for MRI contributors anthony.crumley
  2015-01-18  7:53 ` [ruby-core:67673] [ruby-trunk - Misc #10757] " nobu
@ 2015-01-19  3:22 ` anthony.crumley
  2015-01-20  4:01 ` [ruby-core:67690] " anthony.crumley
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: anthony.crumley @ 2015-01-19  3:22 UTC (permalink / raw
  To: ruby-core

Issue #10757 has been updated by Anthony Crumley.


That is a good question.  I don't know why but it is what is recommended in the developer how to and the Travis CI setup uses it as well.

https://bugs.ruby-lang.org/projects/ruby/wiki/DeveloperHowto
https://travis-ci.org/ruby/ruby/jobs/46524624#L89

When I try to use ruby2.1 I get the following result.

vagrant@precise64:~$ sudo aptitude build-dep -y ruby2.1
Unable to find the source package for "ruby2.1".
Unable to find the source package for "ruby2.1".
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         


----------------------------------------
Misc #10757: Vagrant environment for MRI contributors
https://bugs.ruby-lang.org/issues/10757#change-51099

* Author: Anthony Crumley
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
This patch includes a Vagrant file that will quickly and easily setup a development environment for MRI contributors.  Following are some benefits of having a vagrant setup for contributors.

* Increase the number of contributors by making it easier to get started.
* Easy setup for someone that wants to contribute to the Ruby test suite but does not really want to become a C developer.  (This is my personal motivation)
* A canonical environment to create and work through issues on.

---Files--------------------------------
vagrant.patch (4.12 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:67690] [ruby-trunk - Misc #10757] Vagrant environment for MRI contributors
       [not found] <redmine.issue-10757.20150118034729@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2015-01-19  3:22 ` [ruby-core:67680] " anthony.crumley
@ 2015-01-20  4:01 ` anthony.crumley
  2015-01-20  5:06 ` [ruby-core:67693] " nobu
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: anthony.crumley @ 2015-01-20  4:01 UTC (permalink / raw
  To: ruby-core

Issue #10757 has been updated by Anthony Crumley.

File vagrant_v2.patch added

Added a setting to VirtualBox to cause the time to be better synced with the host machine.  This resolves an issue in make where the common.mk file ends up with a future timestamp and make does not like that.

----------------------------------------
Misc #10757: Vagrant environment for MRI contributors
https://bugs.ruby-lang.org/issues/10757#change-51128

* Author: Anthony Crumley
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
This patch includes a Vagrant file that will quickly and easily setup a development environment for MRI contributors.  Following are some benefits of having a vagrant setup for contributors.

* Increase the number of contributors by making it easier to get started.
* Easy setup for someone that wants to contribute to the Ruby test suite but does not really want to become a C developer.  (This is my personal motivation)
* A canonical environment to create and work through issues on.

---Files--------------------------------
vagrant.patch (4.12 KB)
vagrant_v2.patch (4.3 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:67693] [ruby-trunk - Misc #10757] Vagrant environment for MRI contributors
       [not found] <redmine.issue-10757.20150118034729@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2015-01-20  4:01 ` [ruby-core:67690] " anthony.crumley
@ 2015-01-20  5:06 ` nobu
  2015-01-22  6:40 ` [ruby-core:67746] " anthony.crumley
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: nobu @ 2015-01-20  5:06 UTC (permalink / raw
  To: ruby-core

Issue #10757 has been updated by Nobuyoshi Nakada.


That image is Ubuntu 12.04, just after 2.0 release.
I'm afraid that is too old in these days.

And I'm not sure if these files are nice to be bundled or distributed separatedly.

Anyway, my patch against your v2 patch:

* add `vagrant.md` to `.document` file
* clean up trailing spaces
* use `case...when` instead of repeated `host =~`
* not overwrite existing `configure` file
* use `https:` instead of `http:`
* insert a blank line necessary for code block markdown

~~~diff
diff --git i/.document w/.document
index e4fc2b4..c3b3328 100644
--- i/.document
+++ w/.document
@@ -25,4 +25,6 @@ README.EXT.ja
 README.md
 README.ja.md
 
+vagrant.md
+
 doc
diff --git i/Vagrantfile w/Vagrantfile
index 47c72e1..ab9db58 100644
--- i/Vagrantfile
+++ w/Vagrantfile
@@ -9,7 +9,7 @@ Vagrant.configure(2) do |config|
   # using a specific IP.
   config.vm.network "private_network", ip: "192.168.33.10"
 
-  # Maps the /vagrant VM folder to the Ruby source folder.  NFS is used for 
+  # Maps the /vagrant VM folder to the Ruby source folder.  NFS is used for
   # better performance and may require configuration on the host machine.
   config.vm.synced_folder '.', '/vagrant', nfs: true
 
@@ -19,11 +19,12 @@ Vagrant.configure(2) do |config|
     host = RbConfig::CONFIG['host_os']
 
     # Give VM 1/4 system memory & access to all cpu cores on the host
-    if host =~ /darwin/
+    case host
+    when /darwin/
       cpus = `sysctl -n hw.ncpu`.to_i
       # sysctl returns Bytes and we need to convert to MB
       mem = `sysctl -n hw.memsize`.to_i / 1024 / 1024 / 4
-    elsif host =~ /linux/
+    when /linux/
       cpus = `nproc`.to_i
       # meminfo shows KB and we need to convert to MB
       mem = `grep 'MemTotal' /proc/meminfo | sed -e 's/MemTotal://' -e 's/ kB//'`.to_i / 1024 / 4
@@ -57,7 +58,7 @@ Vagrant.configure(2) do |config|
     apt-get install -y gdb
     aptitude build-dep -y ruby1.9.1
     su - vagrant -c "mkdir ~/build"
-    su - vagrant -c "cd /vagrant && autoconf"
+    [ -f /vagrant/configure ] || { cd /vagrant && su - vagrant -c autoconf; }
     su - vagrant -c "cd ~/build && /vagrant/configure"
   SHELL
 
@@ -82,7 +83,7 @@ Vagrant.configure(2) do |config|
 
     vagrant@precise64:~$ cd ~/build
     vagrant@precise64:~$ make update-rubyspec
-     
+
   To run RubySpec tests:
 
     vagrant@precise64:~$ cd ~/build
diff --git i/vagrant.md w/vagrant.md
index 24b67b7..f50a986 100644
--- i/vagrant.md
+++ w/vagrant.md
@@ -6,7 +6,7 @@ The following instructions will help you quickly get an MRI Ruby development env
 
 1. Install Git: http://git-scm.com/downloads (or [GitHub for Windows](http://windows.github.com/) if you want a GUI)
 2. Install VirtualBox: https://www.virtualbox.org/wiki/Downloads
-3. Install Vagrant: http://www.vagrantup.com/
+3. Install Vagrant: https://www.vagrantup.com/
 4. Open a terminal
 5. Clone the project: `git clone https://github.com/ruby/ruby.git`
 6. Enter the project directory: `cd ruby`
@@ -14,6 +14,7 @@ The following instructions will help you quickly get an MRI Ruby development env
 ### Setting Up Vagrant
 
 Build the Vagrant development environment by entering the following command:
+
 ```
 vagrant up
 ```
~~~

----------------------------------------
Misc #10757: Vagrant environment for MRI contributors
https://bugs.ruby-lang.org/issues/10757#change-51130

* Author: Anthony Crumley
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
This patch includes a Vagrant file that will quickly and easily setup a development environment for MRI contributors.  Following are some benefits of having a vagrant setup for contributors.

* Increase the number of contributors by making it easier to get started.
* Easy setup for someone that wants to contribute to the Ruby test suite but does not really want to become a C developer.  (This is my personal motivation)
* A canonical environment to create and work through issues on.

---Files--------------------------------
vagrant.patch (4.12 KB)
vagrant_v2.patch (4.3 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [ruby-core:67746] [ruby-trunk - Misc #10757] Vagrant environment for MRI contributors
       [not found] <redmine.issue-10757.20150118034729@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2015-01-20  5:06 ` [ruby-core:67693] " nobu
@ 2015-01-22  6:40 ` anthony.crumley
  2015-01-22 13:20 ` [ruby-core:67756] " anthony.crumley
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: anthony.crumley @ 2015-01-22  6:40 UTC (permalink / raw
  To: ruby-core

Issue #10757 has been updated by Anthony Crumley.

File vagrant_v3.patch added

Nice catch on the Ubuntu version being old.

* Included patch by Nobu
* Updated Ubuntu to trusty64
* Added the Tcl/Tk dependency
* Removed nasty openssl hacks because trusty64 already has updated openssl
* Included a link to the Developer How To in vagrant up post message


----------------------------------------
Misc #10757: Vagrant environment for MRI contributors
https://bugs.ruby-lang.org/issues/10757#change-51173

* Author: Anthony Crumley
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
This patch includes a Vagrant file that will quickly and easily setup a development environment for MRI contributors.  Following are some benefits of having a vagrant setup for contributors.

* Increase the number of contributors by making it easier to get started.
* Easy setup for someone that wants to contribute to the Ruby test suite but does not really want to become a C developer.  (This is my personal motivation)
* A canonical environment to create and work through issues on.

---Files--------------------------------
vagrant.patch (4.12 KB)
vagrant_v2.patch (4.3 KB)
vagrant_v3.patch (4.91 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:67756] [ruby-trunk - Misc #10757] Vagrant environment for MRI contributors
       [not found] <redmine.issue-10757.20150118034729@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2015-01-22  6:40 ` [ruby-core:67746] " anthony.crumley
@ 2015-01-22 13:20 ` anthony.crumley
  2015-01-28  4:44 ` [ruby-core:67850] " anthony.crumley
  2015-02-05 13:59 ` [ruby-core:68024] " anthony.crumley
  8 siblings, 0 replies; 9+ messages in thread
From: anthony.crumley @ 2015-01-22 13:20 UTC (permalink / raw
  To: ruby-core

Issue #10757 has been updated by Anthony Crumley.

File vagrant_v4.patch added

Clean up after the Tck/Tk installs.

----------------------------------------
Misc #10757: Vagrant environment for MRI contributors
https://bugs.ruby-lang.org/issues/10757#change-51184

* Author: Anthony Crumley
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
This patch includes a Vagrant file that will quickly and easily setup a development environment for MRI contributors.  Following are some benefits of having a vagrant setup for contributors.

* Increase the number of contributors by making it easier to get started.
* Easy setup for someone that wants to contribute to the Ruby test suite but does not really want to become a C developer.  (This is my personal motivation)
* A canonical environment to create and work through issues on.

---Files--------------------------------
vagrant.patch (4.12 KB)
vagrant_v2.patch (4.3 KB)
vagrant_v3.patch (4.91 KB)
vagrant_v4.patch (4.94 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:67850] [ruby-trunk - Misc #10757] Vagrant environment for MRI contributors
       [not found] <redmine.issue-10757.20150118034729@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2015-01-22 13:20 ` [ruby-core:67756] " anthony.crumley
@ 2015-01-28  4:44 ` anthony.crumley
  2015-02-05 13:59 ` [ruby-core:68024] " anthony.crumley
  8 siblings, 0 replies; 9+ messages in thread
From: anthony.crumley @ 2015-01-28  4:44 UTC (permalink / raw
  To: ruby-core

Issue #10757 has been updated by Anthony Crumley.


Are there any additional improvements you would like for me to make to this Vagrant configuration?

----------------------------------------
Misc #10757: Vagrant environment for MRI contributors
https://bugs.ruby-lang.org/issues/10757#change-51256

* Author: Anthony Crumley
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
This patch includes a Vagrant file that will quickly and easily setup a development environment for MRI contributors.  Following are some benefits of having a vagrant setup for contributors.

* Increase the number of contributors by making it easier to get started.
* Easy setup for someone that wants to contribute to the Ruby test suite but does not really want to become a C developer.  (This is my personal motivation)
* A canonical environment to create and work through issues on.

---Files--------------------------------
vagrant.patch (4.12 KB)
vagrant_v2.patch (4.3 KB)
vagrant_v3.patch (4.91 KB)
vagrant_v4.patch (4.94 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ruby-core:68024] [ruby-trunk - Misc #10757] Vagrant environment for MRI contributors
       [not found] <redmine.issue-10757.20150118034729@ruby-lang.org>
                   ` (7 preceding siblings ...)
  2015-01-28  4:44 ` [ruby-core:67850] " anthony.crumley
@ 2015-02-05 13:59 ` anthony.crumley
  8 siblings, 0 replies; 9+ messages in thread
From: anthony.crumley @ 2015-02-05 13:59 UTC (permalink / raw
  To: ruby-core

Issue #10757 has been updated by Anthony Crumley.


Nobu, 

Is there anything you would like for me to do to make this patch acceptable?

Thanks,

Anthony

----------------------------------------
Misc #10757: Vagrant environment for MRI contributors
https://bugs.ruby-lang.org/issues/10757#change-51411

* Author: Anthony Crumley
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
This patch includes a Vagrant file that will quickly and easily setup a development environment for MRI contributors.  Following are some benefits of having a vagrant setup for contributors.

* Increase the number of contributors by making it easier to get started.
* Easy setup for someone that wants to contribute to the Ruby test suite but does not really want to become a C developer.  (This is my personal motivation)
* A canonical environment to create and work through issues on.

---Files--------------------------------
vagrant.patch (4.12 KB)
vagrant_v2.patch (4.3 KB)
vagrant_v3.patch (4.91 KB)
vagrant_v4.patch (4.94 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-02-05 13:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-10757.20150118034729@ruby-lang.org>
2015-01-18  3:47 ` [ruby-core:67670] [ruby-trunk - Misc #10757] [Open] Vagrant environment for MRI contributors anthony.crumley
2015-01-18  7:53 ` [ruby-core:67673] [ruby-trunk - Misc #10757] " nobu
2015-01-19  3:22 ` [ruby-core:67680] " anthony.crumley
2015-01-20  4:01 ` [ruby-core:67690] " anthony.crumley
2015-01-20  5:06 ` [ruby-core:67693] " nobu
2015-01-22  6:40 ` [ruby-core:67746] " anthony.crumley
2015-01-22 13:20 ` [ruby-core:67756] " anthony.crumley
2015-01-28  4:44 ` [ruby-core:67850] " anthony.crumley
2015-02-05 13:59 ` [ruby-core:68024] " anthony.crumley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).