On Fri, 7 Jul 2017 12:44:15 +0530 Pirate Praveen <prav...@debian.org> wrote: > It > would be great if grpc package could also build ruby-grpc binary.
Attaching the debdiff to build ruby-grpc. I think it would be a good idea to maintain it in collab-maint.
diff -Nru grpc-1.3.2/debian/changelog grpc-1.3.2/debian/changelog --- grpc-1.3.2/debian/changelog 2017-06-01 21:41:56.000000000 +0530 +++ grpc-1.3.2/debian/changelog 2017-07-10 00:46:41.000000000 +0530 @@ -1,3 +1,10 @@ +grpc (1.3.2-0.3) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Add ruby-grpc package + + -- Pirate Praveen <prav...@debian.org> Mon, 10 Jul 2017 00:46:41 +0530 + grpc (1.3.2-0.2) unstable; urgency=medium * Non-maintainer upload. diff -Nru grpc-1.3.2/debian/control grpc-1.3.2/debian/control --- grpc-1.3.2/debian/control 2017-05-18 21:54:27.000000000 +0530 +++ grpc-1.3.2/debian/control 2017-07-10 00:46:41.000000000 +0530 @@ -2,12 +2,28 @@ Priority: optional Maintainer: gRPC Package Maintainers <grpc-packa...@google.com> Uploaders: Andrew Pollock <apoll...@debian.org>, Laszlo Boszormenyi (GCS) <g...@debian.org> -Build-Depends: debhelper (>= 9), zlib1g-dev, libssl-dev, libprotobuf-dev, protobuf-compiler, libgflags-dev, libgtest-dev, libgoogle-perftools-dev, python, libprotoc-dev, libc-ares-dev +Build-Depends: debhelper (>= 9), zlib1g-dev, libssl-dev, libprotobuf-dev, protobuf-compiler, libgflags-dev, libgtest-dev, libgoogle-perftools-dev, python, libprotoc-dev, libc-ares-dev, gem2deb Standards-Version: 3.9.8 Section: libs Homepage: http://www.grpc.io/ Vcs-Git: https://github.com/grpc/grpc.git Vcs-Browser: https://github.com/grpc/grpc +XS-Ruby-Versions: all + +Package: ruby-grpc +Architecture: any +XB-Ruby-Versions: ${ruby:Versions} +Depends: ruby | ruby-interpreter, + ruby-google-protobuf (>= 3.1), + ruby-googleauth (>= 0.5.1), + ${misc:Depends}, + ${shlibs:Depends} +Description: GRPC system in Ruby + Send RPCs from Ruby using GRPC. + . + GRPC is a modern, open source remote procedure call (RPC) framework that can + run anywhere. It enables client and server applications to communicate + transparently, and makes it easier to build connected systems. Package: libgrpc-dev Section: libdevel @@ -61,3 +77,4 @@ . This package provides the plugins needed for compiling gRPC service definitions with the protobuf compiler. + diff -Nru grpc-1.3.2/debian/patches/no-embed-libs.patch grpc-1.3.2/debian/patches/no-embed-libs.patch --- grpc-1.3.2/debian/patches/no-embed-libs.patch 1970-01-01 05:30:00.000000000 +0530 +++ grpc-1.3.2/debian/patches/no-embed-libs.patch 2017-07-09 21:48:53.000000000 +0530 @@ -0,0 +1,15 @@ +--- a/src/ruby/ext/grpc/extconf.rb ++++ b/src/ruby/ext/grpc/extconf.rb +@@ -69,9 +69,9 @@ + + ENV['AR'] = 'libtool -o' if RUBY_PLATFORM =~ /darwin/ + +-ENV['EMBED_OPENSSL'] = 'true' +-ENV['EMBED_ZLIB'] = 'true' +-ENV['EMBED_CARES'] = 'true' ++ENV['EMBED_OPENSSL'] = 'false' ++ENV['EMBED_ZLIB'] = 'false' ++ENV['EMBED_CARES'] = 'false' + ENV['ARCH_FLAGS'] = RbConfig::CONFIG['ARCH_FLAG'] + ENV['ARCH_FLAGS'] = '-arch i386 -arch x86_64' if RUBY_PLATFORM =~ /darwin/ + ENV['CFLAGS'] = '-DGPR_BACKWARDS_COMPATIBILITY_MODE' diff -Nru grpc-1.3.2/debian/patches/series grpc-1.3.2/debian/patches/series --- grpc-1.3.2/debian/patches/series 2017-04-28 23:01:13.000000000 +0530 +++ grpc-1.3.2/debian/patches/series 2017-07-09 21:48:37.000000000 +0530 @@ -3,3 +3,4 @@ unvendor-zlib.diff fix-libgrpc++-soname.diff make-pkg-config-files-nonexecutable.diff +no-embed-libs.patch diff -Nru grpc-1.3.2/debian/rules grpc-1.3.2/debian/rules --- grpc-1.3.2/debian/rules 2017-04-26 23:21:56.000000000 +0530 +++ grpc-1.3.2/debian/rules 2017-07-10 00:05:31.000000000 +0530 @@ -14,8 +14,11 @@ # package maintainers to append LDFLAGS #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +export GEM2DEB_TEST_RUNNER = --check-dependencies + override_dh_auto_build: make shared prefix=/usr + dh_auto_build -O--buildsystem=ruby override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) @@ -24,6 +27,13 @@ override_dh_auto_install: make install prefix=$(CURDIR)/debian/tmp/usr + dh_auto_install -O--buildsystem=ruby + +override_dh_auto_clean: + dh_auto_clean + dh_auto_clean -O--buildsystem=ruby + rm -rf src/ruby/ext/grpc/objs/ + rm -f src/ruby/ext/grpc/libs/opt/libgrpc.a %: dh $@ --parallel
signature.asc
Description: OpenPGP digital signature