Bug 361316

Summary: Fails to build with flex-2.6.0
Product: [Applications] digikam Reporter: Michael Seifert <m.seifert>
Component: Plugin-Generic-PanoramaAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: benjamin.girault, caulier.gilles, m.seifert, rdieter
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 7.6.0
Sentry Crash Report:
Attachments: Build log

Description Michael Seifert 2016-04-02 12:41:16 UTC
Created attachment 98206 [details]
Build log

Kipi-plugins-5.0.0_beta4 fails to build with flex-2.6.0 (see attached build log). A downgrade to flex-2.5.39 solves the issue.

Kipi-plugins 4.14.0 also seems to be affected.

A proposed patch is available in the Gentoo bug tracker:
https://bugs.gentoo.org/show_bug.cgi?id=568184
Comment 1 caulier.gilles 2016-04-02 12:51:16 UTC
I think the current implementation from git/master (next 5.0.0-beta5) is already compatible, with this loop in panorama CMakeLists.txt :

https://quickgit.kde.org/?p=digikam.git&a=blob&h=0b8d9683d4092ff39f9646285205a4abcf925daf&hb=793e17d0c1d49b69832be432baaa407a7fdecd4a&f=utilities%2Fassistants%2Fpanorama%2FCMakeLists.txt#l12

Gilles Caulier
Comment 2 Benjamin Girault 2016-04-02 13:08:44 UTC
As said in the gentoo bug report, this is a bug with Flex:
https://sourceforge.net/p/flex/bugs/195/

There is nothing we can do about it. It is fixed in ArchLinux though, so other distributions should be able to do the same. Please report this to your Linux distribution such that they patch Flex.
Comment 3 Michael Seifert 2016-04-02 13:16:38 UTC
Sorry, the patch looked like it solves a malformed comment in kipi-plugins rather than a patch for flex. I better double-check it next time.

I couldn't verify whether it works with the current version of kipi-plugins from git master, though.

Thanks for the quick resolution!