Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 906467

Summary: kde-apps/gwenview-23.04.1: lib/jpegcontent.cpp:304:28: error: ‘class Exiv2::Exifdatum’ has no member named ‘toLong’
Product: Gentoo Linux Reporter: Andreas Sturmlechner <asturm>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=909314
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 906463    
Attachments: kde-apps:gwenview-23.04.1:20230515-192332.log

Description Andreas Sturmlechner gentoo-dev 2023-05-15 19:29:43 UTC
> lib/jpegcontent.cpp: In member function ‘Gwenview::Orientation Gwenview::JpegContent::orientation() const’:
> lib/jpegcontent.cpp:304:28: error: ‘class Exiv2::Exifdatum’ has no member named ‘toLong’
>   304 |     return Orientation(it->toLong());
>       |                            ^~~~~~
> lib/jpegcontent.cpp: In member function ‘int Gwenview::JpegContent::dotsPerMeter(const QString&) const’:
> lib/jpegcontent.cpp:324:19: error: ‘class Exiv2::Exifdatum’ has no member named ‘toLong’
>   324 |     int res = it->toLong();
>       |                   ^~~~~~
> lib/jpegcontent.cpp:340:24: error: ‘class Exiv2::Exifdatum’ has no member named ‘toLong’
>   340 |         return int(it->toLong() * 100);
>       |                        ^~~~~~
> lib/jpegcontent.cpp:342:24: error: ‘class Exiv2::Exifdatum’ has no member named ‘toLong’
>   342 |         return int(it->toLong() * INCHESPERMETER);
>       |                        ^~~~~~
> lib/jpegcontent.cpp: In member function ‘QImage Gwenview::JpegContent::thumbnail() const’:
> lib/jpegcontent.cpp:571:40: error: ‘class Exiv2::Exifdatum’ has no member named ‘toLong’
>   571 |             QRect validArea(QPoint(it->toLong(0), it->toLong(2)), QPoint(it->toLong(1), it->toLong(3)));
>       |                                        ^~~~~~
> lib/jpegcontent.cpp:571:55: error: ‘class Exiv2::Exifdatum’ has no member named ‘toLong’
>   571 |             QRect validArea(QPoint(it->toLong(0), it->toLong(2)), QPoint(it->toLong(1), it->toLong(3)));
>       |                                                       ^~~~~~
> lib/jpegcontent.cpp:571:78: error: ‘class Exiv2::Exifdatum’ has no member named ‘toLong’
>   571 |             QRect validArea(QPoint(it->toLong(0), it->toLong(2)), QPoint(it->toLong(1), it->toLong(3)));
>       |                                                                              ^~~~~~
> lib/jpegcontent.cpp:571:93: error: ‘class Exiv2::Exifdatum’ has no member named ‘toLong’
>   571 |             QRect validArea(QPoint(it->toLong(0), it->toLong(2)), QPoint(it->toLong(1), it->toLong(3)));
>       |                                                                                             ^~~~~~
> lib/jpegcontent.cpp:578:45: error: ‘class Exiv2::Exifdatum’ has no member named ‘toLong’
>   578 |                 const long prevHeight = it->toLong(0);
>       |                                             ^~~~~~
> lib/jpegcontent.cpp:579:44: error: ‘class Exiv2::Exifdatum’ has no member named ‘toLong’
>   579 |                 const long prevWidth = it->toLong(1);
>       |
Comment 1 Andreas Sturmlechner gentoo-dev 2023-05-15 19:35:06 UTC
Created attachment 861748 [details]
kde-apps:gwenview-23.04.1:20230515-192332.log
Comment 2 Larry the Git Cow gentoo-dev 2023-05-22 17:33:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc7d8c325d342435ed3d3f52627f3ea46d472835

commit bc7d8c325d342435ed3d3f52627f3ea46d472835
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-05-22 17:32:11 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-05-22 17:32:11 +0000

    kde-apps/gwenview: Fix build with >=exiv2-0.28
    
    Closes: https://bugs.gentoo.org/906467
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/gwenview-23.04.1-exiv2-0.28.patch        | 83 ++++++++++++++++++++++
 kde-apps/gwenview/gwenview-23.04.1.ebuild          |  2 +
 2 files changed, 85 insertions(+)