Processed: Re: Bug#774818: unblock: mod-proxy-msrpc/0.5-2

2015-01-14 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 tags 774818 wontfix
Bug #774818 [release.debian.org] unblock: mod-proxy-msrpc/0.5-2
Added tag(s) wontfix.
 thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
774818: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774818
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-release-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.c.142126592526166.transcr...@bugs.debian.org



Bug#774818: unblock: mod-proxy-msrpc/0.5-2

2015-01-07 Thread Micha Lenk
Package: release.debian.org
Severity: normal
User: release.debian@packages.debian.org
Usertags: unblock

Please consider to unblock package mod-proxy-msrpc 0.5-2. This version adds
upsteam-big-endian-patch.diff to fix FTBFS #774285 on big endian architectures.

unblock mod-proxy-msrpc/0.5-2

Thanks for considering,
Micha
diffstat for mod-proxy-msrpc-0.5 mod-proxy-msrpc-0.5

 changelog  |   12 +
 control|2 
 patches/series |1 
 patches/upstream-big-endian-patch.diff |  381 +
 4 files changed, 395 insertions(+), 1 deletion(-)

diff -Nru mod-proxy-msrpc-0.5/debian/changelog mod-proxy-msrpc-0.5/debian/changelog
--- mod-proxy-msrpc-0.5/debian/changelog	2014-04-29 22:08:12.0 +0200
+++ mod-proxy-msrpc-0.5/debian/changelog	2015-01-07 23:07:19.0 +0100
@@ -1,3 +1,15 @@
+mod-proxy-msrpc (0.5-2) experimental; urgency=medium
+
+  * Upload to experimental because I don't know whether this change will
+get a freeze exception for Debian Jessie.
+  * Add patch upstream-big-endian-patch.diff to fix build on big endian
+architectures (closes: #774285). This essentially updates the source to
+upstream Git commit 03ed564ee88b1a35e830c4f141e178125010c265 (all changes
+since the release 0.5 were only related to big-endian support).
+  * Package is compliant to Debian Policy 3.9.6 (no changes needed).
+
+ -- Micha Lenk mi...@debian.org  Wed, 07 Jan 2015 22:48:39 +0100
+
 mod-proxy-msrpc (0.5-1) unstable; urgency=medium
 
   * New upstream version
diff -Nru mod-proxy-msrpc-0.5/debian/control mod-proxy-msrpc-0.5/debian/control
--- mod-proxy-msrpc-0.5/debian/control	2014-04-29 21:50:06.0 +0200
+++ mod-proxy-msrpc-0.5/debian/control	2015-01-07 23:07:12.0 +0100
@@ -5,7 +5,7 @@
 Build-Depends: debhelper (= 8.0.0), pkg-config,
  apache2-dev (= 2.4), uuid-dev,
  check, dh-autoreconf
-Standards-Version: 3.9.5
+Standards-Version: 3.9.6
 Homepage: https://github.com/bombadil/mod_proxy_msrpc
 Vcs-Git: https://github.com/bombadil/mod_proxy_msrpc.git -b debian/unstable
 Vcs-Browser: https://github.com/bombadil/mod_proxy_msrpc/tree/debian/unstable
diff -Nru mod-proxy-msrpc-0.5/debian/patches/series mod-proxy-msrpc-0.5/debian/patches/series
--- mod-proxy-msrpc-0.5/debian/patches/series	1970-01-01 01:00:00.0 +0100
+++ mod-proxy-msrpc-0.5/debian/patches/series	2015-01-07 22:47:46.0 +0100
@@ -0,0 +1 @@
+upstream-big-endian-patch.diff
diff -Nru mod-proxy-msrpc-0.5/debian/patches/upstream-big-endian-patch.diff mod-proxy-msrpc-0.5/debian/patches/upstream-big-endian-patch.diff
--- mod-proxy-msrpc-0.5/debian/patches/upstream-big-endian-patch.diff	1970-01-01 01:00:00.0 +0100
+++ mod-proxy-msrpc-0.5/debian/patches/upstream-big-endian-patch.diff	2015-01-07 22:46:54.0 +0100
@@ -0,0 +1,381 @@
+Author: Micha Lenk mi...@lenk.info
+Description: Add support for build on big-endian architectures
+ This essentially updates the source to upstream Git commit
+ 03ed564ee88b1a35e830c4f141e178125010c265 (all changes since the
+ release 0.5 were only related to big-endian support). 
+Origin: upstream, https://github.com/bombadil/mod_proxy_msrpc/commit/03ed564ee88b1a35e830c4f141e178125010c265
+Bug: https://github.com/bombadil/mod_proxy_msrpc/issues/18
+Bug-Debian: http://bugs.debian.org/774285
+
+--- mod-proxy-msrpc-0.5.orig/src/msrpc_pdu_parser.c
 mod-proxy-msrpc-0.5/src/msrpc_pdu_parser.c
+@@ -72,6 +72,8 @@ static const char const *msrpc_rts_pdu_c
+ NULL,
+ };
+ 
++#define MSRPC_PDU_IS_LITTLE_ENDIAN (pdu-data_representation == MSRPC_PDU_DATA_REPRESENTATION_LITTLE_ENDIAN)
++
+ apr_status_t msrpc_pdu_get_length(const char *buf, apr_size_t *length)
+ {
+ msrpc_pdu_t *pdu = (msrpc_pdu_t *)buf;
+@@ -81,7 +83,10 @@ apr_status_t msrpc_pdu_get_length(const
+ return APR_INCOMPLETE;
+ }
+ 
+-*length = pdu-frag_length;
++#ifdef DEBUG_MSRPC_PDU_PARSER
++printf(data representation: 0x%08x\n, (uint32_t)pdu-data_representation);
++#endif
++*length = MSRPC_PDU_IS_LITTLE_ENDIAN ? pdu-frag_length : swap_bytes_uint16_t(pdu-frag_length);
+ return APR_SUCCESS;
+ }
+ 
+@@ -110,11 +115,13 @@ apr_status_t msrpc_pdu_validate(const ch
+ if (error) *error = PDU type;
+ return APR_FROM_OS_ERROR(EBADMSG);
+ }
+-if (pdu-data_representation != 16) {
++if ((pdu-data_representation != MSRPC_PDU_DATA_REPRESENTATION_LITTLE_ENDIAN) 
++(pdu-data_representation != MSRPC_PDU_DATA_REPRESENTATION_BIG_ENDIAN)) {
+ if (error) *error = data representation;
+ return APR_FROM_OS_ERROR(EBADMSG);
+ }
+-if (pdu-frag_length % 4 != 0) {
++uint16_t frag_length = MSRPC_PDU_IS_LITTLE_ENDIAN ? pdu-frag_length : swap_bytes_uint16_t(pdu-frag_length);
++if (frag_length % 4 != 0) {
+ if (error) *error = unaligned length;
+ return APR_FROM_OS_ERROR(EBADMSG);
+ }
+@@ -130,18 +137,24 @@