Opened 5 years ago
Closed 5 years ago
#58564 closed defect (fixed)
KMyMoney installation fails
Reported by: | Romainpetit (Romain Petit) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.5.4 |
Keywords: | Cc: | chrstphrchvz (Christopher Chavez) | |
Port: | kmymoney4 |
Description
- Agreed to XCode terms
- Downloaded Macports
- Followed instructions to download kmymoney version 4 : sudo port install kmymoney4
Got an error installing version 4 :
---> Building kmymoney4 Error: Failed to build kmymoney4: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kmymoney4/kmymoney4/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port kmymoney4 failed
- Followed instructions to download kmymoney version 4 dev : sudo port install kmymoney4-devel
Got an error installing version 4 dev :
---> Computing dependencies for kmymoney4-devel ---> Fetching archive for kmymoney4-devel ---> Attempting to fetch kmymoney4-devel-4.8.1-20171206_2.darwin_18.x86_64.tbz2 from http://lil.fr.packages.macports.org/kmymoney4-devel ---> Attempting to fetch kmymoney4-devel-4.8.1-20171206_2.darwin_18.x86_64.tbz2 from https://packages.macports.org/kmymoney4-devel ---> Attempting to fetch kmymoney4-devel-4.8.1-20171206_2.darwin_18.x86_64.tbz2 from http://nue.de.packages.macports.org/kmymoney4-devel ---> Fetching distfiles for kmymoney4-devel ---> Verifying checksums for kmymoney4-devel ---> Extracting kmymoney4-devel ---> Applying patches to kmymoney4-devel ---> Configuring kmymoney4-devel Warning: reinplace s|%PREFIX%|/opt/local|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kmymoney4-devel/kmymoney4-devel/work/kmymoney/CMakeLists.txt ---> Building kmymoney4-devel Error: Failed to build kmymoney4-devel: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kmymoney4-devel/kmymoney4-devel/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port kmymoney4-devel failed
Attachments (1)
Change History (10)
comment:1 Changed 5 years ago by chrstphrchvz (Christopher Chavez)
comment:2 Changed 5 years ago by chrstphrchvz (Christopher Chavez)
Cc: | chrstphrchvz added |
---|
comment:3 Changed 5 years ago by chrstphrchvz (Christopher Chavez)
Thanks. This looks like the same kind of issue (not necessarily duplicate) in #58364:
error: ordered comparison between pointer and zero ('const void *' and 'int') return (list.contains(id) > 0); ~~~~~~~~~~~~~~~~~ ^ ~
where the > 0
needs to be replaced with != NULL
.
This appears to be an upstream issue; the kmymoney4
port either needs to be patched, or updated to a much newer upstream version that hopefully resolves this issue.
comment:4 Changed 5 years ago by Romainpetit (Romain Petit)
Thank you chrstphrchvz. So I understand that there is nothing I can do on my side to install kmymoney using macports, just need to wait for a new version to be released. If some workaround is possible, please let me know.
comment:5 Changed 5 years ago by BeastOfBodmin
I noticed there is no maintainer for kmymoney. Was that always the case?
There are some later versions released, but they are not in the ports tree yet.
sh-3.2# port version Version: 2.5.4
sh-3.2# port search kmymoney4 kmymoney4 @4.7.2_8 (kde, kde4, finance) kmymoney version 4 kmymoney4-devel @4.8.1-20171206_2 (kde, kde4, finance) KMyMoney version 4 following git master as close as possible. Found 2 ports.
error: ordered comparison between pointer and zero ('const void *' and 'int') :info:build return (list.contains(id) > 0); :info:build ~~~~~~~~~~~~~~~~~ ^ ~
comment:6 Changed 5 years ago by jaimejdavila
Just a quick note to let others know that I was running into this same issue, and changing a couple of lines as instructed above (i.e. changing "(list.contains(id) > 0)" to "(list.contains(current) != NULL)" solved the problem. I needed to change lines on file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kmymoney4/kmymoney4/work/kmymoney-4.7.2/kmymoney/mymoney/mymoneyreport.cpp and file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_kmymoney4/kmymoney4/work/kmymoney-4.7.2/kmymoney/dialogs/kexportdlg.cpp . In both cases I needed superuser privileges.
comment:7 Changed 5 years ago by mf2k (Frank Schima)
Can someone submit a GitHub pull request so this can get fixed?
comment:8 Changed 5 years ago by NicosPavlov
Fixed in commit f0e35b608dc2aa612d256557d1b769f64812fe6e, along with update of the port.
comment:9 Changed 5 years ago by NicosPavlov
Resolution: | → fixed |
---|---|
Status: | new → closed |
Can you please attach this main.log file?