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

Bug 906499

Summary: sci-astronomy/siril-1.2.0_beta1: ../siril-1.2.0-beta1/src/core/exif.cpp:111:25: error: ‘AnyError’ in namespace ‘Exiv2’ does not name a type
Product: Gentoo Linux Reporter: Andreas Sturmlechner <asturm>
Component: Current packagesAssignee: mario.haustein
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal Keywords: PullRequest, UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://gitlab.com/free-astro/siril/-/issues/1117
https://github.com/gentoo/gentoo/pull/31501
https://bugs.gentoo.org/show_bug.cgi?id=912688
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 906463    
Attachments: sci-astronomy:siril-1.2.0_beta1:20230515-202608.log
siril-1.2.0_rc1-r1.build.log

Description Andreas Sturmlechner gentoo-dev 2023-05-15 20:29:15 UTC
Created attachment 861771 [details]
sci-astronomy:siril-1.2.0_beta1:20230515-202608.log

> ../siril-1.2.0-beta1/src/core/exif.cpp:111:25: error: ‘AnyError’ in namespace ‘Exiv2’ does not name a type
>   111 |         } catch (Exiv2::AnyError &e) {
>       |                         ^~~~~~~~
> ../siril-1.2.0-beta1/src/core/exif.cpp:112:31: error: ‘e’ was not declared in this scope
>   112 |                 std::string s(e.what());
>       |                               ^
Comment 2 Andreas Sturmlechner gentoo-dev 2023-07-06 09:29:15 UTC
Created attachment 865194 [details]
siril-1.2.0_rc1-r1.build.log

1.2.0_rc1-r1 is still failing unfortunately.

> ../siril-1.2.0-rc1/src/core/exif.cpp: In function ‘gchar* siril_get_date_from_exif(const char*)’:
> ../siril-1.2.0-rc1/src/core/exif.cpp:127:31: error: ‘AutoPtr’ is not a member of ‘Exiv2::Image’
>   127 |                 Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(WIDEN(filename));
>       |                               ^~~~~~~
> ../siril-1.2.0-rc1/src/core/exif.cpp:128:21: error: ‘image’ was not declared in this scope
>   128 |                 if (image.get() == 0) {
>       |                     ^~~~~
> ../siril-1.2.0-rc1/src/core/exif.cpp:133:42: error: ‘image’ was not declared in this scope
>   133 |                 read_metadata_threadsafe(image);
>       |                                          ^~~~~
> ../siril-1.2.0-rc1/src/core/exif.cpp:72:3: note: in definition of macro ‘read_metadata_threadsafe’
>    72 |   image->readMetadata();                                      \
>       |   ^~~~~
> ../siril-1.2.0-rc1/src/core/exif.cpp:135:46: error: ‘image’ was not declared in this scope
>   135 |                 Exiv2::ExifData &exif_data = image->exifData();
>       |                                              ^~~~~
Comment 3 Larry the Git Cow gentoo-dev 2023-08-20 17:37:57 UTC
The bug has been closed via the following commit(s):

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

commit ec80058fdeb087d2ccdc5526ef3dc6d7c842e5a1
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-08-20 17:32:54 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2023-08-20 17:37:41 +0000

    sci-astronomy/siril: Fix build with >=exiv2-0.28
    
    Closes: https://bugs.gentoo.org/906499
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../siril/files/siril-1.2-exiv2-0.28.patch         | 39 ++++++++++++++++++++++
 sci-astronomy/siril/siril-1.2.0_rc1-r1.ebuild      |  5 +--
 2 files changed, 42 insertions(+), 2 deletions(-)