fritteli / gentoo-overlay

https://gittr.ch/linux/gentoo-overlay
GNU General Public License v2.0
24 stars 7 forks source link

www-apps/gitlabhq error with gem rugged #11

Closed dewey closed 9 years ago

dewey commented 9 years ago

Hello,

I'm running into a problem where the installation is failing because installing the rugged gem is failing for some reason. There's a forum thread suggesting it's an incompatibility with the libgit version:

http://forums.gentoo.org/viewtopic-t-1010718-view-previous.html?sid=4b625820730905f1734ff0d9cb0498e9

Any idea what's wrong there?

Thanks

>>> Emerging (19 of 19) www-apps/gitlabhq-7.7.1::fritteli
 * gitlabhq-7.7.1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking gitlabhq-7.7.1.tar.gz to /var/tmp/portage/www-apps/gitlabhq-7.7.1/work/all
>>> Source unpacked in /var/tmp/portage/www-apps/gitlabhq-7.7.1/work
>>> Preparing source in /var/tmp/portage/www-apps/gitlabhq-7.7.1/work ...
 * Running prepare phase for all ...
 * Applying gitlabhq-7.7.1-fix-gemfile.patch ...                                                                                                                                                                                       [ ok ]
 * Applying gitlabhq-7.7.1-fix-project-name-regex.patch ...                                                                                                                                                                            [ ok ]
 * Applying gitlabhq-6.0.2-fix-sendmail-config.patch ...                                                                                                                                                                               [ ok ]
 * Applying gitlabhq-7.0.0-email-custom-reply_to.patch ...                                                                                                                                                                             [ ok ]
 * Running source copy phase for ruby20 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/www-apps/gitlabhq-7.7.1/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/www-apps/gitlabhq-7.7.1/work ...
>>> Source compiled.
>>> Test phase [not enabled]: www-apps/gitlabhq-7.7.1

>>> Install gitlabhq-7.7.1 into /var/tmp/portage/www-apps/gitlabhq-7.7.1/image/ category www-apps
 * Running install phase for all ...
 * Running bundle install --deployment --without development test aws mysql ...
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Fetching source index from https://rubygems.org/
Fetching https://github.com/brianmario/charlock_holmes.git
Installing rake 10.3.2
Installing RedCloth 4.2.9
Installing ace-rails-ap 2.0.1
Installing i18n 0.6.11
Installing json 1.8.1
Installing minitest 5.3.5
Installing thread_safe 0.3.4
Installing tzinfo 1.2.2
Installing activesupport 4.1.1
Installing builder 3.2.2
Installing erubis 2.7.0
Installing actionview 4.1.1
Installing rack 1.5.2
Installing rack-test 0.6.2
Installing actionpack 4.1.1
Installing mime-types 1.25.1
Installing polyglot 0.3.4
Installing treetop 1.4.15
Installing mail 2.5.4
Installing actionmailer 4.1.1
Installing activemodel 4.1.1
Installing arel 5.0.1.20140414130214
Installing activerecord 4.1.1
Using bundler 1.7.3
Installing thor 0.19.1
Installing railties 4.1.1
Installing hike 1.2.3
Installing multi_json 1.10.1
Installing tilt 1.4.1
Installing sprockets 2.11.0
Installing sprockets-rails 2.1.3
Installing rails 4.1.1
Installing acts-as-taggable-on 2.4.1
Installing addressable 2.3.5
Installing asciidoctor 0.1.4
Installing attr_required 1.0.0
Installing descendants_tracker 0.0.3
Installing ice_nine 0.10.0
Installing axiom-types 0.0.5
Installing bcrypt 3.1.7
Installing sass 3.2.19
Installing bootstrap-sass 3.0.3.0
Installing browser 0.7.2
Installing carrierwave 0.9.0
Installing timers 1.1.0
Installing celluloid 0.15.2
Using charlock_holmes 0.6.9.4 from https://github.com/brianmario/charlock_holmes.git (at dde1946)
Installing coercible 1.0.0
Installing coffee-script-source 1.6.3
Installing execjs 2.0.2
Installing coffee-script 2.2.0
Installing coffee-rails 4.0.1
Installing colored 1.2
Installing connection_pool 2.1.0
Installing creole 0.3.8
Installing d3_rails 3.1.10
Installing default_value_for 3.0.0
Installing orm_adapter 0.5.0
Installing warden 1.2.3
Installing devise 3.2.4
Installing devise-async 0.9.0
Installing diff-lcs 1.2.5
Installing diffy 3.0.3
Installing doorkeeper 2.1.0
Installing dotenv 0.9.0
Installing dropzonejs-rails 0.4.14
Installing emoji 1.0.1
Installing enumerize 0.7.0
Installing equalizer 0.0.8
Installing escape_utils 0.2.4
Installing eventmachine 1.0.4
Installing excon 0.32.1
Installing expression_parser 0.9.0
Installing multipart-post 1.2.0
Installing faraday 0.8.9
Installing faraday_middleware 0.9.0
Installing formatador 0.2.4
Installing net-ssh 2.8.0
Installing net-scp 1.1.2
Installing fog-core 1.21.1
Installing fog-json 1.0.0
Installing fog-brightbox 0.0.1
Installing mini_portile 0.6.0
Building nokogiri using packaged libraries.
Building libxml2-2.8.0 for nokogiri with the following patches applied:
    - 0001-Fix-parser-local-buffers-size-problems.patch
    - 0002-Fix-entities-local-buffers-size-problems.patch
    - 0003-Fix-an-error-in-previous-commit.patch
    - 0004-Fix-potential-out-of-bound-access.patch
    - 0005-Detect-excessive-entities-expansion-upon-replacement.patch
    - 0006-Do-not-fetch-external-parsed-entities.patch
    - 0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
    - 0008-Improve-handling-of-xmlStopParser.patch
    - 0009-Fix-a-couple-of-return-without-value.patch
    - 0010-Keep-non-significant-blanks-node-in-HTML-parser.patch
    - 0011-Do-not-fetch-external-parameter-entities.patch
