[med-svn] [Git][med-team/orthanc][master] 2 commits: Fix build on big-endian architectures
Sebastien Jodogne
gitlab at salsa.debian.org
Sat Jan 30 17:37:08 GMT 2021
Sebastien Jodogne pushed to branch master at Debian Med / orthanc
Commits:
512e318a by jodogne-guest at 2021-01-30T18:26:04+01:00
Fix build on big-endian architectures
- - - - -
93142c2f by jodogne-guest at 2021-01-30T18:36:32+01:00
Upload to unstable
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/big-endian
- + debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+orthanc (1.9.0+dfsg-2) unstable; urgency=medium
+
+ * Patch to fix build on big-endian architecture
+
+ -- Sebastien Jodogne <s.jodogne at gmail.com> Sat, 30 Jan 2021 18:25:13 +0100
+
orthanc (1.9.0+dfsg-1) unstable; urgency=medium
* New upstream version
=====================================
debian/patches/big-endian
=====================================
@@ -0,0 +1,29 @@
+Description: Fix build on big-endian architectures
+Author: Sebastien Jodogne <s.jodogne at orthanc-labs.com>
+Forwarded: yes
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: Orthanc-1.9.0/OrthancFramework/Sources/Compression/ZlibCompressor.cpp
+===================================================================
+--- Orthanc-1.9.0.orig/OrthancFramework/Sources/Compression/ZlibCompressor.cpp
++++ Orthanc-1.9.0/OrthancFramework/Sources/Compression/ZlibCompressor.cpp
+@@ -123,6 +123,9 @@ namespace Orthanc
+
+ uint64_t uncompressedSize = ReadUncompressedSizePrefix(compressed, compressedSize);
+
++ // New in Orthanc 1.9.0: Explicitly use litte-endian encoding in size prefix
++ uncompressedSize = le64toh(uncompressedSize);
++
+ try
+ {
+ uncompressed.resize(static_cast<size_t>(uncompressedSize));
+@@ -132,9 +135,6 @@ namespace Orthanc
+ throw OrthancException(ErrorCode_NotEnoughMemory);
+ }
+
+- // New in Orthanc 1.9.0: Explicitly use litte-endian encoding in size prefix
+- uncompressedSize = le64toh(uncompressedSize);
+-
+ uLongf tmp = static_cast<uLongf>(uncompressedSize);
+ int error = uncompress
+ (reinterpret_cast<uint8_t*>(&uncompressed[0]),
=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+big-endian
View it on GitLab: https://salsa.debian.org/med-team/orthanc/-/compare/7deedc46096158fd663c1f16a8d99030e4654c50...93142c2f48453439f727df742f9738329f7a60f3
--
View it on GitLab: https://salsa.debian.org/med-team/orthanc/-/compare/7deedc46096158fd663c1f16a8d99030e4654c50...93142c2f48453439f727df742f9738329f7a60f3
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210130/08e633f1/attachment-0001.html>
More information about the debian-med-commit
mailing list