[arch-commits] Commit in ejabberd/trunk (PKGBUILD deps-build-fix.patch)

Sergej Pupykin spupykin at archlinux.org
Tue Nov 3 17:03:48 UTC 2015


    Date: Tuesday, November 3, 2015 @ 18:03:47
  Author: spupykin
Revision: 145852

Added:
  ejabberd/trunk/deps-build-fix.patch
Modified:
  ejabberd/trunk/PKGBUILD

----------------------+
 PKGBUILD             |   94 +++++++++++++++++++++++++------------------------
 deps-build-fix.patch |   57 +++++++++++++++++++++++++++++
 2 files changed, 105 insertions(+), 46 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-11-03 16:53:41 UTC (rev 145851)
+++ PKGBUILD	2015-11-03 17:03:47 UTC (rev 145852)
@@ -3,9 +3,18 @@
 # Contributor: Jeff 'codemac' Mickey <jeff at archlinux.org>
 # Contributor: Alexander Rødseth <rodseth at gmail.com>
 
+#
+# cd deps ; ls -1 | while read g; do (test -d $g && cd $g && sh ../t.sh); done >qwe
+#
+# U=`grep 'url =' .git/config | cut -f2 -d= | tr -d ' '`
+# C=`git rev-parse HEAD`
+# N=`basename $(pwd)`
+# echo -e "\t\"$N::$U#commit=$C\""
+#
+
 pkgname=ejabberd
-pkgver=15.04
-pkgrel=2
+pkgver=15.10
+pkgrel=1
 pkgdesc="Jabber server written in Erlang"
 arch=('x86_64' 'i686')
 url="http://www.ejabberd.im/"
@@ -20,38 +29,37 @@
 replaces=('ejabberd-mod_mysql' 'ejabberd-mod_mysql-svn'
 	  'ejabberd-mod_pgsql' 'ejabberd-mod_pgsql-svn')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/processone/ejabberd/archive/$pkgver.tar.gz"
-	"p1_cache_tab::git://github.com/processone/cache_tab#commit=cca096330ce39e8b56fe0e0c478df1ff452e7751"
-	"p1_tls::git://github.com/processone/tls#commit=e231cbde546c2e2200f6dae01d13cf743d253c6d"
+	"elixir::git://github.com/elixir-lang/elixir#commit=1d9548fd285d243721b7eba71912bde2ffd1f6c3"
+	"eredis::git://github.com/wooga/eredis#commit=bf12ecb30253c84a2331f4f0d93fd68856fcb9f4"
+	"esip::git://github.com/processone/p1_sip#commit=d662d3fe7f6288b444ea321d854de0bd6d40e022"
+	"goldrush::git://github.com/DeadZen/goldrush.git#commit=64864ba7fcf40988361340e48680b49a2c2938cf"
+	"jiffy::git://github.com/davisp/jiffy#commit=cfc61a2e952dc3182e0f9b1473467563699992e2"
+	"lager::git://github.com/basho/lager#commit=4d2ec8c701e1fa2d386f92f2b83b23faf8608ac3"
+	"meck::git://github.com/eproxus/meck#commit=0845277398b8326f9dddddd9fc3cf73467ba6877"
+	"oauth2::git://github.com/prefiks/oauth2.git#commit=e6da9912e5d8f658e7e868f41a102d085bdbef59"
+	"p1_cache_tab::git://github.com/processone/cache_tab#commit=f7ea12b0ba962a3d2f9a406d2954cf7de4e27230"
+	"p1_iconv::git://github.com/processone/eiconv#commit=8b7542b1aaf0a851f335e464956956985af6d9a2"
+	"p1_mysql::git://github.com/processone/mysql#commit=dfa87da95f8fdb92e270741c2a53f796b682f918"
+	"p1_pam::git://github.com/processone/epam#commit=d3ce290b7da75d780a03e86e7a8198a80e9826a6"
+	"p1_pgsql::git://github.com/processone/pgsql#commit=e72c03c60bfcb56bbb5d259342021d9cb3581dac"
 	"p1_stringprep::git://github.com/processone/stringprep#commit=3c640237a3a7831dc39de6a6d329d3a9af25c579"
