Help needed: net/rubygem-grpc

Steve Wills steve at mouf.net
Wed Jun 28 02:16:41 UTC 2017


Hi,

I was taking a look at this. It looks like several things are going on.
As you noticed, it's going to have to use gmake, you can patch the
extconf.rb for that. But then you run into other issues. It's expecting
a pkg-config file for openssl, which we don't have for the openssl in
base (src). I think this is the only thing in base lacking a .pc file.
We will have to patch the Makefile for that. It would be best not to use
any of the bundled things and instead use the versions from ports. I
noticed there's a newer version, 1.4.0, but it has the same issues. Will
the newer gitlab work with the 1.4.0 version of the grpc gem?

Steve

On 06/19/2017 05:56, Torsten Zuehlsdorff wrote:
> Hello,
> 
> in order to bring www/gitlab to its next big version, i need a Gem in
> the ports-tree i'm struggling with. Its net/rubygem-rpc, here you find
> its details:
> https://rubygems.org/gems/grpc
> https://github.com/grpc/grpc/tree/master/src/ruby
> 
> I created attached port (and various others), but always the error:
> 
> === start ===
> make[1]: illegal argument to -j -- must be positive integer!
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of necessary
> libraries and/or headers.  Check the mkmf.log file for more details. You
> may
> need configuration options.
> 
> Provided configuration options:
>         --with-opt-dir
>         --without-opt-dir
>         --with-opt-include
>         --without-opt-include=${opt-dir}/include
>         --with-opt-lib
>         --without-opt-lib=${opt-dir}/lib
>         --with-make-prog
>         --without-make-prog
>         --srcdir=.
>         --curdir
>         --ruby=/usr/local/bin/$(RUBY_BASE_NAME)23
> 
> extconf failed, exit code 1
> === end ===
> 
> If i remove usage of "gem" and use gmake instead, it will compile much
> more and results in:
> 
> === start ===
> [C]       Compiling src/core/lib/iomgr/socket_utils_linux.c
> src/core/lib/iomgr/socket_utils_common_posix.c:101:39: error: use of
> undeclared identifier 'IP_PKTINFO'
>   if (0 != setsockopt(fd, IPPROTO_IP, IP_PKTINFO, &get_local_ip,
>                                       ^
> 1 error generated.
> [C]       Compiling src/core/lib/iomgr/socket_utils_posix.c
> gmake[1]: *** [Makefile:2080:
> /usr/ports/net/rubygem-grpc/work/grpc-1.0.0/objs/opt/src/core/lib/iomgr/socket_utils_common_posix.o]
> Error 1
> gmake[1]: *** Waiting for unfinished jobs....
> [C]       Compiling src/core/lib/iomgr/socket_windows.c
> gmake[1]: Leaving directory '/usr/ports/net/rubygem-grpc/work/grpc-1.0.0'
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> *** Error code 1
> ===
> 
> This looks more familiar to typical linux/FreeBSD differences.
> 
> Is there anybody with advise/help out there to get this port run? GitLab
> has currently security issues and the update is needed to fix them.
> 
> Greetings,
> Torsten
> 
> 
> _______________________________________________
> freebsd-ruby at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ruby
> To unsubscribe, send any mail to "freebsd-ruby-unsubscribe at freebsd.org"
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 638 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ruby/attachments/20170627/d6788518/attachment.sig>


More information about the freebsd-ruby mailing list