Patch puppet.rb for locales issue
We are currently installing locales to a directory that is unexpected by puppet and throws loads of warnings in the logs. Here we patch the location that looks for the locales location to use the location that we install the locales to. This has been corrected in newer versions of puppet, and the sysutils/puppet5 port does not install to this same location. Approved-by: mat(co-mentor)
This commit is contained in:
parent
2cfa16799a
commit
6bffeb55e0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=451391
2 changed files with 12 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
PORTNAME= puppet
|
||||
PORTVERSION= 4.10.8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://downloads.puppetlabs.com/puppet/
|
||||
PKGNAMESUFFIX= 4
|
||||
|
|
11
sysutils/puppet4/files/patch-lib_puppet.rb
Normal file
11
sysutils/puppet4/files/patch-lib_puppet.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- lib/puppet.rb.orig 2017-10-04 19:54:04.901540166 -0700
|
||||
+++ lib/puppet.rb 2017-10-04 19:54:43.391840139 -0700
|
||||
@@ -29,7 +29,7 @@
|
||||
require 'locale'
|
||||
|
||||
# e.g. ~/code/puppet/locales. Also when running as a gem.
|
||||
- local_locale_path = File.absolute_path('../locales', File.dirname(__FILE__))
|
||||
+ local_locale_path = File.absolute_path('/var/puppet/share/locales', File.dirname(__FILE__))
|
||||
# e.g. /opt/puppetlabs/puppet/share/locale
|
||||
posix_system_locale_path = File.absolute_path('../../../share/locale', File.dirname(__FILE__))
|
||||
# e.g. C:\Program Files\Puppet Labs\Puppet\puppet\share\locale
|
Loading…
Reference in a new issue