Skip to content

Conversation

fanquake
Copy link
Member

Upgrade to the latest qrencode, and disable some warnings that cause compile failures with newer compilers (clang-15+).

I haven't tested this (from a GUI perspective) at all. This is just "good enough" to keep things compiling, and uses some similar work-arounds as we have with other older packages, i.e bdb.

Note that upstream, libqrencode is effectively unmaintained. No code changes for > 2 years. No responses to issues/PRs. Seems like the author has mostly dropped off of GitHub as well.

This fixes part of #27299.

Upgrade to the latest qrencode, and disable some warnings that cause
compile failures with newer compilers (clang-15+).

Fixes part of bitcoin#27299.
@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 23, 2023

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 TheCharlatan
Concept ACK hebasto, hernanmarino

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

@hebasto
Copy link
Member

hebasto commented Mar 23, 2023

Concept ACK.

Note that upstream, libqrencode is effectively unmaintained. No code changes for > 2 years. No responses to issues/PRs. Seems like the author has mostly dropped off of GitHub as well.

Yeah, this situation is a real concern, unfortunately.

@DrahtBot
Copy link
Contributor

Guix builds

File commit 8acfb1f
(master)
commit 635a954
(master and this pull)
SHA256SUMS.part b551f0fe973c7695... b2df16ff7564a6fc...
*-aarch64-linux-gnu-debug.tar.gz bc4fdeee751a3e70... 2371dee1ad0f6929...
*-aarch64-linux-gnu.tar.gz 905ba02b9865e4b4... 604633a55d91eb24...
*-arm-linux-gnueabihf-debug.tar.gz a0035eaebff1c3ab... f1818c5577a7570b...
*-arm-linux-gnueabihf.tar.gz 2a54c728a5684a07... 1e8810358d429fe6...
*-powerpc64-linux-gnu-debug.tar.gz e68aeb78dbc76930... ace79311b3751ebb...
*-powerpc64-linux-gnu.tar.gz 491be59d7bcca27b... 3770587745f5e07b...
*-powerpc64le-linux-gnu-debug.tar.gz 0b6b6ac221be18eb... ed503e2e021c66ef...
*-powerpc64le-linux-gnu.tar.gz 7449ab3e65d7e525... 30b461e2473b23a5...
*-riscv64-linux-gnu-debug.tar.gz 282da8415d4cd8df... cd3413a659ca7a4c...
*-riscv64-linux-gnu.tar.gz c7b92f98459171ae... 485a14c6dfc3d780...
*-x86_64-linux-gnu-debug.tar.gz 6a99deddeb8bba62... b2ab0bea55e63e39...
*-x86_64-linux-gnu.tar.gz 8701d55d016e7fe2... 29f6bad32c114a41...
*.tar.gz 4615a30fb127dda6... e060855da424a324...
guix_build.log f1eb1f24be141e20... 40aae94c0d400c64...
guix_build.log.diff 525f0077fa08e97c...

Copy link
Contributor

@TheCharlatan TheCharlatan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK eb1c3ad

I checked that the additional cflags indeed suppress errors when building with clang-15. Also went though the changed configure flags and did a quick sanity check in the gui.

Copy link
Contributor

@hernanmarino hernanmarino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested ACK, both compiling and QR generation .

@fanquake fanquake merged commit ad62bd5 into bitcoin:master Mar 27, 2023
@fanquake fanquake deleted the qrencode_4_1_1 branch March 27, 2023 11:28
@prusnak
Copy link
Contributor

prusnak commented Mar 27, 2023

There is this library which is maintained and available in multiple programming languages (C and C++ are two of them): https://github.com/nayuki/QR-Code-generator

@hernanmarino
Copy link
Contributor

There is this library which is maintained and available in multiple programming languages (C and C++ are two of them): https://github.com/nayuki/QR-Code-generator

I can take a look and attempt migrating to it, unless you e want to work on it yourself, @prusnak

@prusnak
Copy link
Contributor

prusnak commented Mar 27, 2023

I can take a look and attempt migrating to it, unless you e want to work on it yourself, @prusnak

Feel free to explore that area.

sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Mar 27, 2023
eb1c3ad depends: qrencode 4.1.1 (fanquake)

Pull request description:

  Upgrade to the latest qrencode, and disable some warnings that cause compile failures with newer compilers (clang-15+).

  I haven't tested this (from a GUI perspective) at all. This is just "good enough" to keep things compiling, and uses some similar work-arounds as we have with other older packages, i.e bdb.

  Note that upstream, libqrencode is effectively unmaintained. No code changes for > 2 years. No responses to issues/PRs. Seems like the author has mostly dropped off of GitHub as well.

  This fixes part of bitcoin#27299.

ACKs for top commit:
  TheCharlatan:
    Code review ACK eb1c3ad

Tree-SHA512: 898eaac3e9915dfcdc0a011b736fff685a3b46990bd27f6038ef4d3e7cb6a276206438ea50d45908a051ce55c9b0779347d4be1d35271b67f76f409a7dc21fed
achow101 added a commit to bitcoin-core/gui that referenced this pull request Apr 11, 2023
…used in depenendencies.md

a12d9cf doc: correct sqlite & qrencode versions used in depenendencies.md (fanquake)

Pull request description:

  Followup to bitcoin/bitcoin#27312 & bitcoin/bitcoin#25378.

ACKs for top commit:
  achow101:
    ACK a12d9cf
  hebasto:
    ACK a12d9cf, I have reviewed the code and it looks OK, I agree it can be merged.
  jarolrod:
    ACK a12d9cf

Tree-SHA512: 29e1fe4c31089fce6acbadb14aa7619fdd55738a882b490f1a0835d7648798a68b4f0d62e213c60d92f8e021ea856a4d1759578da07413265fef2338840da506
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Apr 11, 2023
…depenendencies.md

a12d9cf doc: correct sqlite & qrencode versions used in depenendencies.md (fanquake)

Pull request description:

  Followup to bitcoin#27312 & bitcoin#25378.

ACKs for top commit:
  achow101:
    ACK a12d9cf
  hebasto:
    ACK a12d9cf, I have reviewed the code and it looks OK, I agree it can be merged.
  jarolrod:
    ACK a12d9cf

Tree-SHA512: 29e1fe4c31089fce6acbadb14aa7619fdd55738a882b490f1a0835d7648798a68b4f0d62e213c60d92f8e021ea856a4d1759578da07413265fef2338840da506
@bitcoin bitcoin locked and limited conversation to collaborators Mar 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants