Help needed: net/rubygem-grpc

Torsten Zuehlsdorff tz at FreeBSD.org
Mon Jun 19 09:56:28 UTC 2017


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
-------------- next part --------------
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	rubygem-grpc/
#	rubygem-grpc/distinfo
#	rubygem-grpc/Makefile
#	rubygem-grpc/pkg-descr
#
echo c - rubygem-grpc/
mkdir -p rubygem-grpc/ > /dev/null 2>&1
echo x - rubygem-grpc/distinfo
sed 's/^X//' >rubygem-grpc/distinfo << '2d532f1709f8f378a9a4a334b0766668'
XTIMESTAMP = 1497439725
XSHA256 (rubygem/grpc-1.0.0.gem) = c4f908bdd1629bb56fa516bb5ed442187758853f285f31a805b2b940584c6835
XSIZE (rubygem/grpc-1.0.0.gem) = 2291712
2d532f1709f8f378a9a4a334b0766668
echo x - rubygem-grpc/Makefile
sed 's/^X//' >rubygem-grpc/Makefile << '20ba66e1f049c3d5d5dacedc2a057cc5'
X# $FreeBSD$
X
XPORTNAME=	grpc
XPORTVERSION=	1.0.0
XCATEGORIES=	net rubygems
XMASTER_SITES=	RG
X
XMAINTAINER=	tz at FreeBSD.org
XCOMMENT=	Ruby implementation of gRPC
X
XLICENSE=	BSD3CLAUSE
X
XMAKE_JOBS_UNSAFE=yes
X
XRUN_DEPENDS= grpc>=0:devel/grpc \
X		rubygem-googleauth>=0.5.1:security/rubygem-googleauth \
X		rubygem-google-protobuf>=3.0:devel/rubygem-google-protobuf
X
XNO_ARCH=	yes
XUSE_RUBY=	yes
XUSES=		gem
X
X.include <bsd.port.mk>
20ba66e1f049c3d5d5dacedc2a057cc5
echo x - rubygem-grpc/pkg-descr
sed 's/^X//' >rubygem-grpc/pkg-descr << 'c0598ba2d5eca2594d23caf7882e7efa'
XA Ruby implementation of gRPC.
X
XWWW: https://github.com/grpc/grpc/tree/master/src/ruby
c0598ba2d5eca2594d23caf7882e7efa
exit



More information about the freebsd-ruby mailing list