Bug 457395 - Appimage failing to build
Summary: Appimage failing to build
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: buildsystem (show other bugs)
Version: git (master)
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-02 03:35 UTC by Eleazar
Modified: 2023-07-05 23:11 UTC (History)
0 users

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


Attachments
attachment-22854-0.html (1.04 KB, text/html)
2022-09-07 23:23 UTC, Dawid Wróbel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eleazar 2022-08-02 03:35:50 UTC
I tried to download the latest Release appimage (https://binary-factory.kde.org/job/KMyMoney_Release_appimage-centos7/) and it looks like the last successful build was 179.

I check the nightly (https://binary-factory.kde.org/job/KMyMoney_Nightly_appimage-centos7/) and the last successful build was 183.

It looks like it can't find the OFX Libraries


https://binary-factory.kde.org/job/KMyMoney_Release_appimage-centos7/192/consoleFull

...
13:29:19  Status: (/home/appimage/Craft/BinaryFactory/linux-64-gcc) craft --options libs/gpgme/gpgme.enableCPP=True --install-deps kmymoney: 4 minutes 51 seconds 85% ['libs/libofx', 'libs/libical', 'libs/tcl', 'libs/sqlcipher', 'libs/libidn', 'libs/libgmp', 'libs/nettle', 'libs/libunistring', 'libs/libtasn1', 'libs/p11kit', 'libs/gnutls', 'libs/xmlsec1', 'libs/gwenhywfar', 'libs/aqbanking', 'libs/qt5/qtquickcontrols', 'libs/qt5/qtgraphicaleffects', 'libs/qt5/qtquickcontrols2', 'kde/frameworks/tier1/kirigami', 'kde/frameworks/tier3/qqc2-desktop-style', 'kde/frameworks/tier2/syndication', 'kde/frameworks/tier1/attica', 'kde/frameworks/tier3/knewstuff', 'extragear/libalkimia', 'extragear/kdiagram', 'libs/qt5/qtserialport']
13:29:19  ================================================================================
13:29:19  *** Handling package: libs/libofx, action: all ***
13:29:19  *** Action: fetch-binary for libs/libofx ***
13:29:19  Could not find libs/libofx=0.10.5-3 in https://files.kde.org/craft/master/22.07/linux/64/gcc/RelWithDebInfo
13:29:19  Could not find libs/libofx=0.10.5-3 in https://files.kde.org/craft/master/22.07/linux/64/gcc/Release
13:29:19  *** libs/libofx not found in cache ***
13:29:19  *** Action: fetch for libs/libofx ***
13:29:19  executing command: /usr/bin/curl -C - --retry 10 -L --ftp-ssl --fail --cacert /home/appimage/Craft/BinaryFactory/linux-64-gcc/etc/cacert.pem --max-redirs 50 -o /home/appimage/Craft/BinaryFactory/downloads/archives/libs/libofx/libofx-0.10.5.tar.gz http://downloads.sourceforge.net/project/libofx/libofx/libofx-0.10.5.tar.gz -v
13:29:20  Command ['/usr/bin/curl', '-C', '-', '--retry', '10', '-L', '--ftp-ssl', '--fail', '--cacert', '/home/appimage/Craft/BinaryFactory/linux-64-gcc/etc/cacert.pem', '--max-redirs', '50', '-o', '/home/appimage/Craft/BinaryFactory/downloads/archives/libs/libofx/libofx-0.10.5.tar.gz', 'http://downloads.sourceforge.net/project/libofx/libofx/libofx-0.10.5.tar.gz', '-v'] failed with exit code 22
13:29:20    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
13:29:20                                   Dload  Upload   Total   Spent    Left  Speed
13:29:20  
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* About to connect() to downloads.sourceforge.net port 80 (#0)
13:29:20  *   Trying 204.68.111.105...
13:29:20  * Connected to downloads.sourceforge.net (204.68.111.105) port 80 (#0)
13:29:20  > GET /project/libofx/libofx/libofx-0.10.5.tar.gz HTTP/1.1
13:29:20  > User-Agent: curl/7.29.0
13:29:20  > Host: downloads.sourceforge.net
13:29:20  > Accept: */*
13:29:20  > 
13:29:20  * The requested URL returned error: 404 Not Found
13:29:20  
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
13:29:20  * Closing connection 0
13:29:20  curl: (22) The requested URL returned error: 404 Not Found
13:29:20  
13:29:20  Action: fetch for libs/libofx:0.10.5-3 FAILED
13:29:20  *** Craft all failed: libs/libofx after 0 seconds ***
13:29:20  fatal error: package libs/libofx all failed
...
Comment 1 Thomas Baumgart 2022-08-02 06:03:02 UTC
Git commit c57c19f5ea982131a4bd74202142b3a53a530a10 by Thomas Baumgart.
Committed on 02/08/2022 at 06:02.
Pushed by tbaumgart into branch 'master'.

Fix downloading libofx

Download from SF seems to be broken. This causes the AppImage build to
fail. Use the github source instead, as it was setup before it was
reverted back in commit fb424f601ac4

M  +1    -1    libs/libofx/libofx.py

https://invent.kde.org/packaging/craft-blueprints-kde/commit/c57c19f5ea982131a4bd74202142b3a53a530a10
Comment 2 Eleazar 2022-08-04 04:22:14 UTC
Still failing to build. Issue seems to be CMake can't compile OFX library

https://binary-factory.kde.org/job/KMyMoney_Release_appimage-centos7/195/console

https://binary-factory.kde.org/job/KMyMoney_Nightly_appimage-centos7/199/console


FAILED: CMakeFiles/ofx.dir/lib/context.cpp.o 
13:32:53  /opt/rh/devtoolset-9/root/usr/bin/g++ -DCMDLINE_PARSER_PACKAGE=\"ofxdump\" -DCMDLINE_PARSER_PACKAGE_NAME=\"ofxdump\" -DCMDLINE_PARSER_VERSION=\"0.9.13\" -DMAKEFILE_DTD_PATH=\"/home/appimage/Craft/BinaryFactory/linux-64-gcc/share/libofx/dtd/\" -D__WIN32__ -Dofx_EXPORTS -I/home/appimage/Craft/BinaryFactory/linux-64-gcc/build/libs/libofx/work/libofx-0.10.5/inc -isystem /home/appimage/Craft/BinaryFactory/linux-64-gcc/include -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/ofx.dir/lib/context.cpp.o -MF CMakeFiles/ofx.dir/lib/context.cpp.o.d -o CMakeFiles/ofx.dir/lib/context.cpp.o -c /home/appimage/Craft/BinaryFactory/linux-64-gcc/build/libs/libofx/work/libofx-0.10.5/lib/context.cpp
13:32:53  /home/appimage/Craft/BinaryFactory/linux-64-gcc/build/libs/libofx/work/libofx-0.10.5/lib/context.cpp:13:10: fatal error: config.h: No such file or directory
13:32:53     13 | #include <config.h>
13:32:53        |          ^~~~~~~~~~
13:32:53  compilation terminated.
Comment 3 Jack 2022-09-06 23:13:37 UTC
With the recent (days ago) release of libofx-0.10.6, the appimage build error has changed.  I know there is an immanent 0.10.7 coming due to 0.10.6 somehow not providing it's version information properly, but the error log seems totally unrelated to that.  I see several warnings about KMessageBox::detailedSorry being deprecated, but I don't see (or am just missing) the actual error.
Comment 4 Dawid Wróbel 2022-09-07 23:23:31 UTC
Created attachment 151908 [details]
attachment-22854-0.html

 I know there is an immanent 0.10.7 coming due to 0.10.6 somehow
> not providing it's version information properly, but the error log seems
> totally unrelated to that.


It’s actually related to that exactly. The 0.10.7 change is about the
missing Config.cmake file which will help KMymoney find libofx and its
dependencies. Right now it relies on its own heuristic which causes some
issues.

I will fix all these issues this weekend.
Comment 5 Jack 2023-07-05 23:11:37 UTC
Not sure why this didn't get re-closed.