************************************************************************
IMPORTANT!  Nokogiri builds and uses a packaged version of libxml2.

If this is a concern for you and you want to use the system library
instead, abort this installation process and reinstall nokogiri as
follows:

    gem install nokogiri -- --use-system-libraries

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

However, note that nokogiri does not necessarily support all versions
of libxml2.

For example, libxml2-2.9.0 and higher are currently known to be broken
and thus unsupported by nokogiri, due to compatibility problems and
XPath optimization bugs.
************************************************************************
Building libxslt-1.1.28 for nokogiri with the following patches applied:
    - 0001-Adding-doc-update-related-to-1.1.28.patch
    - 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch
    - 0003-Initialize-pseudo-random-number-generator-with-curre.patch
    - 0004-EXSLT-function-str-replace-is-broken-as-is.patch
    - 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch
    - 0007-Separate-function-for-predicate-matching-in-patterns.patch
    - 0008-Fix-direct-pattern-matching.patch
    - 0009-Fix-certain-patterns-with-predicates.patch
    - 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch
    - 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch
    - 0014-Fix-for-bug-436589.patch
    - 0015-Fix-mkdir-for-mingw.patch
************************************************************************
IMPORTANT!  Nokogiri builds and uses a packaged version of libxslt.

If this is a concern for you and you want to use the system library
instead, abort this installation process and reinstall nokogiri as
follows:

    gem install nokogiri -- --use-system-libraries

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install
************************************************************************
Installing nokogiri 1.6.2.1
Installing fog 1.21.0
Installing font-awesome-rails 4.2.0.0
Installing foreman 0.63.0

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /usr/bin/ruby20 extconf.rb
checking for cmake... yes
checking for gmake... yes
checking for pkg-config... yes
 -- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo
 -- /usr/bin/gmake
checking for main() in -lgit2... yes
checking for git2.h... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling rugged_diff_line.c
compiling rugged_reference.c
compiling rugged_remote_collection.c
compiling rugged_config.c
compiling rugged.c
compiling rugged_cred.c
compiling rugged_remote.c
compiling rugged_diff.c
compiling rugged_revwalk.c
compiling rugged_index.c
compiling rugged_object.c
compiling rugged_branch_collection.c
compiling rugged_commit.c
compiling rugged_patch.c
compiling rugged_tree.c
compiling rugged_signature.c
compiling rugged_branch.c
compiling rugged_note.c
compiling rugged_diff_hunk.c
compiling rugged_settings.c
compiling rugged_reference_collection.c
compiling rugged_blob.c
compiling rugged_diff_delta.c
compiling rugged_repo.c
compiling rugged_tag.c
compiling rugged_blame.c
compiling rugged_tag_collection.c
linking shared-object rugged/rugged.so
/var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6/vendor/bundle/ruby/2.0.0/gems/rugged-0.21.2/ext/rugged/../../vendor/libgit2/build/libgit2.a(http.c.o): In function `clear_parser_state':
/var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6/vendor/bundle/ruby/2.0.0/gems/rugged-0.21.2/vendor/libgit2/src/transports/http.c:400: undefined reference to `http_parser_init'
/var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6/vendor/bundle/ruby/2.0.0/gems/rugged-0.21.2/ext/rugged/../../vendor/libgit2/build/libgit2.a(http.c.o): In function `http_connect':
/var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6/vendor/bundle/ruby/2.0.0/gems/rugged-0.21.2/vendor/libgit2/src/transports/http.c:458: undefined reference to `http_should_keep_alive'
/var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6/vendor/bundle/ruby/2.0.0/gems/rugged-0.21.2/vendor/libgit2/src/transports/http.c:459: undefined reference to `http_body_is_final'
/var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6/vendor/bundle/ruby/2.0.0/gems/rugged-0.21.2/ext/rugged/../../vendor/libgit2/build/libgit2.a(http.c.o): In function `http_stream_read':
/var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6/vendor/bundle/ruby/2.0.0/gems/rugged-0.21.2/vendor/libgit2/src/transports/http.c:575: undefined reference to `http_parser_execute'
/var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6/vendor/bundle/ruby/2.0.0/gems/rugged-0.21.2/vendor/libgit2/src/transports/http.c:597: undefined reference to `http_errno_description'
/var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6/vendor/bundle/ruby/2.0.0/gems/rugged-0.21.2/ext/rugged/../../vendor/libgit2/build/libgit2.a(netops.c.o): In function `gitno_extract_url_parts':
/var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6/vendor/bundle/ruby/2.0.0/gems/rugged-0.21.2/vendor/libgit2/src/netops.c:696: undefined reference to `http_parser_parse_url'
collect2: error: ld returned 1 exit status
Makefile:231: recipe for target 'rugged.so' failed
make: *** [rugged.so] Error 1

