krb5-auth doesn't find the krb install while running bundler on ubuntu
Fails the same on 12.04 and 14.04, when the system does not have the krb dev package installed on the system.
Log:
[Builder: gitlab-rails] I | bundle `install --without development test mysql --path=/opt/gitlab/embedded/service/gem --jobs 5': 309.3339s
[Builder: gitlab-rails] I | Build gitlab-rails: 309.4059s
/home/perforce/jenkins/workspace/p4gitlab-master-ub1204-deb/.bundle/ruby/1.9.1/gems/mixlib-shellout-1.4.0/lib/mixlib/shellout.rb:257:in `invalid!': Expected process to exit with [0], but received '5' (Mixlib::ShellOut::ShellCommandFailed)
---- Begin output of /opt/gitlab/embedded/bin/bundle install --without development test mysql --path=/opt/gitlab/embedded/service/gem --jobs 5 ----
STDOUT: Fetching source index from https://rubygems.org/
Resolving dependencies.............
Using rake 10.3.2
Using RedCloth 4.2.9
Using json 1.8.1
Using minitest 5.3.5
Using ace-rails-ap 2.0.1
Using i18n 0.6.11
Using thread_safe 0.3.4
Using builder 3.2.2
Using erubis 2.7.0
Using rack 1.5.2
Using mime-types 1.25.1
Using polyglot 0.3.4
Using arel 5.0.1.20140414130214
Using thor 0.19.1
Using hike 1.2.3
Using bundler 1.7.9
Using multi_json 1.10.1
Using tilt 1.4.1
Using asciidoctor 0.1.4
Using addressable 2.3.5
Using ice_nine 0.10.0
Using bcrypt 3.1.7
Using sass 3.2.19
Using descendants_tracker 0.0.3
Using charlock_holmes 0.6.9.4
Using timers 1.1.0
Using coffee-script-source 1.6.3
Using colored 1.2
Using execjs 2.0.2
Using connection_pool 2.1.0
Using creole 0.3.8
Using orm_adapter 0.5.0
Using diff-lcs 1.2.5
Using diffy 3.0.3
Using dotenv 0.9.0
Using escape_utils 0.2.4
Using equalizer 0.0.8
Using eventmachine 1.0.3
Using expression_parser 0.9.0
Using multipart-post 1.2.0
Using excon 0.32.1
Using formatador 0.2.4
Using net-ssh 2.8.0
Using mini_portile 0.6.0
Using rugged 0.21.2
Using github-markup 1.1.0
Using posix-spawn 0.3.9
Using gitlab_meta 7.0
Using net-ldap 0.9.0
Using hashie 2.1.2
Using pyu-ruby-sasl 0.0.3.3
Using rubyntlm 0.4.0
Using stringex 2.5.1
Using multi_xml 0.5.5
Using rouge 1.3.3
Using http_parser.rb 0.5.3
Using jquery-atwho-rails 0.3.3
Using kgio 2.8.1
Using httpauth 0.2.1
Using libv8 3.16.14.7
Using mousetrap-rails 1.4.6
Using newrelic_rpm 3.9.4.245
Using nprogress-rails 0.1.2.3
Using oauth 0.4.7
Using rubypants 0.2.0
Using p4ruby 2014.2.0.pre2
Using rack-cors 0.2.9
Using pg 0.15.1
Using raphael-rails 2.1.2
Using redcarpet 3.1.2
Using raindrops 0.12.0
Using redis 3.1.0
Using ref 1.0.5
Using request_store 1.0.5
Using settingslogic 2.0.9
Installing simple_oauth 0.1.9
Installing six 0.2.0
Using temple 0.6.7
Using stamp 0.5.0
Using state_machine 1.2.0
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/opt/gitlab/embedded/bin/ruby extconf.rb
checking for main() in -lc... yes
checking for krb5_init_context() in -lkrb5... no
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling ruby_krb5_auth.c
ruby_krb5_auth.c:24:18: fatal error: krb5.h: No such file or directory
compilation terminated.
make: *** [ruby_krb5_auth.o] Error 1
make failed, exit code 2
Gem files will remain installed in /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/timfel-krb5-auth-0.8 for inspection.
Results logged to /opt/gitlab/embedded/service/gem/ruby/2.1.0/extensions/x86_64-linux/2.1.0/timfel-krb5-auth-0.8/gem_make.out
Installing slack-notifier 1.0.0
Installing rinku 1.7.3
Installing underscore-rails 1.4.4
An error occurred while installing timfel-krb5-auth (0.8), and Bundler cannot
continue.
Make sure that `gem install timfel-krb5-auth -v '0.8'` succeeds before bundling.
STDERR:
---- End output of /opt/gitlab/embedded/bin/bundle install --without development test mysql --path=/opt/gitlab/embedded/service/gem --jobs 5 ----
Ran /opt/gitlab/embedded/bin/bundle install --without development test mysql --path=/opt/gitlab/embedded/service/gem --jobs 5 returned 5