[MacPorts] #69793: KeePassXC @2.7.7_1 - No Longer Works Unless qt 5.8 or Later Is Installed

MacPorts noreply at macports.org
Sun Apr 21 14:38:09 UTC 2024


#69793: KeePassXC @2.7.7_1 - No Longer Works Unless qt 5.8 or Later Is Installed
------------------------+--------------------------
  Reporter:  RobK88     |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.9.3
Resolution:             |   Keywords:  mountainlion
      Port:  keepassxc  |
------------------------+--------------------------

Comment (by RobK88):

 You are right.  KeePassXC no longer builds on Mtn Lion using qt 5.7 since
 `KeePassXC v2.7.7` is now using a new function
 `QDateTime::fromSecsSinceEpoch()` introduced in qt 5.8:


 {{{
 /opt/local/var/macports/build/_Users_grinch_Development_Macports_local-
 repo_security_KeePassXC/KeePassXC/work/keepassxc-2.7.7/src/format/OPUXReader.cpp:159:44:
 error: no member named 'fromSecsSinceEpoch' in 'QDateTime'
                         value =
 QDateTime::fromSecsSinceEpoch(valueMap.value(key).toULongLong(),
 Qt::UTC).toString();
                                 ~~~~~~~~~~~^
 /opt/local/var/macports/build/_Users_grinch_Development_Macports_local-
 repo_security_KeePassXC/KeePassXC/work/keepassxc-2.7.7/src/format/OPUXReader.cpp:194:45:
 error: no member named 'fromSecsSinceEpoch' in 'QDateTime'
         const auto createdTime =
 QDateTime::fromSecsSinceEpoch(itemMap.value("createdAt").toULongLong(),
 Qt::UTC);
                                  ~~~~~~~~~~~^
 /opt/local/var/macports/build/_Users_grinch_Development_Macports_local-
 repo_security_KeePassXC/KeePassXC/work/keepassxc-2.7.7/src/format/OPUXReader.cpp:195:46:
 error: no member named 'fromSecsSinceEpoch' in 'QDateTime'
         const auto modifiedTime =
 QDateTime::fromSecsSinceEpoch(itemMap.value("updatedAt").toULongLong(),
 Qt::UTC);
                                   ~~~~~~~~~~~^
 3 errors generated.
 make[2]: *** [src/CMakeFiles/keepassx_core.dir/format/OPUXReader.cpp.o]
 Error 1
 make[2]: *** Waiting for unfinished jobs....
 make[2]: Leaving directory `/opt/local/var/macports/build
 /_Users_grinch_Development_Macports_local-
 repo_security_KeePassXC/KeePassXC/work/build'
 make[1]: *** [src/CMakeFiles/keepassx_core.dir/all] Error 2
 make[1]: Leaving directory `/opt/local/var/macports/build
 /_Users_grinch_Development_Macports_local-
 repo_security_KeePassXC/KeePassXC/work/build'
 make: *** [all] Error 2
 make: Leaving directory `/opt/local/var/macports/build
 /_Users_grinch_Development_Macports_local-
 repo_security_KeePassXC/KeePassXC/work/build'
 Command failed:  cd "/opt/local/var/macports/build
 /_Users_grinch_Development_Macports_local-
 repo_security_KeePassXC/KeePassXC/work/build" && /usr/bin/make -j2 -w all
 VERBOSE=ON
 Exit code: 2
 Error: Failed to build KeePassXC: command execution failed
 Error: See /opt/local/var/macports/logs
 /_Users_grinch_Development_Macports_local-
 repo_security_KeePassXC/KeePassXC/main.log for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 }}}

 But it is easy to fix with a patch to use the deprecated function in qt
 5.7 - `QDateTime::fromTime_t()` when qt 5.7 is being used.  When I have
 time I will submit a PR with a patch so KeeePassXC will work again on Mtn
 Lion and newer Mac OS X Macs that still use qt 5.7.

-- 
Ticket URL: <https://trac.macports.org/ticket/69793#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list