make failed, exit code 2

Gem files will remain installed in /var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6/vendor/bundle/ruby/2.0.0/gems/rugged-0.21.2 for inspection.
Results logged to /var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6/vendor/bundle/ruby/2.0.0/extensions/x86_64-linux/2.0.0/rugged-0.21.2/gem_make.out
An error occurred while installing rugged (0.21.2), and Bundler cannot continue.
Make sure that `gem install rugged -v '0.21.2'` succeeds before bundling.
 * ERROR: www-apps/gitlabhq-7.7.1::fritteli failed (install phase):
 *   bundler failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 7226:  Called ruby-ng_src_install
 *   environment, line 6991:  Called _ruby_invoke_environment 'all' 'all_ruby_install'
 *   environment, line 1089:  Called all_ruby_install
 *   environment, line 1189:  Called die
 * The specific snippet of code:
 *       ${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed";
 *
 * If you need support, post the output of `emerge --info '=www-apps/gitlabhq-7.7.1::fritteli'`,
 * the complete build log and the output of `emerge -pqv '=www-apps/gitlabhq-7.7.1::fritteli'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =gitlabhq-7.7.1
 * The complete build log is located at '/var/tmp/portage/www-apps/gitlabhq-7.7.1/temp/build.log'.

 18 net-misc/openvpn iproute2
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/gitlabhq-7.7.1/temp/environment'.
 * Working directory: '/var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6'
 * S: '/var/tmp/portage/www-apps/gitlabhq-7.7.1/work/all/gitlabhq-7.7.1'

>>> Failed to emerge www-apps/gitlabhq-7.7.1, Log file:

>>>  '/var/tmp/portage/www-apps/gitlabhq-7.7.1/temp/build.log'

 * Messages for package dev-lang/ruby-2.0.0_p598:

 *
 * To switch between available Ruby profiles, execute as root:
 *  eselect ruby set ruby(19|20|...)
 *

 * Messages for package dev-ruby/rubygems-2.2.2:

 *
 * To switch between available Ruby profiles, execute as root:
 *  eselect ruby set ruby(19|20|...)
 *

 * Messages for package dev-vcs/gitlab-shell-2.4.1:

 * Initializing authorized_keys file in /var/lib/git/.ssh
 *
 * GitLab Shell was initialized. Repositories are located in
 * /var/lib/git/repositories, scripts in /usr/share/gitlab-shell/bin.
 * All gitlab-* scripts was symlinked to /usr/bin to be on your path.
 *
 * You should change your gitlab_url in: /etc/gitlab-shell.yml.

 * Messages for package www-apps/gitlabhq-7.7.1:

 * ERROR: www-apps/gitlabhq-7.7.1::fritteli failed (install phase):
 *   bundler failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 7226:  Called ruby-ng_src_install
 *   environment, line 6991:  Called _ruby_invoke_environment 'all' 'all_ruby_install'
 *   environment, line 1089:  Called all_ruby_install
 *   environment, line 1189:  Called die
 * The specific snippet of code:
 *       ${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed";
 *
 * If you need support, post the output of `emerge --info '=www-apps/gitlabhq-7.7.1::fritteli'`,
 * the complete build log and the output of `emerge -pqv '=www-apps/gitlabhq-7.7.1::fritteli'`.
 * The complete build log is located at '/var/tmp/portage/www-apps/gitlabhq-7.7.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/gitlabhq-7.7.1/temp/environment'.
 * Working directory: '/var/tmp/portage/www-apps/gitlabhq-7.7.1/image/opt/gitlab-6'
 * S: '/var/tmp/portage/www-apps/gitlabhq-7.7.1/work/all/gitlabhq-7.7.1'

 * GNU info directory index is up-to-date.

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
fritteli commented 9 years ago

I'm sorry, but I have no idea. I know almost nothing about ruby and gems. If it helps, I have dev-ruby/ruby-2.0.0_p645 and dev-ruby/rubygems-2.2.2 installed.

Also, does it still happen with the latest ebuild?

fritteli commented 9 years ago

This issue is very old and affects an outdated version of gitlabhq. I will therefore close it. If it still appears in the latest version (7.13.1, as of 2015-07-25), please open a new issue.