script install_db4.sh check for `patch` command before continuing to install db4 #23579

pull ngara wants to merge 1 commits into bitcoin:master from ngara:script-ng-patch-not-found changing 1 files +7 −1
  1. ngara commented at 3:43 PM on November 23, 2021: contributor

    First contribution. I've read the CONTRIBUTING guide and hope I'm doing this correctly, but please kindly point out anything I should do differently.

    I found while running the contrib/install_db4.sh patch that it would fail suddenly with "patch: command not found". I'd rather see it fail early before doing any work, allow me to install the patch command, and then run again. (CentOS Linux) Here's a PR proposed to fix it.

    error message:

    ...
    db-4.8.30.NC/txn/txn_rec.c
    db-4.8.30.NC/txn/txn_region.c
    db-4.8.30.NC/txn/txn_stat.c
    db-4.8.30.NC/txn/txn_util.c
    ./contrib/install_db4.sh: line 71: patch: command not found
    
  2. script install_db4.sh added check for patch command 7bb8eb0bc3
  3. katesalazar commented at 3:54 PM on November 23, 2021: contributor

    "./contrib/install_db4.sh: line 71: patch: command not found" is not obscure enough to need an improvement. NAK.

  4. DrahtBot added the label Scripts and tools on Nov 23, 2021
  5. MarcoFalke commented at 4:51 PM on November 23, 2021: member

    Wouldn't it be best to remove this script? We already have depends, which can build bdb4.

  6. ngara commented at 7:35 PM on November 23, 2021: contributor

    @katesalazar not looking for an adjustment to the message; only to check dependencies before starting write operations -- at least for new users like myself who may not have everything installed yet.

  7. ngara commented at 7:42 PM on November 23, 2021: contributor
  8. laanwj commented at 10:48 AM on November 24, 2021: member

    Concept ACK, thanks for your contribution.

    Wouldn't it be best to remove this script? We already have depends, which can build bdb4.

    The depends framework doesn't work on all the platforms that this script works, IIRC. Think of the BSDs. Also it's a simple command to run, nothing to figure out. If we want to encourage people to use depends for this we should document a command that builds only berkeleydb and provides it to the build.

  9. laanwj commented at 8:12 PM on November 25, 2021: member

    Code review and tested ACK 7bb8eb0bc352b47ee962283898f9becbb4f36c62

  10. laanwj merged this on Nov 25, 2021
  11. laanwj closed this on Nov 25, 2021

  12. sidhujag referenced this in commit 647c66459d on Nov 26, 2021
  13. laanwj referenced this in commit aab5e48d42 on Dec 9, 2021
  14. sidhujag referenced this in commit e7ec69d106 on Dec 10, 2021
  15. RandyMcMillan referenced this in commit cd43b23135 on Dec 23, 2021
  16. DrahtBot locked this on Nov 25, 2022

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: 2026-05-02 12:14 UTC

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