Use ruby-build for Mastodon, update cookbooks
This uses the ruby_build provider for Mastodon, installing Ruby 2.4.1 currently. It also updates some other cookbooks and the runlists.
This commit is contained in:
@@ -1,37 +1,45 @@
|
||||
# build-essential Cookbook
|
||||
[][cookbook] [][travis]
|
||||
|
||||
Installs packages required for compiling C software from source. Use this cookbook if you wish to compile C programs, or install RubyGems with native extensions.
|
||||
[][cookbook] [](https://travis-ci.org/chef-cookbooks/build-essential)
|
||||
|
||||
Installs packages required for compiling C software from source. Use this cookbook if you wish to compile C programs, or install RubyGems with native extensions. Contains a resource, 'build_essential', as as well as a default recipe that simply calls that same resource.
|
||||
|
||||
## Requirements
|
||||
|
||||
### Platforms
|
||||
|
||||
- Debian/Ubuntu
|
||||
- RHEL/CentOS/Scientific/Amazon/Oracle
|
||||
- openSUSE
|
||||
- openSUSE / SUSE Enterprise Linux
|
||||
- SmartOS
|
||||
- Fedora
|
||||
- Mac OS X
|
||||
- Mac OS X 10.9+
|
||||
- FreeBSD
|
||||
|
||||
### Chef
|
||||
- Chef 11+
|
||||
|
||||
- Chef 12.5+
|
||||
|
||||
### Cookbooks
|
||||
- Suggests pkgutil for Solaris based platforms
|
||||
|
||||
- seven_zip
|
||||
- mingw
|
||||
|
||||
**Note for Debian platform family:** On Debian platform-family systems, it is recommended that `apt-get update` be run, to ensure that the package cache is updated. It's not in the scope of this cookbook to do that, as it can [create a duplicate resource](https://tickets.chef.io/browse/CHEF-3694). We recommend using the [apt](https://supermarket.chef.io/cookbooks/apt) cookbook to do this.
|
||||
|
||||
**Note for OmniOS**: Currently, OmniOS's Ruby package is built with GCC 4.6.3, and the path is hardcoded, as the gcc binaries are not installed in the default $PATH. This means that in order to install RubyGems into the "system" Ruby, one must install `developer/gcc46`. [An issue](https://github.com/omniti-labs/omnios-build/issues/19) is open upstream w/ OmniOS to rebuild the Ruby package with GCC 4.7.2.
|
||||
|
||||
## Attributes
|
||||
|
||||
Attribute | Default | Description
|
||||
----------------------------------------- | :--------------------------: | ---------------------------------
|
||||
`node['build-essential']['compile_time']` | `false` | Execute resources at compile time
|
||||
`node['build-essential']['msys']['path']` | `#{ENV['SYSTEMDRIVE']\\msys` | Destination for msys (Windows only)
|
||||
Attribute | Default | Description
|
||||
------------------------------------------ | :---------------------------: | -----------------------------------------------------
|
||||
`node['build-essential']['compile_time']` | `false` | Execute resources at compile time
|
||||
`node['build-essential']['msys2']['path']` | `#{ENV['SYSTEMDRIVE']\\msys2` | Destination for msys2 build tool chain (Windows only)
|
||||
|
||||
## Usage
|
||||
|
||||
### Recipe Usage
|
||||
|
||||
The recipe simply calls the build_essential resource, but it ideal for adding to roles or node run lists.
|
||||
|
||||
Include the build-essential recipe in your run list:
|
||||
|
||||
```sh
|
||||
@@ -45,7 +53,9 @@ include_recipe 'build-essential::default'
|
||||
```
|
||||
|
||||
### Gems with C extensions
|
||||
|
||||
For RubyGems that include native C extensions you wish to use with Chef, you should do the following.
|
||||
|
||||
- Set the `compile_time` attribute to true in your wrapper cookbook or role:
|
||||
|
||||
```ruby
|
||||
@@ -82,10 +92,29 @@ For RubyGems that include native C extensions you wish to use with Chef, you sho
|
||||
chef_gem 'gem-with-native-extension'
|
||||
```
|
||||
|
||||
### Resource Usage
|
||||
|
||||
The cookbook includes a resource 'build_essential' that can be included in your cookbook to install the necessary build-essential packages
|
||||
|
||||
Simple package installation during the client run:
|
||||
|
||||
```ruby
|
||||
build_essential 'some name you choose'
|
||||
```
|
||||
|
||||
Package installation during the compile phase:
|
||||
|
||||
```ruby
|
||||
build_essential 'some name you choose' do
|
||||
compile_time false
|
||||
end
|
||||
```
|
||||
|
||||
## License & Authors
|
||||
|
||||
**Author:** Cookbook Engineering Team ([cookbooks@chef.io](mailto:cookbooks@chef.io))
|
||||
|
||||
**Copyright:** 2009-2015, Chef Software, Inc.
|
||||
**Copyright:** 2009-2016, Chef Software, Inc.
|
||||
|
||||
```
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
||||
Reference in New Issue
Block a user