[MacPorts] #68553: qtkeychain-qt5 @0.13.2_0: error: use of undeclared identifier 'errSecOpWr'

MacPorts noreply at macports.org
Thu Oct 26 02:37:26 UTC 2023


#68553: qtkeychain-qt5 @0.13.2_0: error: use of undeclared identifier 'errSecOpWr'
--------------------------+----------------------------
 Reporter:  chrstphrchvz  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.8.1
 Keywords:                |       Port:  qtkeychain-qt5
--------------------------+----------------------------
 `errSecOpWr` is only defined since the macOS 10.12.4 SDK.

 [https://build.macports.org/builders/ports-10.11_x86_64-builder/builds/239860/steps
 /install-port/logs/stdio]

 {{{
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_security_qtkeychain
 /qtkeychain-qt5/work/qtkeychain-0.13.2/keychain_apple.mm:46:14: error: use
 of undeclared identifier 'errSecOpWr'; did you mean 'errSecIO'?
         case errSecOpWr:
              ^~~~~~~~~~
              errSecIO
 }}}


 The following patch might work, but may not be worth bothering with if
 there many more incompatibilities with macOS < 10.12.
 I personally do not use macOS versions that old.
 {{{
 #!diff
 --- keychain_apple.mm
 +++ keychain_apple.mm
 @@ -42,9 +42,9 @@
          case errSecUnimplemented:
              return ErrorDescription(QKeychain::NotImplemented,
 Job::tr("Function or operation not implemented"));
          case errSecIO:
              return ErrorDescription(QKeychain::OtherError, Job::tr("I/O
 error"));
 -        case errSecOpWr:
 +        case -49: /* errSecOpWr */
              return ErrorDescription(QKeychain::OtherError,
 Job::tr("Already open with with write permission"));
          case errSecParam:
              return ErrorDescription(QKeychain::OtherError,
 Job::tr("Invalid parameters passed to a function"));
          case errSecAllocate:
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/68553>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list