summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspz <spz>2016-06-11 18:31:02 +0000
committerspz <spz>2016-06-11 18:31:02 +0000
commitf68260147f505b4f87d46b44711eb2d5b1828c64 (patch)
tree249486f6afe47ddc3432c43b6868a7dae261bd1d
parent019a629788d8e67c118634df6c8427d430338e10 (diff)
downloadpkgsrc-f68260147f505b4f87d46b44711eb2d5b1828c64.tar.gz
Pullup ticket #5039 - requested by taca
devel/libthrift: build fix Revisions pulled up: - devel/libthrift/distinfo 1.12-1.14 - devel/libthrift/options.mk 1.8 - devel/libthrift/patches/patch-lib__rb__setup.rb 1.2 - devel/libthrift/patches/patch-lib_rb_Makefile.in 1.1 ------------------------------------------------------------------- Module Name: pkgsrc Committed By: taca Date: Mon May 30 09:22:58 UTC 2016 Modified Files: pkgsrc/devel/libthrift: distinfo pkgsrc/devel/libthrift/patches: patch-lib__rb__setup.rb Log Message: Fix build problem with Ruby 2.2 and later. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/libthrift/distinfo cvs rdiff -u -r1.1 -r1.2 \ pkgsrc/devel/libthrift/patches/patch-lib__rb__setup.rb ------------------------------------------------------------------- Module Name: pkgsrc Committed By: taca Date: Mon May 30 16:03:13 UTC 2016 Modified Files: pkgsrc/devel/libthrift: distinfo options.mk Added Files: pkgsrc/devel/libthrift/patches: patch-lib_rb_Makefile.in Log Message: More build fixes: * Explict specify ruby's path to avoid path in WRKDIR. * Do not build again on install stage to fix rpath problem. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 pkgsrc/devel/libthrift/distinfo cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/libthrift/options.mk cvs rdiff -u -r0 -r1.1 \ pkgsrc/devel/libthrift/patches/patch-lib_rb_Makefile.in ------------------------------------------------------------------- Module Name: pkgsrc Committed By: taca Date: Mon May 30 16:09:07 UTC 2016 Modified Files: pkgsrc/devel/libthrift: distinfo Log Message: Update distinfo. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/libthrift/distinfo
-rw-r--r--devel/libthrift/distinfo5
-rw-r--r--devel/libthrift/options.mk3
-rw-r--r--devel/libthrift/patches/patch-lib__rb__setup.rb25
-rw-r--r--devel/libthrift/patches/patch-lib_rb_Makefile.in28
4 files changed, 56 insertions, 5 deletions
diff --git a/devel/libthrift/distinfo b/devel/libthrift/distinfo
index 39916fb564e..833332cbbd6 100644
--- a/devel/libthrift/distinfo
+++ b/devel/libthrift/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2015/11/03 03:27:45 agc Exp $
+$NetBSD: distinfo,v 1.11.4.1 2016/06/11 18:31:02 spz Exp $
SHA1 (thrift-0.7.0.tar.gz) = b8f6877bc75878984355da4efe171ad99ff05b6a
RMD160 (thrift-0.7.0.tar.gz) = d9db8ff077347134101cd017e086511c4317b052
@@ -8,7 +8,7 @@ SHA1 (patch-ac) = 84032447dc90b7071d8f54fc56dd30584fbc8116
SHA1 (patch-compiler_cpp_src_generate_t__rb__generator.cc) = 1b2e71c38fdf3211be65bc199f348fcbadfe805c
SHA1 (patch-compiler_cpp_src_thrifty.yy) = 69ccc48794edf8358ab39950794e1c542641fb3f
SHA1 (patch-lib__rb__ext__extconf.rb) = 627725567f6d78070e28d430ebe7ac96910df8ec
-SHA1 (patch-lib__rb__setup.rb) = 4e08bb4c0828306ee2391f5d5760e74a5df30a73
+SHA1 (patch-lib__rb__setup.rb) = 9b189208c01a654ff633756d8800fb327ba7a9b7
SHA1 (patch-lib_cpp_src_async_TAsyncBufferProcessor.h) = 2387b52d1dcd01637bd0853743ede85dd4a3357b
SHA1 (patch-lib_cpp_src_async_TAsyncChannel.cpp) = dd3d65fd83f6ab4ebbc81f7e6ea98b05ef13592e
SHA1 (patch-lib_cpp_src_async_TAsyncChannel.h) = 6a9e25f84d9d1d8b1192c5f3b059ea7a39c8396a
@@ -24,3 +24,4 @@ SHA1 (patch-lib_cpp_src_transport_TServerSocket.cpp) = dc54a0991f5918de04da73f18
SHA1 (patch-lib_cpp_test_Benchmark.cpp) = 65a3a873b33f7290551c535b4ef8c9a109aae3e1
SHA1 (patch-lib_erl_Makefile.in) = 74bfbc9f191f685cb175801a495ae4af0eaa6e69
SHA1 (patch-lib_php_src_ext_thrift__protocol_php__thrift__protocol.cpp) = 6c1f1add0bfc652662efa59fc47d15e91a4d6a2b
+SHA1 (patch-lib_rb_Makefile.in) = 4478e76bafded2725ad1146bfc6d3e5855f37d41
diff --git a/devel/libthrift/options.mk b/devel/libthrift/options.mk
index 507e6b4a279..7df74aef1be 100644
--- a/devel/libthrift/options.mk
+++ b/devel/libthrift/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.7 2013/07/03 15:58:02 jperkin Exp $
+# $NetBSD: options.mk,v 1.7.22.1 2016/06/11 18:31:02 spz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libthrift
PKG_SUPPORTED_OPTIONS= csharp java erlang python perl php ruby
@@ -93,6 +93,7 @@ CONFIGURE_ARGS+= --without-php_extension
.if !empty(PKG_OPTIONS:Mruby)
CONFIGURE_ARGS+= --with-ruby
CONFIGURE_ARGS+= --enable-gen-rb
+CONFIGURE_ENV+= ac_cv_path_RUBY=${RUBY}
PLIST.ruby= yes
.include "../../lang/ruby/buildlink3.mk"
diff --git a/devel/libthrift/patches/patch-lib__rb__setup.rb b/devel/libthrift/patches/patch-lib__rb__setup.rb
index 6e869818f97..b3fda308953 100644
--- a/devel/libthrift/patches/patch-lib__rb__setup.rb
+++ b/devel/libthrift/patches/patch-lib__rb__setup.rb
@@ -1,7 +1,11 @@
-$NetBSD: patch-lib__rb__setup.rb,v 1.1 2011/06/03 13:39:45 fhajny Exp $
+$NetBSD: patch-lib__rb__setup.rb,v 1.1.40.1 2016/06/11 18:31:02 spz Exp $
+
+* Changes for pkgsrc.
+* Remove duplicate 'bin-dir' key.
+* Do not use obsolete Config::CONFIG but RbConfig::CONFIG.
pkgsrc prefers vendor Ruby dirs.
---- lib/rb/setup.rb.orig 2011-01-31 01:13:14.000000000 +0000
+--- lib/rb/setup.rb.orig 2011-08-11 13:19:12.000000000 +0000
+++ lib/rb/setup.rb
@@ -165,9 +165,9 @@ class ConfigTable
libruby = "#{c['prefix']}/lib/ruby"
@@ -16,3 +20,20 @@ pkgsrc prefers vendor Ruby dirs.
elsif newpath_p
# 1.4.4 <= V <= 1.6.3
libruby = "#{c['prefix']}/lib/ruby"
+@@ -281,7 +281,6 @@ class ConfigTable
+ 'site-ruby-common' => 'siteruby', # For backward compatibility
+ 'site-ruby' => 'siterubyver', # For backward compatibility
+ 'bin-dir' => 'bindir',
+- 'bin-dir' => 'bindir',
+ 'rb-dir' => 'rbdir',
+ 'so-dir' => 'sodir',
+ 'data-dir' => 'datadir',
+@@ -785,7 +784,7 @@ class ToplevelInstaller
+ else
+ require 'rbconfig'
+ end
+- ::Config::CONFIG
++ ::RbConfig::CONFIG
+ end
+
+ def initialize(ardir_root, config)
diff --git a/devel/libthrift/patches/patch-lib_rb_Makefile.in b/devel/libthrift/patches/patch-lib_rb_Makefile.in
new file mode 100644
index 00000000000..b0c6b59c4c1
--- /dev/null
+++ b/devel/libthrift/patches/patch-lib_rb_Makefile.in
@@ -0,0 +1,28 @@
+$NetBSD: patch-lib_rb_Makefile.in,v 1.1.2.2 2016/06/11 18:31:02 spz Exp $
+
+* Avoid to build again on install stage.
+
+--- lib/rb/Makefile.in.orig 2011-08-11 13:19:12.000000000 +0000
++++ lib/rb/Makefile.in
+@@ -70,6 +70,7 @@ am__configure_deps = $(am__aclocal_m4_de
+ mkinstalldirs = $(install_sh) -d
+ CONFIG_HEADER = $(top_builddir)/config.h
+ CONFIG_CLEAN_FILES =
++CONFIG_STAMP = config.done
+ SOURCES =
+ DIST_SOURCES =
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+@@ -493,9 +494,12 @@ uninstall-am: uninstall-info-am
+
+ DESTDIR ?= /
+
+-all-local:
++all-local: ${CONFIG_STAMP}
++
++${CONFIG_STAMP}:
+ if [ -n "$(RUBY_PREFIX)" ] ; then $(RUBY) setup.rb config --prefix=$(DESTDIR)$(RUBY_PREFIX) --rbdir='$$libdir/ruby' --sodir='$$libdir/ruby' ; elif [ -n "$(DESTDIR)" ] ; then $(RUBY) setup.rb config --prefix=$(DESTDIR) ; else $(RUBY) setup.rb config ; fi
+ $(RUBY) setup.rb setup
++ touch $@
+
+ install-exec-hook:
+ $(RUBY) setup.rb install --prefix=$(DESTDIR)