<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>47425</bug_id>
          
          <creation_ts>2023-08-31 23:20:58 +0300</creation_ts>
          <short_desc>deepin-image-viewer: libraw-0.21 support</short_desc>
          <delta_ts>2023-09-06 22:26:20 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>deepin-image-viewer</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yuri N. Sedunov">aris</reporter>
          <assigned_to name="Leontiy Volodin">lvol</assigned_to>
          <cc>lvol</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>232299</commentid>
    <comment_count>0</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2023-08-31 23:20:58 +0300</bug_when>
    <thetext>Пакет не пересобираетсяя с libraw-0.21.

[i586] /usr/src/RPM/BUILD/deepin-image-viewer-5.9.9/qimage-plugins/libraw/rawiohandler.cpp:66:25: error: &apos;struct libraw_output_params_t&apos; has no member named &apos;use_rawspeed&apos;
[i586]    66 |     raw-&gt;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>232337</commentid>
    <comment_count>1</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2023-09-01 13:26:01 +0300</bug_when>
    <thetext>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-&gt;imgdata.rawparams.use_rawspeed = 1;
+#else
     raw-&gt;imgdata.params.use_rawspeed = 1;
+#endif
     if (raw-&gt;open_datastream(stream) != LIBRAW_SUCCESS) {
         delete raw;
         raw = nullptr;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>232615</commentid>
    <comment_count>2</comment_count>
    <who name="Leontiy Volodin">lvol</who>
    <bug_when>2023-09-06 12:53:03 +0300</bug_when>
    <thetext>Добавил.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>232671</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-09-06 22:26:20 +0300</bug_when>
    <thetext>deepin-image-viewer-5.9.9-alt2 -&gt; sisyphus:

 Wed Sep 06 2023 Leontiy Volodin &lt;lvol@altlinux&gt; 5.9.9-alt2
 - Fixed build with libraw 0.21 (ALT #47425).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>