Opened 13 months ago

Last modified 12 months ago

#68553 new defect

qtkeychain-qt5 @0.13.2_0: error: use of undeclared identifier 'errSecOpWr'

Reported by: chrstphrchvz (Christopher Chavez) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: qtkeychain-qt5

Description

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.

  • keychain_apple.mm

     
    4242        case errSecUnimplemented:
    4343            return ErrorDescription(QKeychain::NotImplemented, Job::tr("Function or operation not implemented"));
    4444        case errSecIO:
    4545            return ErrorDescription(QKeychain::OtherError, Job::tr("I/O error"));
    46         case errSecOpWr:
     46        case -49: /* errSecOpWr */
    4747            return ErrorDescription(QKeychain::OtherError, Job::tr("Already open with with write permission"));
    4848        case errSecParam:
    4949            return ErrorDescription(QKeychain::OtherError, Job::tr("Invalid parameters passed to a function"));
    5050        case errSecAllocate:

Change History (1)

comment:1 Changed 12 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.