Fix libstdc++ compat
authorTimo Röhling <roehling@debian.org>
Tue, 25 Jan 2022 20:58:25 +0000 (21:58 +0100)
committerTimo Röhling <roehling@debian.org>
Tue, 25 Jan 2022 21:04:28 +0000 (22:04 +0100)
debian/patches/0003-Fix-libstdc-compat.patch
debian/patches/0008-Migrate-to-astc-encoder-API-from-Debian-package.patch

index 4ff7a4971069f976ba2d13a38319d36690d2570d..d5a46a5b9184aabf911a02d0ea701be91eb485e1 100644 (file)
@@ -1,11 +1,12 @@
 From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
-Date: Sat, 23 Oct 2021 20:04:38 +0200
+Date: Tue, 25 Jan 2022 21:55:31 +0100
 Subject: Fix libstdc++ compat
 
 ---
  filament/backend/include/backend/Handle.h | 2 ++
+ libs/imageio/src/BlockCompression.cpp     | 1 +
  libs/viewer/src/RemoteServer.cpp          | 1 +
2 files changed, 3 insertions(+)
3 files changed, 4 insertions(+)
 
 diff --git a/filament/backend/include/backend/Handle.h b/filament/backend/include/backend/Handle.h
 index 62572c7..73c97fe 100644
@@ -20,6 +21,18 @@ index 62572c7..73c97fe 100644
  namespace filament {
  namespace backend {
  
+diff --git a/libs/imageio/src/BlockCompression.cpp b/libs/imageio/src/BlockCompression.cpp
+index f4e0e17..57b607e 100644
+--- a/libs/imageio/src/BlockCompression.cpp
++++ b/libs/imageio/src/BlockCompression.cpp
+@@ -20,6 +20,7 @@
+ #include <algorithm>
+ #include <cmath>
++#include <cstring>
+ #include <thread>
+ #include <astcenc.h>
 diff --git a/libs/viewer/src/RemoteServer.cpp b/libs/viewer/src/RemoteServer.cpp
 index d083dd1..441c730 100644
 --- a/libs/viewer/src/RemoteServer.cpp
index 2e88d6c7729e2faf44680e627e90b6695bcd02bd..2198cfe8687b339f2474a2d004e615dae79b64e0 100644 (file)
@@ -7,18 +7,18 @@ Subject: Migrate to astc-encoder API from Debian package
  1 file changed, 75 insertions(+), 216 deletions(-)
 
 diff --git a/libs/imageio/src/BlockCompression.cpp b/libs/imageio/src/BlockCompression.cpp
-index f4e0e17..cb7d522 100644
+index 57b607e..16cc0d0 100644
 --- a/libs/imageio/src/BlockCompression.cpp
 +++ b/libs/imageio/src/BlockCompression.cpp
-@@ -20,6 +20,7 @@
+@@ -21,6 +21,7 @@
  #include <algorithm>
  #include <cmath>
+ #include <cstring>
 +#include <iostream>
  #include <thread>
  
  #include <astcenc.h>
-@@ -28,22 +29,17 @@
+@@ -29,22 +30,17 @@
  #define STB_DXT_IMPLEMENTATION
  #include <stb_dxt.h>
  
@@ -46,7 +46,7 @@ index f4e0e17..cb7d522 100644
      // Check the validity of the given block size.
  
      using Format = CompressedFormat;
-@@ -80,231 +76,94 @@ CompressedTexture astcCompress(const LinearImage& original, AstcConfig config) {
+@@ -81,231 +77,94 @@ CompressedTexture astcCompress(const LinearImage& original, AstcConfig config) {
          return {};
      }