Bug 47425

Summary: deepin-image-viewer: libraw-0.21 support
Product: Sisyphus Reporter: Yuri N. Sedunov <aris>
Component: deepin-image-viewerAssignee: Leontiy Volodin <lvol>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: lvol
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Yuri N. Sedunov 2023-08-31 23:20:58 MSK
Пакет не пересобираетсяя с libraw-0.21.

[i586] /usr/src/RPM/BUILD/deepin-image-viewer-5.9.9/qimage-plugins/libraw/rawiohandler.cpp:66:25: error: 'struct libraw_output_params_t' has no member named 'use_rawspeed'
[i586]    66 |     raw->imgdata.params.use_rawspeed = 1;
2023-Aug-31 17:35:36 :: [i586] deepin-image-viewer.git 5.9.9-alt1: remote: build failed
2023-Aug-31 17:35:36 :: [i586] #1600 deepin-image-viewer.git 5.9.9-alt1: build FAILED

Прошу исправить и добавить в задание #314571.
Comment 1 Yuri N. Sedunov 2023-09-01 13:26:01 MSK
https://gitlab.archlinux.org/archlinux/packaging/packages/deepin-image-viewer/-/blob/main/libraw-0.21.patch?ref_type=heads


diff --git a/qimage-plugins/libraw/rawiohandler.cpp b/qimage-plugins/libraw/rawiohandler.cpp
index 979b1d58..5236376f 100644
--- a/qimage-plugins/libraw/rawiohandler.cpp
+++ b/qimage-plugins/libraw/rawiohandler.cpp
@@ -63,7 +63,11 @@ bool RawIOHandlerPrivate::load(QIODevice *device)
 
     stream = new Datastream(device);
     raw = new LibRaw;
+#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21)
+    raw->imgdata.rawparams.use_rawspeed = 1;
+#else
     raw->imgdata.params.use_rawspeed = 1;
+#endif
     if (raw->open_datastream(stream) != LIBRAW_SUCCESS) {
         delete raw;
         raw = nullptr;
Comment 2 Leontiy Volodin 2023-09-06 12:53:03 MSK
Добавил.
Comment 3 Repository Robot 2023-09-06 22:26:20 MSK
deepin-image-viewer-5.9.9-alt2 -> sisyphus:

 Wed Sep 06 2023 Leontiy Volodin <lvol@altlinux> 5.9.9-alt2
 - Fixed build with libraw 0.21 (ALT #47425).