Bug 361316 - Fails to build with flex-2.6.0
Summary: Fails to build with flex-2.6.0
Status: RESOLVED UPSTREAM
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-Panorama (show other bugs)
Version: 5.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-02 12:41 UTC by Michael Seifert
Modified: 2022-01-17 12:11 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0
Sentry Crash Report:


Attachments
Build log (16.03 KB, application/x-xz)
2016-04-02 12:41 UTC, Michael Seifert
Details

Note You need to log in before you can comment on or make changes to this bug.
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!