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

Sergej Pupykin spupykin at archlinux.org
Thu Jan 14 12:21:44 UTC 2016


    Date: Thursday, January 14, 2016 @ 13:21:44
  Author: spupykin
Revision: 156431

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

----------------------+
 PKGBUILD             |   89 +++++++++++++++++++++++--------------------------
 deps-build-fix.patch |   57 -------------------------------
 2 files changed, 43 insertions(+), 103 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-01-14 10:16:59 UTC (rev 156430)
+++ PKGBUILD	2016-01-14 12:21:44 UTC (rev 156431)
@@ -13,7 +13,7 @@
 #
 
 pkgname=ejabberd
-pkgver=15.11
+pkgver=16.01
 pkgrel=1
 pkgdesc="Jabber server written in Erlang"
 arch=('x86_64' 'i686')
@@ -29,37 +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"
-	"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"
+	"cache_tab::git://github.com/processone/cache_tab#commit=26caea06c72c2117ca54d04beedb5b49a45af1a8"
+	"elixir::git://github.com/elixir-lang/elixir#commit=f2a9c7016633ca63541a8160c63a53eb7edbccdb"
+	"eredis::git://github.com/wooga/eredis#commit=cbc013f516e464706493c01662e5e9dd82d1db01"
+	"esip::git://github.com/processone/p1_sip#commit=ff3cc9fa2f9ea96f47e6b5b60a04da90889a5626"
 	"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_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"
+	"hamcrest::git://github.com/hyperthunk/hamcrest-erlang#commit=908a24fda4a46776a5135db60ca071e3d783f9f6"
+	"jiffy::git://github.com/davisp/jiffy#commit=e43ea64ae0d227af5dd003132234cdf4494d781d"
+	"lager::git://github.com/basho/lager#commit=599dda6786a81200e00b3d9b4b36951e052727a3"
+	"meck::git://github.com/eproxus/meck#commit=dde759050eff19a1a80fd854d7375174b191665d"
+	"oauth2::git://github.com/kivra/oauth2#commit=8d129fbf8866930b4ffa6dd84e65bd2b32b9acb8"
+	"p1_iconv::git://github.com/processone/eiconv#commit=9751f86baa5a60ed1420490793e7514a0757462a"
+	"p1_mysql::git://github.com/processone/mysql#commit=064948ad3c77e582d85cbc09ccd11016ae97de0e"
+	"p1_pam::git://github.com/processone/epam#commit=f0d6588f4733c4d8068af44cf51c966af8bf514a"
+	"p1_pgsql::git://github.com/processone/pgsql#commit=248b6903cad82c748dc7f5be75e014dd8d47a3d1"
+	"p1_stringprep::git://github.com/processone/stringprep#commit=7315a75360547cd6458b144a65ede64b44c6193d"
+	"p1_stun::git://github.com/processone/stun#commit=ab418dfb11bd9b37d6f7501420f32384729fecd7"
+	"p1_tls::git://github.com/processone/tls#commit=f19e1f701e0a3980ffc70b3917c4aa85e68d8520"
+	"p1_utils::git://github.com/processone/p1_utils#commit=e6779f1ee7a0841da08a063930d7ea51c2be4203"
+	"p1_xml::git://github.com/processone/xml#commit=1190214326c70101db26809b61c2d30133c940b1"
+	"p1_yaml::git://github.com/processone/p1_yaml#commit=753f99c39200705bb7ccb6f38f7f10aeb45c0ea4"
+	"p1_zlib::git://github.com/processone/zlib#commit=e1f928e61553cf85638eaac7d024c8f68ce0ff36"
+	"protobuffs::git://github.com/basho/erlang_protobuffs.git#commit=a1eeee77aef639a33cc5a2dd7abed7e4f4b83f9b"
+	"rebar_elixir_plugin::git://github.com/processone/rebar_elixir_plugin#commit=10614dfef5d10b7071f7181858149259e50159f6"
+	"riakc::git://github.com/basho/riak-erlang-client#commit=527722d12d0433b837cdb92a60900c2cb5df8942"
+	"riak_pb::git://github.com/basho/riak_pb#commit=eacf4404625de69f7b3908cebd8efe416d9598b0"
+	"sqlite3::git://github.com/alexeyr/erlang-sqlite3#commit=cbc3505f7a131254265d3ef56191b2581b8cc172"
+	"xmlrpc::git://github.com/rds13/xmlrpc#commit=9cd92b219ad97869d9da19ee4ea25ba1a40aea98"
 	"$pkgname.logrotate"
 	"ejabberd.service"
