summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/Net-Jabber')
-rw-r--r--dev-perl/Net-Jabber/Net-Jabber-2.0.0-r2.ebuild26
-rw-r--r--dev-perl/Net-Jabber/files/Net-Jabber-2.0-hash.patch19
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-perl/Net-Jabber/Net-Jabber-2.0.0-r2.ebuild b/dev-perl/Net-Jabber/Net-Jabber-2.0.0-r2.ebuild
new file mode 100644
index 000000000000..196dd0b47c8c
--- /dev/null
+++ b/dev-perl/Net-Jabber/Net-Jabber-2.0.0-r2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=REATMON
+DIST_VERSION=2.0
+inherit perl-module
+
+DESCRIPTION="Jabber Perl library"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="
+ dev-perl/XML-Stream
+ dev-perl/Net-XMPP
+ dev-perl/Digest-SHA1
+"
+BDEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.0-no-dot-inc.patch"
+ "${FILESDIR}/${PN}-2.0-hash.patch"
+)
diff --git a/dev-perl/Net-Jabber/files/Net-Jabber-2.0-hash.patch b/dev-perl/Net-Jabber/files/Net-Jabber-2.0-hash.patch
new file mode 100644
index 000000000000..597aa8dcd56c
--- /dev/null
+++ b/dev-perl/Net-Jabber/files/Net-Jabber-2.0-hash.patch
@@ -0,0 +1,19 @@
+Description: feed hash to RPCEncode_Value() sorted
+Origin: vendor
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=87436
+Bug-Debian: https://bugs.debian.org/720271
+Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=87436
+Author: gregor herrmann <gregoa@debian.org>
+Last-Update: 2014-07-26
+
+--- a/lib/Net/Jabber/Protocol.pm
++++ b/lib/Net/Jabber/Protocol.pm
+@@ -2239,7 +2239,7 @@
+ elsif (ref($value) eq "HASH")
+ {
+ my $struct = $obj->AddValue()->AddStruct();
+- foreach my $key (keys(%{$value}))
++ foreach my $key (sort keys(%{$value}))
+ {
+ $self->RPCEncode_Value($struct->AddMember(name=>$key),$value->{$key});
+ }