Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-1401

Gettext fails to install from homebrew on OSX 10.12

    Details

    • Type: CI Blocker
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • CI Pipeline/s:
      platform puppet-agent
    • Team:
      Platform OS
    • Story Points:
      3
    • Sprint:
      Platform OS 2017-08-22
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      Covered by existing CI

      Description

      On OSX, we install gettext tools via homebrew. On 10.12, this install fails consistently:

      13:27:08 ==> Installing gettext from puppetlabs/brew-build-tools
      13:27:08 ==> Downloading http://pl-build-tools.delivery.puppetlabs.net/osx/bottles-brew-build-tools/gettext-0.19.8.1.sierra.bottle.tar.gz
      13:27:08 /usr/bin/curl --fail --remote-time --location --user-agent Homebrew/0.9.9 (Macintosh; Intel Mac OS X 10.12) curl/7.49.1 http://pl-build-tools.delivery.puppetlabs.net/osx/bottles-brew-build-tools/gettext-0.19.8.1.sierra.bottle.tar.gz -C 0 -o /var/root/Library/Caches/Homebrew/gettext-0.19.8.1.sierra.bottle.tar.gz.incomplete --silent
      13:27:08 Error: Failed to download resource "gettext"
      13:27:08 Download failed: http://pl-build-tools.delivery.puppetlabs.net/osx/bottles-brew-build-tools/gettext-0.19.8.1.sierra.bottle.tar.gz
      13:27:08 Warning: Bottle installation failed: building from source.
      13:27:08 ==> Installing dependencies for puppetlabs/brew-build-tools/gettext: xz
      13:27:08 ==> Installing puppetlabs/brew-build-tools/gettext dependency: xz
      13:27:08 ==> Downloading http://pl-build-tools.delivery.puppetlabs.net/osx/bottles/xz-5.2.3.sierra.bottle.tar.gz
      13:27:08 /usr/bin/curl --fail --remote-time --location --user-agent Homebrew/0.9.9 (Macintosh; Intel Mac OS X 10.12) curl/7.49.1 http://pl-build-tools.delivery.puppetlabs.net/osx/bottles/xz-5.2.3.sierra.bottle.tar.gz -C 0 -o /var/root/Library/Caches/Homebrew/xz-5.2.3.sierra.bottle.tar.gz.incomplete --silent
      13:27:08 Error: Failed to download resource "xz"
      13:27:08 Download failed: http://pl-build-tools.delivery.puppetlabs.net/osx/bottles/xz-5.2.3.sierra.bottle.tar.gz
      13:27:08 Warning: Bottle installation failed: building from source.
      13:27:08 ==> Using the sandbox
      13:27:08 /usr/bin/sandbox-exec -f /tmp/homebrew20170809-1351-1y7xrg8.sb nice /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -I /usr/local/Library/Homebrew -- /usr/local/Library/Homebrew/build.rb /usr/local/Library/Taps/homebrew/homebrew-core/Formula/xz.rb --verbose
      13:27:09 ==> Downloading https://downloads.sourceforge.net/project/lzmautils/xz-5.2.3.tar.gz
      13:27:09 /usr/bin/curl --fail --remote-time --location --user-agent Homebrew/0.9.9 (Macintosh; Intel Mac OS X 10.12) curl/7.49.1 https://downloads.sourceforge.net/project/lzmautils/xz-5.2.3.tar.gz -C 0 -o /var/root/Library/Caches/Homebrew/xz-5.2.3.tar.gz.incomplete --connect-timeout 5 --silent
      13:27:09 Trying a mirror...
      13:27:09 ==> Downloading https://tukaani.org/xz/xz-5.2.3.tar.gz
      13:27:10 /usr/bin/curl --fail --remote-time --location --user-agent Homebrew/0.9.9 (Macintosh; Intel Mac OS X 10.12) curl/7.49.1 https://tukaani.org/xz/xz-5.2.3.tar.gz -C 0 -o /var/root/Library/Caches/Homebrew/xz-5.2.3.tar.gz.incomplete --silent
      13:27:10 Error: Failed to download resource "xz"
      13:27:10 Download failed: https://tukaani.org/xz/xz-5.2.3.tar.gz
      

      This causes the compilation of PO translation files to MO binary files to fail:

      13:46:48 cd puppet && \
      13:46:48        for dir in ./locales/*/ ; do [ -d "${dir}" ] || continue ; [ -d "${dir}/LC_MESSAGES" ] || /bin/mkdir "${dir}/LC_MESSAGES" ; /usr/local/opt/gettext/bin/msgfmt "${dir}/puppet.po" -o "${dir}/LC_MESSAGES/puppet.mo" ; done ;
      13:46:48 /bin/bash: /usr/local/opt/gettext/bin/msgfmt: No such file or directory
      13:46:48 /bin/bash: /usr/local/opt/gettext/bin/msgfmt: No such file or directory
      13:46:48 /bin/bash: /usr/local/opt/gettext/bin/msgfmt: No such file or directory
      13:46:48 make: *** [puppet-configure] Error 127
      

      It also prevents similar files being compiled as part of the C++ project builds. Once we have Japanese translations in Puppet, this will cause build failures in the PA#master suite. It will also result in no translations being present for C++ (we currently have some French translations for leatherman).

      Job link: https://jenkins-master-prod-1.delivery.puppetlabs.net/view/puppet-agent/view/ad-hoc/job/platform_puppet-agent_pkg-van-ship_daily-ad-hoc/71/BUILD_TARGET=osx-10.12-x86_64,SLAVE_LABEL=beaker/

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                scott.garman Scott Garman
                Reporter:
                maggie Maggie Dreyer
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support