-	"p1_xml::git://github.com/processone/xml#commit=3db0b2f2b96c9fa2f601f96794cc6e8a480615b4"
-	"p1_yaml::git://github.com/processone/p1_yaml#commit=e1f081e1bbf34c35fc60c1b988d62a07fbead3e8"
-	"git://github.com/rds13/xmlrpc"
-	"p1_pam::git://github.com/processone/epam"
-	"p1_zlib::git://github.com/processone/zlib"
-	"git://github.com/basho/lager"
-	"p1_iconv::git://github.com/processone/eiconv"
-	"git://github.com/DeadZen/goldrush.git#tag=0.1.6"
-	"p1_mysql::git://github.com/processone/mysql.git"
-	"p1_pgsql::git://github.com/processone/pgsql.git"
-	"p1_stun::git://github.com/processone/stun#commit=d98c71e22492bd5cf95f6a3227de302ace0f70b3"
-	"git://github.com/davisp/jiffy"
-	"git://github.com/cmullaparthi/ibrowse"
-	"git://github.com/esl/lhttpc"
-	"git://github.com/eproxus/meck#tag=0.8.2"
-	"esip::git://github.com/processone/p1_sip#commit=a9b725df78ee44c0f118908eef07395654767d62"
-	"git://github.com/basho/riak_pb#tag=1.4.4.0"
-	"riakc::git://github.com/basho/riak-erlang-client#tag=1.4.2"
-	"protobuffs::git://github.com/basho/erlang_protobuffs.git"
-	"git://github.com/processone/p1_utils#commit=1bf99f9c8daed3b03f76e2714ca102c520c88b26"
-	"ehyperloglog::git://github.com/vaxelfel/eHyperLogLog.git#commit=efd14f262c663cde76d8ed48007826dabe9aca41"
-	"rebar_elixir_plugin::git://github.com/yrashk/rebar_elixir_plugin"
-	"elixir::git://github.com/elixir-lang/elixir#branch=v1.0"
-	"git://github.com/wooga/eredis"
-	"sqlite3::git://github.com/alexeyr/erlang-sqlite3"
+	"p1_stun::git://github.com/processone/stun#commit=061bdae484268cbf0457ad4797e74b8516df3ad1"
+	"p1_tls::git://github.com/processone/tls#commit=e56321afd974e9da33da913cd31beebc8e73e75f"
+	"p1_utils::git://github.com/processone/p1_utils#commit=d7800881e6702723ce58b7646b60c9e4cd25d563"
+	"p1_xml::git://github.com/processone/xml#commit=1c8b016b0ac7986efb823baf1682a43565449e65"
+	"p1_yaml::git://github.com/processone/p1_yaml#commit=79f756ba73a235c4d3836ec07b5f7f2b55f49638"
+	"p1_zlib::git://github.com/processone/zlib#commit=e3d4222b7aae616d7ef2e7e2fa0bbf451516c602"
+	"protobuffs::git://github.com/basho/erlang_protobuffs.git#commit=ec7e99f57f5bbcd91c56242091485d41bc78c3d4"
+	"rebar_elixir_plugin::git://github.com/yrashk/rebar_elixir_plugin#commit=7058379b7c7e017555647f6b9cecfd87cd50f884"
+	"riakc::git://github.com/basho/riak-erlang-client#commit=8d33c020f4ca392200b2d0d973c77dd48164b263"
+	"riak_pb::git://github.com/basho/riak_pb#commit=0353be3e04b971ac802acbd6b78d74589db2f6df"
+	"sqlite3::git://github.com/alexeyr/erlang-sqlite3#commit=8350dc603804c503f99c92bfd2eab1dd6885758e"
+	"xmlrpc::git://github.com/rds13/xmlrpc.git#commit=42e6e96a0fe7106830274feed915125feb1056f3"
 	"$pkgname.logrotate"
 	"ejabberd.service"
