Fix compilation failure caused by libraw upgrade

This commit is contained in:
leeffo 2023-07-06 15:59:01 +08:00
parent 93c4af2ce4
commit c7c2019ab0
2 changed files with 19 additions and 2 deletions

View File

@ -1,10 +1,11 @@
Name: deepin-image-viewer
Version: 5.7.15
Release: 1
Release: 2
Summary: Deepin Image Viewer
License: GPLv3
URL: https://github.com/linuxdeepin/deepin-image-viewer
Source0: %{name}_%{version}.tar.gz
Patch0: libraw.patch
BuildRequires: gcc-c++
BuildRequires: freeimage-devel
@ -40,7 +41,7 @@ Requires: qt5-qtimageformats
%{summary}.
%prep
%autosetup
%autosetup -p1
%build
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
@ -64,6 +65,9 @@ export PATH=%{_qt5_bindir}:$PATH
%{_datadir}/deepin-manual/manual-assets/application/*
%changelog
* Thu Jul 06 2023 leeffo <liweiganga@uniontech.com> - 5.7.15-2
- fix: fix compilation failure caused by libraw upgrade
* Mon Jul 18 2022 konglidong <konglidong@uniontech.com> - 5.7.15-1
- update to 5.7.15

13
libraw.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/qimage-plugins/libraw/rawiohandler.cpp b/qimage-plugins/libraw/rawiohandler.cpp
index 9fd56da..bd669f0 100644
--- a/qimage-plugins/libraw/rawiohandler.cpp
+++ b/qimage-plugins/libraw/rawiohandler.cpp
@@ -84,7 +84,7 @@ bool RawIOHandlerPrivate::load(QIODevice *device)
stream = new Datastream(device);
raw = new LibRaw;
- raw->imgdata.params.use_rawspeed = 1;
+ raw->imgdata.rawparams.use_rawspeed = 1;
if (raw->open_datastream(stream) != LIBRAW_SUCCESS) {
delete raw;
raw = nullptr;