-	"sysuser.conf"
-	"deps-build-fix.patch")
-md5sums=('6e24541cc1526d1eee59c238c77c19c1'
+	"sysuser.conf")
+md5sums=('ef7bd609e06aea11a7abb6a178016b7e'
          'SKIP'
          'SKIP'
          'SKIP'
@@ -86,55 +86,52 @@
          'SKIP'
          'SKIP'
          'SKIP'
+         'SKIP'
          'f97c8a96160f30e0aecc9526c12e6606'
          'a437aff9d7d477fb036d527205617e18'
-         '458fc41be4adb9554a53b8f9ae05fbee'
-         '9ac450a7b81bbef95990aaa2365587fb')
+         '458fc41be4adb9554a53b8f9ae05fbee')
 
 prepare() {
   cd "$srcdir/$pkgname-$pkgver"
 
   mkdir -p "$srcdir/$pkgname-$pkgver/deps"
-  for i in elixir eredis esip goldrush jiffy lager meck oauth2 p1_cache_tab \
+  for i in elixir eredis esip goldrush jiffy lager meck oauth2 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
+	sqlite3 xmlrpc hamcrest; do
     rm -rf "$srcdir/$pkgname-$pkgver/deps/$i"
     mv $srcdir/$i "$srcdir/$pkgname-$pkgver/deps"
   done
 
-  (cd deps && patch -p1 <$srcdir/deps-build-fix.patch)
+  sed -i "s|git describe --tags 2>/dev/null|echo $pkgver|" configure.ac
 }
 
 build() {
   cd "$srcdir/$pkgname-$pkgver"
   [ -x configure ] || ./autogen.sh
-  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+  ./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --sbindir=/usr/bin \
+    --localstatedir=/var \
     --enable-all
   make
-#  make -C doc
 }
 
 package() {
   cd "$srcdir/$pkgname-$pkgver"
-
-  # make install workaround
-  rm -f deps/sqlite3/include/sqlite3.hrl
-
   make DESTDIR="$pkgdir" install
 
-  install -Dm04750 deps/p1_pam/priv/bin/epam $pkgdir/usr/lib/ejabberd/priv/bin/epam
+  install -Dm04750 deps/p1_pam/priv/bin/epam $pkgdir/usr/lib/ejabberd-$pkgver/priv/bin/epam
   install -d "$pkgdir/var/lib/$pkgname"
   install -D -m0644 "$srcdir/$pkgname.logrotate" "$pkgdir/etc/logrotate.d/$pkgname"
   chmod ug+r "$pkgdir/etc/$pkgname/"*
-  mkdir -p $pkgdir/usr/bin
-  mv $pkgdir/usr/sbin/ejabberdctl $pkgdir/usr/bin/ejabberdctl
-  chmod a+rx "$pkgdir/usr/bin/ejabberdctl" "$pkgdir/usr/lib/ejabberd/priv/bin/captcha.sh"
-  rm -rf "$pkgdir/var/lock" "$pkgdir/usr/sbin"
+  chmod a+rx "$pkgdir/usr/bin/ejabberdctl" "$pkgdir/usr/lib/ejabberd-$pkgver/priv/bin/captcha.sh"
+  rm -rf "$pkgdir/var/lock"
   install -Dm0644 $srcdir/ejabberd.service $pkgdir/usr/lib/systemd/system/ejabberd.service
   install -Dm644 $srcdir/sysuser.conf "$pkgdir"/usr/lib/sysusers.d/ejabberd.conf
   # workaround
-  ln -s mod_configure.beam $pkgdir/usr/lib/ejabberd/ebin/configure.beam
+  ln -s mod_configure.beam $pkgdir/usr/lib/ejabberd-$pkgver/ebin/configure.beam
   rm -f $pkgdir/usr/bin/{elixir,iex,mix}
 }
 

Deleted: deps-build-fix.patch
===================================================================
--- deps-build-fix.patch	2016-01-14 10:16:59 UTC (rev 156430)
+++ deps-build-fix.patch	2016-01-14 12:21:44 UTC (rev 156431)
@@ -1,57 +0,0 @@
-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