Closed gmq closed 9 years ago
Running on Super-Nintendo.local (OS X 10.10.3) under /opt/boxen/homebrew/bin/zsh, version d62940b7df51469d14311e23c2f1a47e0d05b5f2 (compare to master).
Super-Nintendo.local
/opt/boxen/homebrew/bin/zsh
/opt/boxen/repo/bin/puppet apply --group admin --confdir /tmp/boxen/puppet/conf --vardir /tmp/boxen/puppet/var --libdir /opt/boxen/repo/lib --libdir /opt/boxen/repo/.bundle/ruby/2.0.0/gems/boxen-2.7.2/lib --modulepath /opt/boxen/repo/modules:/opt/boxen/repo/shared --hiera_config /opt/boxen/repo/config/hiera.yaml --logdest /opt/boxen/repo/log/boxen.log --logdest console --no-report --detailed-exitcodes --show_diff /opt/boxen/repo/manifests
2015-05-29 10:53:46 -0300 Puppet (err): Unable to set ownership of log file 2015-05-29 10:53:55 -0300 Puppet (notice): Compiled catalog for super-nintendo.local in environment production in 5.26 seconds 2015-05-29 10:54:00 -0300 /Stage[main]/Redis::Config/File[/Library/LaunchDaemons/dev.redis.plist]/ensure (notice): defined content as '{md5}5ac90278786ec2fbd025a9634de522ae' 2015-05-29 10:54:01 -0300 /Stage[main]/Homebrew/File[/opt/boxen/homebrew/share/man/man6]/ensure (notice): created 2015-05-29 10:54:01 -0300 /Stage[main]/Homebrew/File[/opt/boxen/homebrew/share/man/man4]/ensure (notice): created 2015-05-29 10:54:01 -0300 /Stage[main]/Redis::Config/File[/opt/boxen/config/redis]/ensure (notice): created 2015-05-29 10:54:01 -0300 /Stage[main]/Postgresql::Config/File[/opt/boxen/data/postgresql-9.4]/ensure (notice): created 2015-05-29 10:54:01 -0300 /Stage[main]/Postgresql::Config/File[/opt/boxen/log/postgresql-9.4]/ensure (notice): created 2015-05-29 10:54:01 -0300 /Stage[main]/Redis::Config/File[/opt/boxen/log/redis]/ensure (notice): created 2015-05-29 10:54:01 -0300 /Stage[main]/Homebrew/File[/opt/boxen/homebrew/share/man/man2]/ensure (notice): created 2015-05-29 10:54:01 -0300 /Stage[main]/Redis::Config/File[/opt/boxen/config/redis/redis.conf]/ensure (notice): created 2015-05-29 10:54:01 -0300 /Stage[main]/Redis::Config/Boxen::Env_script[redis]/File[/opt/boxen/env.d/70_redis.sh]/ensure (notice): created 2015-05-29 10:54:01 -0300 /Stage[main]/Homebrew/File[/opt/boxen/homebrew/share/locale]/ensure (notice): created 2015-05-29 10:54:01 -0300 /Stage[main]/Postgresql::Config/File[/Library/LaunchDaemons/dev.postgresql.plist]/content (notice): --- /Library/LaunchDaemons/dev.postgresql.plist 2015-04-26 19:41:58.000000000 -0300 +++ /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/puppet-file20150529-87464-16fhj37 2015-05-29 10:54:01.000000000 -0300 @@ -23,9 +23,9 @@ <string>-p</string> <string>15432</string> <string>-D</string> - <string>/opt/boxen/data/postgresql-9.3</string> + <string>/opt/boxen/data/postgresql-9.4</string> <string>-r</string> - <string>/opt/boxen/log/postgresql-9.3/server.log</string> + <string>/opt/boxen/log/postgresql-9.4/server.log</string> </array> <key>RunAtLoad</key> @@ -38,12 +38,12 @@ <string>gmq</string> <key>WorkingDirectory</key> - <string>/opt/boxen/data/postgresql-9.3</string> + <string>/opt/boxen/data/postgresql-9.4</string> <key>StandardErrorPath</key> - <string>/opt/boxen/log/postgresql-9.3/console.log</string> + <string>/opt/boxen/log/postgresql-9.4/console.log</string> <key>StandardOutPath</key> - <string>/opt/boxen/log/postgresql-9.3/console.log</string> + <string>/opt/boxen/log/postgresql-9.4/console.log</string> </dict> </plist> 2015-05-29 10:54:02 -0300 /Stage[main]/Postgresql::Config/File[/Library/LaunchDaemons/dev.postgresql.plist]/content (notice): content changed '{md5}5fb0d25ec80eff572bd4afad2359c5b1' to '{md5}2c486ad6aa98588a9ceefec5e6bbcbbc' 2015-05-29 10:54:03 -0300 /Stage[main]/Nodejs::Global/File[/opt/boxen/nodenv/version]/content (notice): --- /opt/boxen/nodenv/version 2015-05-04 13:24:54.000000000 -0300 +++ /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/puppet-file20150529-87464-kw9gio 2015-05-29 10:54:03.000000000 -0300 @@ -1 +1 @@ -0.10.36 +0.10 2015-05-29 10:54:03 -0300 /Stage[main]/Nodejs::Global/File[/opt/boxen/nodenv/version]/content (notice): content changed '{md5}25005d84a69a538b8365795d68d2def2' to '{md5}4451fb05545c67c7e22238cfde06ae4d' 2015-05-29 10:54:03 -0300 /Stage[main]/Android/File[/opt/boxen/env.d/android.sh]/ensure (notice): defined content as '{md5}e7455917fc4fd47ec0d7eb78b7eff7f1' 2015-05-29 10:54:05 -0300 /Stage[main]/Redis::Config/File[/opt/boxen/data/redis]/ensure (notice): created 2015-05-29 10:54:05 -0300 /Stage[main]/Java/File[/opt/boxen/bin/java]/ensure (notice): defined content as '{md5}85f152016e644eef24290b0350b5d5f5' 2015-05-29 10:54:09 -0300 /Stage[main]/Nodejs::Build/Nodejs::Plugin[node-build]/Repository[/opt/boxen/nodenv/plugins/node-build]/ensure (notice): ensure changed 'update' to 'df67cec08280250a64fb29e7b4380af6a4d95038' 2015-05-29 10:55:19 -0300 /Stage[main]/Stacks::Node/Nodejs::Module[bower for 0.10]/Npm_module[bower for 0.10]/ensure (notice): ensure changed '1.4.1' to '~1.3' 2015-05-29 10:55:58 -0300 /Stage[main]/Stacks::Node/Nodejs::Module[grunt-cli for 0.10]/Npm_module[grunt-cli for 0.10]/ensure (notice): ensure changed '0.1.13' to '~0.1' 2015-05-29 10:56:46 -0300 /Stage[main]/Stacks::Node/Nodejs::Module[gulp for 0.10]/Npm_module[gulp for 0.10]/ensure (notice): ensure changed '3.8.11' to '~3.8' 2015-05-29 10:56:46 -0300 /Stage[main]/Nodejs::Rehash/Exec[nodenv rehash after npm module install] (notice): Triggered 'refresh' from 3 events 2015-05-29 10:56:46 -0300 /Stage[main]/Gcc/Homebrew::Formula[gcc48]/File[/opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/gcc48.rb]/content (notice): --- /opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/gcc48.rb 2015-04-26 19:46:03.000000000 -0300 +++ /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/puppet-file20150529-87464-1yxmlay 2015-05-29 10:56:46.000000000 -0300 @@ -104,6 +104,9 @@ "--enable-stage1-checking", "--enable-checking=release", "--enable-lto", + # Use 'bootstrap-debug' build configuration to force stripping of object + # files prior to comparison during bootstrap (broken by Xcode 6.3). + "--with-build-config=bootstrap-debug", # A no-op unless --HEAD is built because in head warnings will # raise errors. But still a good idea to include. "--disable-werror", 2015-05-29 10:56:46 -0300 /Stage[main]/Gcc/Homebrew::Formula[gcc48]/File[/opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/gcc48.rb]/content (notice): content changed '{md5}0f0f498e406285c226f3b2956244b7a0' to '{md5}e6cc17a614fb4e405fff665d8168a68d' 2015-05-29 10:56:46 -0300 /Stage[main]/Hub/Homebrew::Formula[hub]/File[/opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/hub.rb]/content (notice): --- /opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/hub.rb 2015-04-26 19:46:03.000000000 -0300 +++ /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/puppet-file20150529-87464-swa5of 2015-05-29 10:56:46.000000000 -0300 @@ -2,19 +2,33 @@ class Hub < Formula homepage "http://hub.github.com/" - url "https://github.com/github/hub/releases/download/v2.2.0/hub-mac-amd64-2.2.0.tar.gz" - sha1 "72f7bcb8893287dcbd63ed903ddddd55d239e96a" + url "https://github.com/github/hub/archive/v2.2.1.tar.gz" + sha1 "c64e473a36aabf71ecc39395b88c6993d4e12873" + head "https://github.com/github/hub.git" + + bottle do + cellar :any + sha256 "ce82b60ae28c9d788e816276b12086b91e68c1c15b90b638fa380326e3846b66" => :yosemite + sha256 "b995e7d96af5d5ac27236fd3317b24eccb89cbb50b3c02a77c49d023d8d27334" => :mavericks + sha256 "00bfe4481c997341e41a564fa5f32abc87ca1ce735c7afede826c6d491863e81" => :mountain_lion + end + + option "without-completions", "Disable bash/zsh completions" + + depends_on "go" => :build def install + system "script/build" bin.install "hub" man1.install Dir["man/*"] + bash_completion.install "etc/hub.bash_completion.sh" zsh_completion.install "etc/hub.zsh_completion" => "_hub" end test do HOMEBREW_REPOSITORY.cd do - assert shell_output("#{bin}/hub version").split("\n").include?("hub version #{version}") + assert_equal "bin/brew", shell_output("#{bin}/hub ls-files -- bin").strip end end end 2015-05-29 10:56:46 -0300 /Stage[main]/Hub/Homebrew::Formula[hub]/File[/opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/hub.rb]/content (notice): content changed '{md5}305808a88cf5c4854491a6507938c128' to '{md5}6fc24ddc518261d7234c1020297229e0' 2015-05-29 10:56:46 -0300 /Stage[main]/Postgresql::Package/Homebrew::Formula[postgresql]/File[/opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/postgresql.rb]/content (notice): --- /opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/postgresql.rb 2015-04-26 19:46:24.000000000 -0300 +++ /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/puppet-file20150529-87464-r5dt12 2015-05-29 10:56:46.000000000 -0300 @@ -1,30 +1,40 @@ -require 'formula' - class Postgresql < Formula - homepage 'http://www.postgresql.org/' - url 'http://ftp.postgresql.org/pub/source/v9.3.2/postgresql-9.3.2.tar.bz2' - sha256 '700da51a71857e092f6af1c85fcd86b46d7d5cd2f2ba343cafb1f206c20232d7' - version '9.3.2-boxen' - - option '32-bit' - option 'no-perl', 'Build without Perl support' - option 'no-tcl', 'Build without Tcl support' - option 'enable-dtrace', 'Build with DTrace support' + homepage "http://www.postgresql.org/" - depends_on 'readline' - depends_on 'ossp-uuid' => :recommended + stable do + url "http://ftp.postgresql.org/pub/source/v9.4.1/postgresql-9.4.1.tar.bz2" + sha256 "29ddb77c820095b8f52e5455e9c6c6c20cf979b0834ed1986a8857b84888c3a6" + end - conflicts_with 'postgres-xc', - :because => 'postgresql and postgres-xc install the same binaries.' + version "9.4.1-boxen2" - fails_with :clang do - build 211 - cause 'Miscompilation resulting in segfault on queries' + bottle do + revision 1 + sha1 "4b5a1f7ebe10ec5aba088459a4faa2ba7c13a691" => :yosemite + sha1 "e7844fc53d1ffef1cb809332d88b5bb777927176" => :mavericks + sha1 "a5e70e04dba89fee99bb5fb7dae74e4a849813c4" => :mountain_lion end - # Fix uuid-ossp build issues: http://archives.postgresql.org/pgsql-general/2012-07/msg00654.php - def patches - DATA + option "32-bit" + option "without-perl", "Build without Perl support" + option "without-tcl", "Build without Tcl support" + option "with-dtrace", "Build with DTrace support" + + deprecated_option "no-perl" => "without-perl" + deprecated_option "no-tcl" => "without-tcl" + deprecated_option "enable-dtrace" => "with-dtrace" + + depends_on "openssl" + depends_on "readline" + depends_on "libxml2" if MacOS.version <= :leopard # Leopard libxml is too old + depends_on :python => :optional + + conflicts_with "postgres-xc", + :because => "postgresql and postgres-xc install the same binaries." + + fails_with :clang do + build 211 + cause "Miscompilation resulting in segfault on queries" end def install @@ -38,7 +48,6 @@ --enable-thread-safety --with-bonjour --with-gssapi - --with-krb5 --with-ldap --with-openssl --with-pam @@ -46,36 +55,77 @@ --with-libxslt ] - args << "--with-ossp-uuid" if build.with? 'ossp-uuid' - args << "--with-perl" unless build.include? 'no-perl' - args << "--with-tcl" unless build.include? 'no-tcl' - args << "--enable-dtrace" if build.include? 'enable-dtrace' - - if build.with? 'ossp-uuid' - ENV.append 'CFLAGS', `uuid-config --cflags`.strip - ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip - ENV.append 'LIBS', `uuid-config --libs`.strip + args << "--with-python" if build.with? "python" + args << "--with-perl" if build.with? "perl" + + # The CLT is required to build tcl support on 10.7 and 10.8 because + # tclConfig.sh is not part of the SDK + if build.with?("tcl") && (MacOS.version >= :mavericks || MacOS::CLT.installed?) + args << "--with-tcl" + + if File.exist?("#{MacOS.sdk_path}/usr/lib/tclConfig.sh") + args << "--with-tclconfig=#{MacOS.sdk_path}/usr/lib" + end end + args << "--enable-dtrace" if build.with? "dtrace" + args << "--with-uuid=e2fs" + if build.build_32_bit? - ENV.append 'CFLAGS', "-arch #{MacOS.preferred_arch}" - ENV.append 'LDFLAGS', "-arch #{MacOS.preferred_arch}" + ENV.append %w{CFLAGS LDFLAGS}, "-arch #{Hardware::CPU.arch_32_bit}" end system "./configure", *args - system "make install-world" + system "make", "install-world" end -end -__END__ ---- a/contrib/uuid-ossp/uuid-ossp.c 2012-07-30 18:34:53.000000000 -0700 -+++ b/contrib/uuid-ossp/uuid-ossp.c 2012-07-30 18:35:03.000000000 -0700 -@@ -9,6 +9,8 @@ - *------------------------------------------------------------------------- - */ - -+#define _XOPEN_SOURCE -+ - #include "postgres.h" - #include "fmgr.h" - #include "utils/builtins.h" + def post_install + unless File.exist? "#{var}/postgres" + system "#{bin}/initdb", "#{var}/postgres" + end + end + + def caveats; <<-EOS.undent + If builds of PostgreSQL 9 are failing and you have version 8.x installed, + you may need to remove the previous version first. See: + https://github.com/Homebrew/homebrew/issues/2510 + + To migrate existing data from a previous major version (pre-9.4) of PostgreSQL, see: + http://www.postgresql.org/docs/9.4/static/upgrading.html + EOS + end + + plist_options :manual => "postgres -D #{HOMEBREW_PREFIX}/var/postgres" + + def plist; <<-EOS.undent + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + <plist version="1.0"> + <dict> + <key>KeepAlive</key> + <true/> + <key>Label</key> + <string>#{plist_name}</string> + <key>ProgramArguments</key> + <array> + <string>#{opt_bin}/postgres</string> + <string>-D</string> + <string>#{var}/postgres</string> + <string>-r</string> + <string>#{var}/postgres/server.log</string> + </array> + <key>RunAtLoad</key> + <true/> + <key>WorkingDirectory</key> + <string>#{HOMEBREW_PREFIX}</string> + <key>StandardErrorPath</key> + <string>#{var}/postgres/server.log</string> + </dict> + </plist> + EOS + end + + test do + system "#{bin}/initdb", testpath/"test" + end +end 2015-05-29 10:56:46 -0300 /Stage[main]/Postgresql::Package/Homebrew::Formula[postgresql]/File[/opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/postgresql.rb]/content (notice): content changed '{md5}d899cb139a29ed529031169fd00df49c' to '{md5}be8545d2aa917f466cdd560ff2219258' 2015-05-29 10:56:46 -0300 /Stage[main]/Mysql::Package/Homebrew::Formula[mysql]/File[/opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/mysql.rb]/content (notice): --- /opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/mysql.rb 2015-04-26 19:46:28.000000000 -0300 +++ /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/puppet-file20150529-87464-1avlh3q 2015-05-29 10:56:46.000000000 -0300 @@ -1,116 +1,183 @@ -require 'formula' - class Mysql < Formula - homepage 'http://dev.mysql.com/doc/refman/5.6/en/' - url 'http://cdn.mysql.com/archives/mysql-5.6/mysql-5.6.20.tar.gz' - sha1 '10f9ed2bbf3fbf227b799f1c7af3a0c7f7cf4d95' - version '5.6.20-boxen1' - - bottle do - sha1 "c6b5653348bcfa889ed6bc347841cecbc96389af" => :mavericks - sha1 "f7562a4366c1732b90388a41b1356c9f0fa1aa19" => :mountain_lion - sha1 "e2107ccb1461920bb5cfb7192b37dc91ed50ca94" => :lion + homepage "https://dev.mysql.com/doc/refman/5.6/en/" + url "https://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.23.tar.gz" + sha1 "2d610ba01ab97df042d5946ba0da411da5547c5d" + + # Fixes compilation with OpenSSL 1.0.2 + # https://bugs.mysql.com/bug.php?id=75623 + patch do + url "https://github.com/mysql/mysql-server/pull/3.diff" + sha1 "6b17a31ee32e373dca0f257f7c7884ac6dcf8e1f" end - depends_on 'cmake' => :build - depends_on 'pidof' unless MacOS.version >= :mountain_lion - option :universal - option 'with-tests', 'Build with unit tests' - option 'with-embedded', 'Build the embedded server' - option 'with-libedit', 'Compile with editline wrapper instead of readline' - option 'with-archive-storage-engine', 'Compile with the ARCHIVE storage engine enabled' - option 'with-blackhole-storage-engine', 'Compile with the BLACKHOLE storage engine enabled' - option 'enable-local-infile', 'Build with local infile loading support' - option 'enable-memcached', 'Enable innodb-memcached support' - option 'enable-debug', 'Build with debug support' - - conflicts_with 'mariadb', - :because => "mysql and mariadb install the same binaries." - - conflicts_with 'percona-server', - :because => "mysql and percona-server install the same binaries." - - conflicts_with 'mysql-cluster', - :because => "mysql and mysql-cluster install the same binaries." - - env :std if build.universal? + option "with-tests", "Build with unit tests" + option "with-embedded", "Build the embedded server" + option "with-archive-storage-engine", "Compile with the ARCHIVE storage engine enabled" + option "with-blackhole-storage-engine", "Compile with the BLACKHOLE storage engine enabled" + option "with-local-infile", "Build with local infile loading support" + option "with-memcached", "Enable innodb-memcached support" + option "with-debug", "Build with debug support" + + deprecated_option "enable-local-infile" => "with-local-infile" + deprecated_option "enable-memcached" => "with-memcached" + deprecated_option "enable-debug" => "with-debug" + + depends_on "cmake" => :build + depends_on "pidof" unless MacOS.version >= :mountain_lion + depends_on "openssl" + + conflicts_with "mysql-cluster", "mariadb", "percona-server", + :because => "mysql, mariadb, and percona install the same binaries." + conflicts_with "mysql-connector-c", + :because => "both install MySQL client libraries" fails_with :llvm do build 2326 - cause "https://github.com/mxcl/homebrew/issues/issue/144" + cause "https://github.com/Homebrew/homebrew/issues/issue/144" + end + + def datadir + Pathname.new "/opt/boxen/data/mysql" end def install + # Don't hard-code the libtool path. See: + # https://github.com/Homebrew/homebrew/issues/20185 + inreplace "cmake/libutils.cmake", + "COMMAND /usr/bin/libtool -static -o ${TARGET_LOCATION}", + "COMMAND libtool -static -o ${TARGET_LOCATION}" + # Build without compiler or CPU specific optimization flags to facilitate # compilation of gems and other software that queries `mysql-config`. ENV.minimal_optimization - args = [".", - "-DCMAKE_INSTALL_PREFIX=#{prefix}", - "-DMYSQL_DATADIR=/opt/boxen/data/mysql", - "-DINSTALL_MANDIR=#{man}", - "-DINSTALL_DOCDIR=#{doc}", - "-DINSTALL_INFODIR=#{info}", - # CMake prepends prefix, so use share.basename - "-DINSTALL_MYSQLSHAREDIR=#{share.basename}/#{name}", - "-DWITH_SSL=yes", - "-DDEFAULT_CHARSET=utf8", - "-DDEFAULT_COLLATION=utf8_general_ci", - "-DSYSCONFDIR=#{etc}"] + # -DINSTALL_* are relative to prefix + args = %W[ + . + -DCMAKE_INSTALL_PREFIX=#{prefix} + -DCMAKE_FIND_FRAMEWORK=LAST + -DCMAKE_VERBOSE_MAKEFILE=ON + -DMYSQL_DATADIR=#{datadir} + -DINSTALL_INCLUDEDIR=include/mysql + -DINSTALL_MANDIR=share/man + -DINSTALL_DOCDIR=share/doc/#{name} + -DINSTALL_INFODIR=share/info + -DINSTALL_MYSQLSHAREDIR=share/mysql + -DWITH_SSL=yes + -DWITH_SSL=system + -DDEFAULT_CHARSET=utf8 + -DDEFAULT_COLLATION=utf8_general_ci + -DSYSCONFDIR=#{etc} + -DCOMPILATION_COMMENT=Homebrew + -DWITH_EDITLINE=system + ] # To enable unit testing at build, we need to download the unit testing suite - if build.include? 'with-tests' + if build.with? "tests" args << "-DENABLE_DOWNLOADS=ON" else args << "-DWITH_UNIT_TESTS=OFF" end # Build the embedded server - args << "-DWITH_EMBEDDED_SERVER=ON" if build.include? 'with-embedded' - - # Compile with readline unless libedit is explicitly chosen - args << "-DWITH_READLINE=yes" unless build.include? 'with-libedit' + args << "-DWITH_EMBEDDED_SERVER=ON" if build.with? "embedded" # Compile with ARCHIVE engine enabled if chosen - args << "-DWITH_ARCHIVE_STORAGE_ENGINE=1" if build.include? 'with-archive-storage-engine' + args << "-DWITH_ARCHIVE_STORAGE_ENGINE=1" if build.with? "archive-storage-engine" # Compile with BLACKHOLE engine enabled if chosen - args << "-DWITH_BLACKHOLE_STORAGE_ENGINE=1" if build.include? 'with-blackhole-storage-engine' + args << "-DWITH_BLACKHOLE_STORAGE_ENGINE=1" if build.with? "blackhole-storage-engine" # Make universal for binding to universal applications - args << "-DCMAKE_OSX_ARCHITECTURES='i386;x86_64'" if build.universal? + if build.universal? + ENV.universal_binary + args << "-DCMAKE_OSX_ARCHITECTURES=#{Hardware::CPU.universal_archs.as_cmake_arch_flags}" + end # Build with local infile loading support - args << "-DENABLED_LOCAL_INFILE=1" if build.include? 'enable-local-infile' + args << "-DENABLED_LOCAL_INFILE=1" if build.with? "local-infile" # Build with memcached support - args << "-DWITH_INNODB_MEMCACHED=1" if build.include? 'enable-memcached' + args << "-DWITH_INNODB_MEMCACHED=1" if build.with? "memcached" # Build with debug support - args << "-DWITH_DEBUG=1" if build.include? 'enable-debug' + args << "-DWITH_DEBUG=1" if build.with? "debug" system "cmake", *args system "make" - system "make install" + system "make", "install" # Don't create databases inside of the prefix! - # See: https://github.com/mxcl/homebrew/issues/4975 - rm_rf prefix+'data' + # See: https://github.com/Homebrew/homebrew/issues/4975 + rm_rf prefix+"data" # Link the setup script into bin - ln_s prefix+'scripts/mysql_install_db', bin+'mysql_install_db' + bin.install_symlink prefix/"scripts/mysql_install_db" + # Fix up the control script and link into bin inreplace "#{prefix}/support-files/mysql.server" do |s| s.gsub!(/^(PATH=".*)(")/, "\\1:#{HOMEBREW_PREFIX}/bin\\2") # pidof can be replaced with pgrep from proctools on Mountain Lion - s.gsub!(/pidof/, 'pgrep') if MacOS.version >= :mountain_lion + s.gsub!(/pidof/, "pgrep") if MacOS.version >= :mountain_lion end - ln_s "#{prefix}/support-files/mysql.server", bin + + bin.install_symlink prefix/"support-files/mysql.server" # Move mysqlaccess to libexec + libexec.mkpath mv "#{bin}/mysqlaccess", libexec mv "#{bin}/mysqlaccess.conf", libexec end + def post_install + # Make sure the datadir exists + datadir.mkpath + unless File.exist? "#{datadir}/mysql/user.frm" + ENV["TMPDIR"] = nil + system "#{bin}/mysql_install_db", "--verbose", "--user=#{ENV["USER"]}", + "--basedir=#{prefix}", "--datadir=#{datadir}", "--tmpdir=/tmp" + end + end + + def caveats; <<-EOS.undent + A "/etc/my.cnf" from another install may interfere with a Homebrew-built + server starting up correctly. + + To connect: + mysql -uroot + EOS + end + + plist_options :manual => "mysql.server start" + + def plist; <<-EOS.undent + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + <plist version="1.0"> + <dict> + <key>KeepAlive</key> + <true/> + <key>Label</key> + <string>#{plist_name}</string> + <key>ProgramArguments</key> + <array> + <string>#{opt_bin}/mysqld_safe</string> + <string>--bind-address=127.0.0.1</string> + <string>--datadir=#{datadir}</string> + </array> + <key>RunAtLoad</key> + <true/> + <key>WorkingDirectory</key> + <string>#{datadir}</string> + </dict> + </plist> + EOS + end + + test do + (prefix+"mysql-test").cd do + system "./mysql-test-run.pl", "status" + end + end end 2015-05-29 10:56:46 -0300 /Stage[main]/Mysql::Package/Homebrew::Formula[mysql]/File[/opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/mysql.rb]/content (notice): content changed '{md5}d741241a27c2fc688b4906c3717a3526' to '{md5}8d5b6983dc309e2213dfb80156bf713c' 2015-05-29 10:56:46 -0300 /Stage[main]/Android::Sdk/Homebrew::Formula[android-sdk]/File[/opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/android-sdk.rb]/ensure (notice): defined content as '{md5}f08c947fdbb8fee687257efae4ae4901' 2015-05-29 10:56:46 -0300 /Stage[main]/Redis::Package/Homebrew::Formula[redis]/File[/opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/redis.rb]/ensure (notice): defined content as '{md5}474d4b6861e21070246fc8931c4baaea' 2015-05-29 10:56:46 -0300 /Stage[main]/Git/Homebrew::Formula[git]/File[/opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/git.rb]/content (notice): --- /opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/git.rb 2015-04-26 19:46:28.000000000 -0300 +++ /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/puppet-file20150529-87464-1clbcsn 2015-05-29 10:56:46.000000000 -0300 @@ -1,24 +1,24 @@ class Git < Formula homepage "http://git-scm.com" - url "https://www.kernel.org/pub/software/scm/git/git-2.3.0.tar.gz" - sha256 "ba2fe814e709a5d0f034ebe82083fce7feed0899b3a8c8b3adf1c5a85d1ce9ac" + url "https://www.kernel.org/pub/software/scm/git/git-2.4.0.tar.xz" + sha256 "b33438dd94659958a74850aacae4a2b3a626baec36d7f29c266130b08045bb24" head "https://github.com/git/git.git", :shallow => false bottle do - sha1 "53177456ab367faa30e1d49104e8e2c065ac5613" => :yosemite - sha1 "549b0d4155ad0ca02edb0a55599006da32b21e00" => :mavericks - sha1 "78f9b2bfcdfe7e7d356cc4020df4ec41217f6e25" => :mountain_lion + sha256 "0ff4ff57cbc021c0c72de88da84f35b16199babd944f343c14cb0e0f29fbb005" => :yosemite + sha256 "dcfc32734cc673ea4727f57f987f12dd74d5f8af40b460df2f24b36ec426d292" => :mavericks + sha256 "2bb3f70838196670f51e875c3ef2cbbfed779a3f2a62f1aeb9f33d9e233fb082" => :mountain_lion end resource "man" do - url "https://www.kernel.org/pub/software/scm/git/git-manpages-2.3.0.tar.gz" - sha256 "8aa4d1e5d7bbf5641a9de92279369d9b20cc266ba7b2888104efa40e80b53559" + url "https://www.kernel.org/pub/software/scm/git/git-manpages-2.4.0.tar.xz" + sha256 "b616dc6aa02dcac312e6aeae7af148913f76e1f851ba03ba340b4d2db316ecc7" end resource "html" do - url "https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.3.0.tar.gz" - sha256 "f8edf1547d3fd4e7e820dd2fad1b92eaae6335c993c26e4b03989ea3941d8441" + url "https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.4.0.tar.xz" + sha256 "70ee1fdb70507c74832ac021e8940c8249d9b69f2b86aeaf0888ae41772e93a7" end option "with-blk-sha1", "Compile with the block-optimized SHA1 implementation" @@ -76,8 +76,6 @@ ENV["NO_GETTEXT"] = "1" if build.without? "gettext" - ENV["GIT_DIR"] = cached_download/".git" if build.head? - system "make", "prefix=#{prefix}", "sysconfdir=#{etc}", "CC=#{ENV.cc}", 2015-05-29 10:56:46 -0300 /Stage[main]/Git/Homebrew::Formula[git]/File[/opt/boxen/homebrew/Library/Taps/boxen/homebrew-brews/git.rb]/content (notice): content changed '{md5}229b6f5bdae306a19883e3ca5b83fab5' to '{md5}7f95e2e3a5f539429c1ced6dba343774' 2015-05-29 10:56:49 -0300 /Stage[main]/Hub/Package[boxen/brews/hub]/ensure (notice): ensure changed '2.2.0' to '2.2.1' 2015-05-29 10:56:52 -0300 Puppet (err): Could not update: Execution of 'brew boxen-upgrade boxen/brews/mysql' returned 1: Error: mysql 5.6.24 already installed Wrapped exception: Execution of 'brew boxen-upgrade boxen/brews/mysql' returned 1: Error: mysql 5.6.24 already installed 2015-05-29 10:56:52 -0300 /Stage[main]/Mysql::Package/Package[boxen/brews/mysql]/ensure (err): change from 5.6.20-boxen1 to 5.6.23 failed: Could not update: Execution of 'brew boxen-upgrade boxen/brews/mysql' returned 1: Error: mysql 5.6.24 already installed 2015-05-29 10:57:05 -0300 /Stage[main]/Boxen::Personal/Package[phantomjs]/ensure (notice): created 2015-05-29 10:57:06 -0300 Package[boxen/brews/git](provider=homebrew) (notice): Updating homebrew formulas 2015-05-29 10:58:56 -0300 /Stage[main]/Git/Package[boxen/brews/git]/ensure (notice): ensure changed '2.3.0' to '2.4.0' 2015-05-29 10:58:56 -0300 /Stage[main]/Pow/Service[dev.pow.powd]/ensure (notice): ensure changed 'stopped' to 'running' 2015-05-29 11:23:58 -0300 /Stage[main]/Boxen::Personal/Package[postgis]/ensure (notice): created 2015-05-29 11:24:11 -0300 /Stage[main]/Redis::Package/Package[boxen/brews/redis]/ensure (notice): created 2015-05-29 11:24:11 -0300 /Stage[main]/Redis::Package/File[/opt/boxen/homebrew/var/db/redis]/ensure (notice): removed 2015-05-29 11:24:11 -0300 /Stage[main]/Redis::Package/File[/opt/boxen/homebrew/etc/redis.conf]/ensure (notice): removed 2015-05-29 11:24:11 -0300 /Stage[main]/Redis::Service/Service[com.boxen.redis] (notice): Triggered 'refresh' from 1 events 2015-05-29 11:24:12 -0300 /Stage[main]/Redis::Service/Service[dev.redis]/ensure (notice): ensure changed 'stopped' to 'running' 2015-05-29 11:24:14 -0300 Puppet (err): Execution of '/usr/bin/hdiutil mount -plist -nobrowse -readonly -mountrandom /tmp /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/d20150529-87464-1q23cyc/Android Studio' returned 1: hdiutil: mount failed - image not recognized 2015-05-29 11:24:14 -0300 /Stage[main]/Android::Studio/Package[Android Studio]/ensure (err): change from absent to present failed: Execution of '/usr/bin/hdiutil mount -plist -nobrowse -readonly -mountrandom /tmp /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/d20150529-87464-1q23cyc/Android Studio' returned 1: hdiutil: mount failed - image not recognized 2015-05-29 11:24:15 -0300 Puppet (err): Could not update: Execution of 'brew boxen-upgrade boxen/brews/postgresql' returned 1: Error: boxen/brews/postgresql 9.4.2 already installed Wrapped exception: Execution of 'brew boxen-upgrade boxen/brews/postgresql' returned 1: Error: boxen/brews/postgresql 9.4.2 already installed 2015-05-29 11:24:15 -0300 /Stage[main]/Postgresql::Package/Package[boxen/brews/postgresql]/ensure (err): change from 9.4.2 to 9.4.1-boxen2 failed: Could not update: Execution of 'brew boxen-upgrade boxen/brews/postgresql' returned 1: Error: boxen/brews/postgresql 9.4.2 already installed 2015-05-29 11:24:15 -0300 /Stage[main]/Postgresql::Service/Exec[init-postgresql-db] (notice): Dependency Package[boxen/brews/postgresql] has failures: true 2015-05-29 11:24:15 -0300 /Stage[main]/Postgresql::Service/Exec[init-postgresql-db] (warning): Skipping because of failed dependencies 2015-05-29 11:24:17 -0300 /Stage[main]/Postgresql::Service/Exec[init-postgresql-db] (notice): Triggered 'refresh' from 1 events 2015-05-29 11:24:17 -0300 /Stage[main]/Postgresql::Service/Service[com.boxen.postgresql] (notice): Dependency Package[boxen/brews/postgresql] has failures: true 2015-05-29 11:24:17 -0300 /Stage[main]/Postgresql::Service/Service[com.boxen.postgresql] (warning): Skipping because of failed dependencies 2015-05-29 11:24:17 -0300 /Stage[main]/Postgresql::Service/Service[com.boxen.postgresql] (notice): Triggered 'refresh' from 1 events 2015-05-29 11:24:17 -0300 /Stage[main]/Postgresql::Service/Exec[kill-stale-postgres-pidfile] (notice): Dependency Package[boxen/brews/postgresql] has failures: true 2015-05-29 11:24:17 -0300 /Stage[main]/Postgresql::Service/Exec[kill-stale-postgres-pidfile] (warning): Skipping because of failed dependencies 2015-05-29 11:24:17 -0300 /Stage[main]/Postgresql::Service/Exec[kill-stale-postgres-pidfile] (notice): Triggered 'refresh' from 1 events 2015-05-29 11:24:17 -0300 /Stage[main]/Postgresql::Service/Service[dev.postgresql] (notice): Dependency Package[boxen/brews/postgresql] has failures: true 2015-05-29 11:24:17 -0300 /Stage[main]/Postgresql::Service/Service[dev.postgresql] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Postgresql::Service/Service[dev.postgresql] (notice): Triggered 'refresh' from 2 events 2015-05-29 11:24:18 -0300 /Stage[main]/Postgresql::Service/Exec[wait-for-postgresql] (notice): Dependency Package[boxen/brews/postgresql] has failures: true 2015-05-29 11:24:18 -0300 /Stage[main]/Postgresql::Service/Exec[wait-for-postgresql] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Postgresql::Service/Exec[wait-for-postgresql] (notice): Triggered 'refresh' from 1 events 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/env.d/mysql.sh] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/env.d/mysql.sh] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/config/mysql] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/config/mysql] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/config/mysql/my.cnf] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/config/mysql/my.cnf] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/log/mysql] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/log/mysql] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/data/mysql] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/data/mysql] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/Exec[init-mysql-db] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/Exec[init-mysql-db] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/Exec[init-mysql-db] (notice): Triggered 'refresh' from 1 events 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/homebrew/var/mysql] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/homebrew/var/mysql] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/homebrew/etc/my.cnf] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/File[/opt/boxen/homebrew/etc/my.cnf] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/Boxen::Env_script[mysql]/File[/opt/boxen/env.d/30_mysql.sh] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Config/Boxen::Env_script[mysql]/File[/opt/boxen/env.d/30_mysql.sh] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Service/File[/Library/LaunchDaemons/dev.mysql.plist] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Service/File[/Library/LaunchDaemons/dev.mysql.plist] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Service/Service[com.boxen.mysql] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Service/Service[com.boxen.mysql] (warning): Skipping because of failed dependencies 2015-05-29 11:24:18 -0300 /Stage[main]/Mysql::Service/Service[com.boxen.mysql] (notice): Triggered 'refresh' from 1 events 2015-05-29 11:24:29 -0300 /Stage[main]/Mysql::Service/Service[dev.mysql] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:29 -0300 /Stage[main]/Mysql::Service/Service[dev.mysql] (warning): Skipping because of failed dependencies 2015-05-29 11:24:30 -0300 /Stage[main]/Mysql::Service/Service[dev.mysql] (notice): Triggered 'refresh' from 2 events 2015-05-29 11:24:30 -0300 /Stage[main]/Mysql::Setup/Exec[wait-for-mysql] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:30 -0300 /Stage[main]/Mysql::Setup/Exec[wait-for-mysql] (warning): Skipping because of failed dependencies 2015-05-29 11:24:42 -0300 /Stage[main]/Mysql::Setup/Exec[wait-for-mysql] (notice): Triggered 'refresh' from 1 events 2015-05-29 11:24:42 -0300 /Stage[main]/Mysql::Setup/Exec[mysql-tzinfo-to-sql] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:42 -0300 /Stage[main]/Mysql::Setup/Exec[mysql-tzinfo-to-sql] (warning): Skipping because of failed dependencies 2015-05-29 11:24:42 -0300 /Stage[main]/Mysql::Setup/Exec[mysql-tzinfo-to-sql] (notice): Triggered 'refresh' from 2 events 2015-05-29 11:24:42 -0300 /Stage[main]/Mysql::Setup/Exec[grant root user privileges] (notice): Dependency Package[boxen/brews/mysql] has failures: true 2015-05-29 11:24:42 -0300 /Stage[main]/Mysql::Setup/Exec[grant root user privileges] (warning): Skipping because of failed dependencies 2015-05-29 11:24:42 -0300 /Stage[main]/Mysql::Setup/Exec[grant root user privileges] (notice): Triggered 'refresh' from 2 events 2015-05-29 11:24:43 -0300 Puppet (err): Could not update: Execution of 'brew boxen-upgrade boxen/brews/android-sdk' returned 1: Error: boxen/brews/android-sdk 24.1.2 already installed Wrapped exception: Execution of 'brew boxen-upgrade boxen/brews/android-sdk' returned 1: Error: boxen/brews/android-sdk 24.1.2 already installed 2015-05-29 11:24:43 -0300 /Stage[main]/Android::Sdk/Package[boxen/brews/android-sdk]/ensure (err): change from 24.1.2 to 23-boxen1 failed: Could not update: Execution of 'brew boxen-upgrade boxen/brews/android-sdk' returned 1: Error: boxen/brews/android-sdk 24.1.2 already installed 2015-05-29 11:24:43 -0300 /Stage[main]/Stacks::Android/Android::Build_tools[20.0.0]/Android::Definition[build-tools-20.0.0]/Exec[android-update-build-tools-20.0.0] (notice): Dependency Package[boxen/brews/android-sdk] has failures: true 2015-05-29 11:24:43 -0300 /Stage[main]/Stacks::Android/Android::Build_tools[20.0.0]/Android::Definition[build-tools-20.0.0]/Exec[android-update-build-tools-20.0.0] (warning): Skipping because of failed dependencies 2015-05-29 11:24:43 -0300 /Stage[main]/Stacks::Android/Android::Version[20]/Android::System_image[sysimg-20]/Android::Definition[sysimg-20]/Exec[android-update-sysimg-20] (notice): Dependency Package[boxen/brews/android-sdk] has failures: true 2015-05-29 11:24:43 -0300 /Stage[main]/Stacks::Android/Android::Version[20]/Android::System_image[sysimg-20]/Android::Definition[sysimg-20]/Exec[android-update-sysimg-20] (warning): Skipping because of failed dependencies 2015-05-29 11:24:43 -0300 /Stage[main]/Android::Platform_tools/Android::Definition[platform-tools]/Exec[android-update-platform-tools] (notice): Dependency Package[boxen/brews/android-sdk] has failures: true 2015-05-29 11:24:43 -0300 /Stage[main]/Android::Platform_tools/Android::Definition[platform-tools]/Exec[android-update-platform-tools] (warning): Skipping because of failed dependencies 2015-05-29 11:24:43 -0300 /Stage[main]/Stacks::Android/Android::Version[20]/Android::Platform[android-20]/Android::Definition[android-20]/Exec[android-update-android-20] (notice): Dependency Package[boxen/brews/android-sdk] has failures: true 2015-05-29 11:24:43 -0300 /Stage[main]/Stacks::Android/Android::Version[20]/Android::Platform[android-20]/Android::Definition[android-20]/Exec[android-update-android-20] (warning): Skipping because of failed dependencies
Succeeded at version 53533bc5e6437a2b709624588a81fa0c654c0822.
Running on
Super-Nintendo.local
(OS X 10.10.3) under/opt/boxen/homebrew/bin/zsh
, version d62940b7df51469d14311e23c2f1a47e0d05b5f2 (compare to master).Puppet Command
Output (from /opt/boxen/repo/log/boxen.log)