Fix compilation failure caused by libraw upgrade
This commit is contained in:
parent
93c4af2ce4
commit
c7c2019ab0
@ -1,10 +1,11 @@
|
|||||||
Name: deepin-image-viewer
|
Name: deepin-image-viewer
|
||||||
Version: 5.7.15
|
Version: 5.7.15
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Deepin Image Viewer
|
Summary: Deepin Image Viewer
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: https://github.com/linuxdeepin/deepin-image-viewer
|
URL: https://github.com/linuxdeepin/deepin-image-viewer
|
||||||
Source0: %{name}_%{version}.tar.gz
|
Source0: %{name}_%{version}.tar.gz
|
||||||
|
Patch0: libraw.patch
|
||||||
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: freeimage-devel
|
BuildRequires: freeimage-devel
|
||||||
@ -40,7 +41,7 @@ Requires: qt5-qtimageformats
|
|||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
|
# 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/*
|
%{_datadir}/deepin-manual/manual-assets/application/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jul 18 2022 konglidong <konglidong@uniontech.com> - 5.7.15-1
|
||||||
- update to 5.7.15
|
- update to 5.7.15
|
||||||
|
|
||||||
|
|||||||
13
libraw.patch
Normal file
13
libraw.patch
Normal 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;
|
||||||
Loading…
x
Reference in New Issue
Block a user