[24.x] Additional backports for 24.1 #27474

pull fanquake wants to merge 5 commits into bitcoin:24.x from fanquake:24_1_rc2_backports changing 9 files +33 −9
  1. fanquake commented at 2:18 pm on April 17, 2023: member

    Backports:

  2. Don't return OutputType::UNKNOWN in ParseOutputType
    Fixes https://github.com/bitcoin/bitcoin/issues/27472
    
    Signed-off-by: Pttn <28868425+Pttn@users.noreply.github.com>
    
    Github-Pull: #27473
    Rebased-From: 0d6383fda04a99726654945a737bbb1369e0e44a
    0bac52d5cf
  3. fanquake added this to the milestone 24.1 on Apr 17, 2023
  4. DrahtBot commented at 2:18 pm on April 17, 2023: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK stickies-v, hebasto, jonatack

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  5. DrahtBot added the label Backport on Apr 17, 2023
  6. jonatack commented at 2:22 pm on April 17, 2023: contributor
  7. depends: fix compiling bdb with clang-16 on aarch64
    Compiling bdb with clang-16 on aarch64 (hardware) currently fails:
    ```bash
    make -C depends/ bdb CC=clang CXX=clang++
    ...
    checking for mutexes... UNIX/fcntl
    configure: WARNING: NO SHARED LATCH IMPLEMENTATION FOUND FOR THIS PLATFORM.
    configure: error: Unable to find a mutex implementation
    ```
    
    Looking at config.log we've got:
    ```bash
    configure:18704: checking for mutexes
    configure:18815: clang -o conftest -pipe -std=c11 -O2 -Wno-error=implicit-function-declaration -Wno-error=format-security    -I/bitcoin/depends/aarch64-unknown-linux-gnu/include -D_GNU_SOURCE -D_REENTRANT   -L/bitcoin/depends/aarch64-unknown-linux-gnu/lib conftest.c  -lpthread >&5
    conftest.c:45:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
    main() {
    ^
    int
    conftest.c:50:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            exit (
            ^
    conftest.c:50:2: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
    1 warning and 1 error generated.
    ```
    
    Clang-16 changed `-Wimplicit-function-declaration` and `-Wimplicit-int`
    warnings into errors, see:
    https://releases.llvm.org/16.0.0/tools/clang/docs/ReleaseNotes.html#potentially-breaking-changes.
    
    > The -Wimplicit-function-declaration and -Wimplicit-int warnings now
    > default to an error in C99, C11, and C17. As of C2x, support for implicit
    > function declarations and implicit int has been removed, and the
    > warning options will have no effect. Specifying -Wimplicit-int in
    > C89 mode will now issue warnings instead of being a noop.
    
    Github-Pull: #27462
    Rebased-From: f8b8458276983f8fc1e2a47c4d00c1e30633067d
    c40b1da2fd
  8. fanquake force-pushed on Apr 18, 2023
  9. hebasto approved
  10. hebasto commented at 9:34 am on April 18, 2023: member
    ACK 5c937ae7c323198c76f1743870c68f8576305a6e
  11. stickies-v commented at 10:40 am on April 18, 2023: contributor

    Suggest adding https://github.com/stickies-v/bitcoin/commit/db6cf79694112a4679378fdd1f2bdf69cf6adbea which backports #27468, but without the changes to rest_mempool (query parameters in this endpoint were added only after v24 in #26207).

    Edit: this backport is relevant only for 24.x, not for 23.x.

  12. bugfix: rest: avoid segfault for invalid URI
    `evhttp_uri_parse` can return a nullptr, for example when the URI
    contains invalid characters (e.g. "%").
    `GetQueryParameterFromUri` passes the output of `evhttp_uri_parse`
    straight into `evhttp_uri_get_query`, which means that anyone calling
    a REST endpoint in which query parameters are used (e.g. `rest_headers`)
    can cause a segfault.
    
    This bugfix is designed to be minimal and without additional behaviour change.
    
    Github-Pull: #27468
    Rebased-From: 11422cc5720c8d73a87600de8fe8abb156db80dc
    3a26b19df2
  13. doc: fix/improve warning helps in {create,load,unload,restore}wallet
    - clarify that there can be multiple warning messages
    - specify the correct wallet action
    - describe the use of newlines as delimiters
    
    Github-Pull: #27279
    Rebased-From: f73782a9032a462a71569e9424db9bf9eeababf3
    fc8c1a8deb
  14. doc: update 24.1 release notes dc711fbd32
  15. fanquake commented at 11:30 am on April 18, 2023: member
  16. fanquake force-pushed on Apr 18, 2023
  17. stickies-v approved
  18. stickies-v commented at 1:43 pm on April 18, 2023: contributor

    ACK dc711fbd32653b09e196f72942106114a32353f4

    Verified that the backports correspond to their original PR, and I can’t see any silent merge conflicts. Release notes match the backported changes.

  19. DrahtBot requested review from hebasto on Apr 18, 2023
  20. hebasto approved
  21. hebasto commented at 1:53 pm on April 18, 2023: member
    re-ACK dc711fbd32653b09e196f72942106114a32353f4
  22. jonatack commented at 2:00 pm on April 18, 2023: contributor

    ACK dc711fbd32653b09e196f72942106114a32353f4

    Pull description is missing some of the changes.

  23. fanquake commented at 2:32 pm on April 18, 2023: member
    This has been merged.
  24. fanquake closed this on Apr 18, 2023

  25. fanquake deleted the branch on Apr 18, 2023
  26. fanquake referenced this in commit 15a24781d0 on Apr 18, 2023
  27. fanquake referenced this in commit 36c15d7d5c on Apr 19, 2023
  28. bitcoin locked this on Apr 17, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-21 15:12 UTC

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