-	"sysuser.conf")
-md5sums=('f9d047866033ee6af04de7dcd25a33ab'
+	"sysuser.conf"
+	"deps-build-fix.patch")
+md5sums=('0033e3b8fa8ab5d341893cecb6818cd5'
          'SKIP'
          'SKIP'
          'SKIP'
@@ -78,30 +86,24 @@
          'SKIP'
          'SKIP'
          'SKIP'
-         'SKIP'
-         'SKIP'
          'f97c8a96160f30e0aecc9526c12e6606'
          'a437aff9d7d477fb036d527205617e18'
-         '458fc41be4adb9554a53b8f9ae05fbee')
+         '458fc41be4adb9554a53b8f9ae05fbee'
+         '9ac450a7b81bbef95990aaa2365587fb')
 
 prepare() {
   cd "$srcdir/$pkgname-$pkgver"
 
   mkdir -p "$srcdir/$pkgname-$pkgver/deps"
-  for i in goldrush lager p1_cache_tab p1_iconv p1_pam \
-           p1_stringprep p1_tls p1_xml p1_yaml p1_zlib xmlrpc \
-           p1_mysql p1_pgsql p1_stun jiffy ibrowse lhttpc \
-           meck esip riak_pb riakc p1_utils protobuffs \
-           ehyperloglog rebar_elixir_plugin elixir eredis \
-           sqlite3; do
+  for i in elixir eredis esip goldrush jiffy lager meck oauth2 p1_cache_tab \
+	p1_iconv p1_mysql p1_pam p1_pgsql p1_stringprep p1_stun p1_tls p1_utils \
+	p1_xml p1_yaml p1_zlib protobuffs rebar_elixir_plugin riakc riak_pb \
+	sqlite3 xmlrpc; do
     rm -rf "$srcdir/$pkgname-$pkgver/deps/$i"
     mv $srcdir/$i "$srcdir/$pkgname-$pkgver/deps"
   done
 
-  pushd deps/lhttpc/src/
-  mv lhttpc.app.src lhttpc.app.src.bak
-  cat lhttpc.app.src.bak | iconv -f utf8 -c >lhttpc.app.src
-  popd
+  (cd deps && patch -p1 <$srcdir/deps-build-fix.patch)
 }
 
 build() {
@@ -109,8 +111,8 @@
   [ -x configure ] || ./autogen.sh
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
     --enable-all
-  make debug=true
-  make -C doc
+  make
+#  make -C doc
 }
 
 package() {

Added: deps-build-fix.patch
===================================================================
--- deps-build-fix.patch	                        (rev 0)
+++ deps-build-fix.patch	2015-11-03 17:03:47 UTC (rev 145852)
@@ -0,0 +1,57 @@
+diff --git a/riakc/src/riakc_obj.erl b/riakc/src/riakc_obj.erl
+index 8086533..c95fdcf 100644
+--- a/riakc/src/riakc_obj.erl
++++ b/riakc/src/riakc_obj.erl
+@@ -79,7 +79,7 @@
+ -type key() :: binary() | 'undefined'. %% A key name
+ -type id() :: {bucket(), key()}.
+ -type vclock() :: binary(). %% An opaque vector clock
+--type metadata() :: dict(). %% Value metadata
++-type metadata() :: dict:dict(). %% Value metadata
+ -type content_type() :: string(). %% The media type of a value
+ -type value() :: binary(). %% An opaque value
+ -type contents() :: [{metadata(), value()}]. %% All metadata/value pairs in a `riakc_obj'.
+@@ -103,7 +103,7 @@
+           key :: key(),
+           vclock :: vclock(),
+           contents :: contents(),
+-          updatemetadata :: dict(),
++          updatemetadata :: dict:dict(),
+           updatevalue :: value()
+          }).
+ 
+@@ -284,7 +284,7 @@ get_update_value(#riakc_obj{updatevalue=UV}=Object) ->
+     end.
+ 
+ %% @doc  Return the content type from metadata
+--spec md_ctype(dict()) -> undefined | content_type().
++-spec md_ctype(dict:dict()) -> undefined | content_type().
+ md_ctype(MetaData) ->
+     case dict:find(?MD_CTYPE, MetaData) of
+         error ->
+diff --git a/riakc/src/riakc_pb_socket.erl b/riakc/src/riakc_pb_socket.erl
+index 77d27eb..4eb043f 100644
+--- a/riakc/src/riakc_pb_socket.erl
++++ b/riakc/src/riakc_pb_socket.erl
+@@ -117,7 +117,7 @@
+                 queue_if_disconnected = false :: boolean(), % if true, add requests to queue if disconnected
+                 sock :: port(),       % gen_tcp socket
+                 active :: #request{} | undefined,     % active request
+-                queue :: queue() | undefined,      % queue of pending requests
++                queue :: queue:queue() | undefined,      % queue of pending requests
+                 connects=0 :: non_neg_integer(), % number of successful connects
+                 failed=[] :: [connection_failure()],  % breakdown of failed connects
+                 connect_timeout=infinity :: timeout(), % timeout of TCP connection
+diff --git a/riak_pb/src/riak_pb_kv_codec.erl b/riak_pb/src/riak_pb_kv_codec.erl
+index c95fde6..0bcab88 100644
+--- a/riak_pb/src/riak_pb_kv_codec.erl
++++ b/riak_pb/src/riak_pb_kv_codec.erl
+@@ -49,7 +49,7 @@
+ 
+ -type symbolic_quorum() :: one | quorum | all | default.
+ -type value() :: binary().
+--type metadata() :: dict().
++-type metadata() :: dict:dict().
+ -type contents() :: [{metadata(), value()}].
+ 
+ %% @doc Convert a list of object {MetaData,Value} pairs to protocol



More information about the arch-commits mailing list