scripted-diff: replace deprecated Q_OS_MAC with Q_OS_MACOS #594

pull promag wants to merge 1 commits into bitcoin-core:master from promag:q_os_macos changing 10 files +34 −34
  1. promag commented at 0:27 am on April 26, 2022: contributor
    Q_OS_MAC is deprecated but it is also defined when Qt is configured with -xplatform macx-ios-clang, and currently it guards some features not available on iOS, like QProcess.
  2. scripted-diff: replace deprecated Q_OS_MAC with Q_OS_MACOS
    -BEGIN VERIFY SCRIPT-
    sed -i 's/Q_OS_MAC/Q_OS_MACOS/' $(git grep -l "Q_OS_MAC" src/qt)
    -END VERIFY SCRIPT-
    e3daecae03
  3. jarolrod added the label macOS on Apr 26, 2022
  4. jarolrod commented at 4:44 am on April 26, 2022: member

    Concept ACK

    This change is ok to do. I’ve checked qt documentation up to Qt 5.7 that mentions Q_OS_MAC is deprecated and to not use. Qt 5.7 docs even mention to use Q_OS_MACOS or Q_OS_DARWIN if targeting all Darwin platforms (macOS, IOS).

  5. katesalazar commented at 6:09 pm on April 26, 2022: contributor
  6. jarolrod commented at 7:03 am on April 27, 2022: member

    @fanquake should also rename this?

    https://github.com/bitcoin-core/gui/blob/833add0f48b0fad84d7b8cf9373a349e7aef20b4/build-aux/m4/bitcoin_qt.m4#L234

    yes, it would be appropriate to update what we want defined here. Should be opened up on the main repo though

  7. jarolrod commented at 7:06 am on April 27, 2022: member
    tACK e3daecae0333e5474b54f64619ae6f512b683787
  8. laanwj commented at 7:36 pm on April 27, 2022: member
    Should some of these be Q_OS_DARWIN? Ping @Sjors he was building for iOS at some point (bitcoin/bitcoin#1255).
  9. katesalazar commented at 7:39 pm on April 27, 2022: contributor

    thought the same thing, didn’t tell because I think they can sort those out later 🤔

    On Wed, Apr 27, 2022 at 9:37 PM laanwj @.***> wrote:

    Should some of these be Q_OS_DARWIN? Ping @Sjors https://github.com/Sjors he was building for iOS at some point (bitcoin/bitcoin#1255 https://github.com/bitcoin/bitcoin/pull/1255 ).

    — Reply to this email directly, view it on GitHub https://github.com/bitcoin-core/gui/pull/594#issuecomment-1111405099, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRS4WYUEUMYG63OR5M4A4DVHGJN3ANCNFSM5UKFFNBQ . You are receiving this because you commented.Message ID: @.***>

  10. laanwj commented at 7:42 pm on April 27, 2022: member

    didn’t tell because I think they can sort those out later thinking

    I’m not sure there’s such a hurry, might as well do it properly while we’re changing this (and maybe it’s not relevant at all, just thought I’d ask).

  11. Sjors commented at 11:23 am on April 28, 2022: member

    I didn’t get very far with iOs builds… Specifically I never even tried to compile QT.

    However, the more generic Q_OS_DARWIN sounds good to me, unless it’s about features that only exists on a Mac.

    Update: it’s actually not that clear cut, some of the code is really specific to macOS. Maybe just stick to Q_OS_MACOS until someone actually compiles QT for iOs.

  12. in src/qt/bitcoingui.cpp:30 in e3daecae03
    25@@ -26,7 +26,7 @@
    26 #include <qt/walletview.h>
    27 #endif // ENABLE_WALLET
    28 
    29-#ifdef Q_OS_MAC
    30+#ifdef Q_OS_MACOS
    31 #include <qt/macdockiconhandler.h>
    


    Sjors commented at 11:25 am on April 28, 2022:
    This is macOS specific, so Q_OS_MACOS makes sense.
  13. hebasto approved
  14. hebasto commented at 9:30 am on May 20, 2022: member

    ACK e3daecae0333e5474b54f64619ae6f512b683787.

    Although Q_OS_DARWIN is a synonym for the deprecated Q_OS_MAC, I agree to narrow guards to Q_OS_MACOS as we do not currently support iOS, watchOS, or tvOS.

  15. hebasto merged this on May 20, 2022
  16. hebasto closed this on May 20, 2022

  17. promag deleted the branch on May 20, 2022
  18. sidhujag referenced this in commit 8434c7c5fc on May 28, 2022
  19. bitcoin-core locked this on May 20, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 02:20 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me