Bug 254954

Summary: www/gitlab-ce 13.10.2 rake db:migrate task fails
Product: Ports & Packages Reporter: hakan
Component: Individual Port(s)Assignee: Matthias Fechner <mfechner>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (mfechner)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description hakan 2021-04-10 19:28:36 UTC

I tried to update from 13.9.4 to 13.10.2, and after successfully building everything with portmaster, I got stopped at the following step:

su -l git -c "cd /usr/local/www/gitlab-ce && rake db:migrate RAILS_ENV=production"
rake aborted!
LoadError: /usr/local/lib/libgrpc.so.14: Undefined symbol "_ZN4absl14lts_2020_09_2319str_format_internal13FormatArgImpl8DispatchINS1_7VoidPtrEEEbNS2_4DataENS1_24FormatConversionSpecImplEPv" - /usr/local/lib/ruby/gems/2.7/gems/grpc-1.30.2/src/ruby/lib/grpc/grpc_c.so
/usr/local/www/gitlab-ce/config/application.rb:15:in `<top (required)>'
/usr/local/www/gitlab-ce/Rakefile:7:in `<top (required)>'
(See full trace by running task with --trace)

Are my installed grpc dependencies somehow wrong?

pkg info | grep grpc
grpc134-1.34.0_1               HTTP/2-based RPC framework
rubygem-grpc130-1.30.2_3       Ruby implementation of gRPC
Comment 1 Matthias Fechner freebsd_committer 2021-04-10 19:58:29 UTC
Make sure you very carefully follow the manual:

Executing pkg autoremove is crucial.
Comment 2 hakan 2021-04-11 12:29:41 UTC
Thanks for the fast reply.

`pkg autoremove` did not help here.

Instead, I had to delete the `gitlab-ce` package and run `pkg autoremove` again to purge all of its dependencies from my system.

After that, portmaster successfully built `www/gitlab-ce` with all of its dependencies, and the rake tasks did not fail anymore. :)