Package: pion
Version: 5.0.4+dfsg-1
Severity: important
Tags: patch upstream
Justification: fails to build from source
pion fails to build from sources on big endian architectures due to
testsuite failure in the SPDY tests. This is actually due to a bug in
the testsuite, which assumes that an uint16_t value can be converted to
a char * value the same way on little and big endian.
The patch below fixes the problem by using a const unsigned char [] type
to define the frame, as it is done for other frames in
spdy_parser_tests_data.inc.
--- pion-5.0.4+dfsg.orig/tests/spdy_parser_tests.cpp
+++ pion-5.0.4+dfsg/tests/spdy_parser_tests.cpp
@@ -36,11 +36,11 @@ BOOST_FIXTURE_TEST_SUITE(parser_S, parse
BOOST_AUTO_TEST_CASE(test_is_spdy_frame_methods)
{
// Try with a invalid SPDY frame
- boost::uint16_t sample_frame = 0xFF;
+ const unsigned char sample_frame[] = { 0xff, 0x00 };
boost::system::error_code ec;
- BOOST_CHECK_EQUAL(parser::get_spdy_frame_type((const char
*)&(sample_frame)), spdy_invalid_frame);
- BOOST_CHECK_EQUAL(parser::is_spdy_control_frame((const char
*)&(sample_frame)), false);
+ BOOST_CHECK_EQUAL(parser::get_spdy_frame_type((const char *)sample_frame),
spdy_invalid_frame);
+ BOOST_CHECK_EQUAL(parser::is_spdy_control_frame((const char
*)sample_frame), false);
// Try with valid SPDY Frames
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: mips (mips64)
Kernel: Linux 3.2.0-4-5kc-malta
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]