Hello community, here is the log from the commit of package python-distorm3 for openSUSE:Factory checked in at 2018-11-12 09:42:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-distorm3 (Old) and /work/SRC/openSUSE:Factory/.python-distorm3.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-distorm3" Mon Nov 12 09:42:02 2018 rev:14 rq:647595 version:3.3.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-distorm3/python-distorm3.changes 2018-07-27 10:58:13.437874124 +0200 +++ /work/SRC/openSUSE:Factory/.python-distorm3.new/python-distorm3.changes 2018-11-12 09:42:05.413131960 +0100 @@ -1,0 +2,7 @@ +Fri Nov 9 11:37:56 UTC 2018 - Matej Cepl <mc...@suse.com> + +- Updated 0001-don-t-stutter-static-on-BigEndian.patch from personal + communication with the upstream developer to make test suite pass + completely on Big Endian machines. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-distorm3.spec ++++++ --- /var/tmp/diff_new_pack.hqrFU6/_old 2018-11-12 09:42:05.913131246 +0100 +++ /var/tmp/diff_new_pack.hqrFU6/_new 2018-11-12 09:42:05.917131240 +0100 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # ++++++ 0001-don-t-stutter-static-on-BigEndian.patch ++++++ --- /var/tmp/diff_new_pack.hqrFU6/_old 2018-11-12 09:42:05.941131206 +0100 +++ /var/tmp/diff_new_pack.hqrFU6/_new 2018-11-12 09:42:05.945131201 +0100 @@ -10,15 +10,59 @@ --- a/src/config.h +++ b/src/config.h -@@ -57,7 +57,7 @@ This library is licensed under the BSD l - - #define _DLLEXPORT_ - #define _FASTCALL_ --#define _INLINE_ static -+#define _INLINE_ - /* GCC ignores this directive... */ - /*#define _FASTCALL_ __attribute__((__fastcall__))*/ +@@ -128,34 +128,45 @@ This library is licensed under the BSD l + /* Define stream read functions for big endian systems. */ + #ifdef BE_SYSTEM ++ ++/* Avoid defining 'static static' for GCC. */ ++#ifndef __GNUC__ ++#define STATIC_INLINE static _INLINE_ ++#else ++#define STATIC_INLINE static ++#endif ++ + /* +- * These functions can read from the stream safely! ++ * Assumption: These functions can read from the stream safely! + * Swap endianity of input to little endian. + */ +-static _INLINE_ int16_t RSHORT(const uint8_t *s) ++STATIC_INLINE int16_t RSHORT(const uint8_t *s) + { + return s[0] | (s[1] << 8); + } +-static _INLINE_ uint16_t RUSHORT(const uint8_t *s) ++STATIC_INLINE uint16_t RUSHORT(const uint8_t *s) + { + return s[0] | (s[1] << 8); + } +-static _INLINE_ int32_t RLONG(const uint8_t *s) ++STATIC_INLINE int32_t RLONG(const uint8_t *s) + { + return s[0] | (s[1] << 8) | (s[2] << 16) | (s[3] << 24); + } +-static _INLINE_ uint32_t RULONG(const uint8_t *s) ++STATIC_INLINE uint32_t RULONG(const uint8_t *s) + { + return s[0] | (s[1] << 8) | (s[2] << 16) | (s[3] << 24); + } +-static _INLINE_ int64_t RLLONG(const uint8_t *s) ++STATIC_INLINE int64_t RLLONG(const uint8_t *s) + { + return s[0] | (s[1] << 8) | (s[2] << 16) | (s[3] << 24) | ((uint64_t)s[4] << 32) | ((uint64_t)s[5] << 40) | ((uint64_t)s[6] << 48) | ((uint64_t)s[7] << 56); + } +-static _INLINE_ uint64_t RULLONG(const uint8_t *s) ++STATIC_INLINE uint64_t RULLONG(const uint8_t *s) + { + return s[0] | (s[1] << 8) | (s[2] << 16) | (s[3] << 24) | ((uint64_t)s[4] << 32) | ((uint64_t)s[5] << 40) | ((uint64_t)s[6] << 48) | ((uint64_t)s[7] << 56); + } ++ ++#undef STATIC_INLINE ++ + #else + /* Little endian macro's will just make the cast. */ + #define RSHORT(x) *(int16_t *)x --- a/src/prefix.c +++ b/src/prefix.c @@ -116,7 +116,7 @@ uint16_t prefixes_set_unused_mask(_Prefi