By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 2901

Summary: Build issue: kmymoney ftbfs on Fedora 28
Product: TDE Reporter: Francois Andriot <albator78>
Component: non-core programsAssignee: Slávek Banko <slavek.banko>
Status: RESOLVED FIXED    
Severity: normal CC: albator78, bugwatch, slavek.banko
Priority: P5    
Version: R14.0.x [Trinity]   
Hardware: Other   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on:    
Bug Blocks: 2696    
Attachments: Log file building kmymoney on Fedora 28
Fix FTBFS on fedora 28
Fedora 28: kmymoneyreportconfigtab2decl.cpp
Fix FTBFS on fedora 28 (1)

Description Francois Andriot 2018-05-14 13:15:53 CDT
Created attachment 2846 [details]
Log file building kmymoney on Fedora 28

Hello, I can't build kmymoney on Fedora 28.
Log file of FTBFS is attached.
Comment 1 Slávek Banko 2018-05-19 12:42:32 CDT
Created attachment 2850 [details]
Fix FTBFS on fedora 28

I tried to reproduce the problem on Debian / Ubuntu - I was testing the use of GCC 8, Clang, but without success == kmymoney were still building successfully.

Unfortunately, I'm not able to create build-root for Fedora 28 on my Debian builders using 'mock'. So now I have no easy way to reproduce the problem.

However, I try to prepare a patch that might help. Please test it.
Comment 2 Francois Andriot 2018-05-22 13:18:16 CDT
Hello, thanks for your patch.
Alas, I still have exactly the same FTBFS.

I do not know 'mock' tools; on my side, i'm using docker containers for distros that I do not have natively. Inside containers, I'm running custom build scripts.
Comment 3 Slávek Banko 2018-05-22 15:12:41 CDT
Please, can you send the file kmymoneyreportconfigtab2decl.cpp that is generated during your build on Fedora 28? Please, what version of gcc do you have in Fedora 28?

As I read, 'mock' could be similar to the pbuilder, that I use for Debian / Ubuntu packages. The problem is that for a Fedora >= 24 yum is not enough and requires dnf. But dnf is not available as a Debian package == I have to build it, including dependencies. Maybe I'll do it sometime later ... now I have a lot of other things to do.
Comment 4 Francois Andriot 2018-05-22 16:01:43 CDT
Created attachment 2854 [details]
Fedora 28: kmymoneyreportconfigtab2decl.cpp

Here is GCC version on Fedora 28:
gcc version 8.1.1 20180502 (Red Hat 8.1.1-1) (GCC) .

The requested file is attached.
Comment 5 Slávek Banko 2018-07-09 17:52:44 CDT
Created attachment 2880 [details]
Fix FTBFS on fedora 28 (1)

I've made the effort to test the build on Fedora 28 (in chroot on my Debian builder). The previous patch has proven to be a good start, but there were a number of other places that needed a similar fix. A new patch should address all these issues.

On my test machine, with a patch, the build was fine. I hope the situation will be the same for you.
Comment 6 Francois Andriot 2018-07-12 04:03:28 CDT
Hello, I confirm your patch fixes the build issue. Thanks !
Comment 7 Slávek Banko 2018-07-12 12:46:43 CDT
Fixed by GIT commit e399ef9f (master) and d80b3c28 (r14.0.x).