Skip to content

Conversation

fanquake
Copy link
Member

@fanquake fanquake commented Mar 22, 2024

This picks up one of the changes from #29232, which is a switch to building libnatpmp with CMake. It includes an update to the most recent version of libnatpmp (miniupnp/libnatpmp@f2433be), which includes (miniupnp/libnatpmp#43).

From an initial look I couldn't find any significant difference between the Autotools and CMake produced libs.

@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 22, 2024

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

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK hebasto, m3dwards, TheCharlatan

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #29707 (depends: build miniupnpc with CMake by fanquake)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@hebasto
Copy link
Member

hebasto commented Mar 22, 2024

Concept ACK.

@fanquake fanquake force-pushed the libnatpmp_latest_cmake branch from f6ccb79 to 1b0102e Compare March 25, 2024 16:48
@fanquake fanquake marked this pull request as ready for review March 25, 2024 17:58
@fanquake fanquake force-pushed the libnatpmp_latest_cmake branch 2 times, most recently from 3f82379 to 289c8c5 Compare March 26, 2024 12:01
fanquake and others added 2 commits April 5, 2024 15:20
This includes once CMake related change I upstreamed:
miniupnp/libnatpmp#43.
Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
@fanquake fanquake force-pushed the libnatpmp_latest_cmake branch from 289c8c5 to 3c1ae3e Compare April 5, 2024 14:22
@TheCharlatan
Copy link
Contributor

Guix build (x86_64):

a134241bc9ff9823ce078ea10dbac544ff63536ee3f66fb557414ca191b1d62d  guix-build-3c1ae3ee33d4/output/aarch64-linux-gnu/SHA256SUMS.part
f5a46ab7a5faae9ce50b2d084cf65d14372b354b9f8369178f1348b70a3b675b  guix-build-3c1ae3ee33d4/output/aarch64-linux-gnu/bitcoin-3c1ae3ee33d4-aarch64-linux-gnu-debug.tar.gz
e2353ed4f0738026fe16cd90b503ef2f02f31e0b68ba42ea80924997225ae374  guix-build-3c1ae3ee33d4/output/aarch64-linux-gnu/bitcoin-3c1ae3ee33d4-aarch64-linux-gnu.tar.gz
78060899627e9449977151dce2b8125ef3f17b1050e0396c9f907ef963f55ab1  guix-build-3c1ae3ee33d4/output/arm-linux-gnueabihf/SHA256SUMS.part
4f71666871fe889ee484cfeefe577d33760453113542fe39eab2ac2bfd34030e  guix-build-3c1ae3ee33d4/output/arm-linux-gnueabihf/bitcoin-3c1ae3ee33d4-arm-linux-gnueabihf-debug.tar.gz
fbc516363e389f477596165f5dd54b652cd868a8da91c5647364b0fa76223807  guix-build-3c1ae3ee33d4/output/arm-linux-gnueabihf/bitcoin-3c1ae3ee33d4-arm-linux-gnueabihf.tar.gz
5811efb8663f1e353525908f9b98594fa88d563af157c988b194fd125c958f4c  guix-build-3c1ae3ee33d4/output/arm64-apple-darwin/SHA256SUMS.part
10e7f27dc83c471f1fa2ef5e683ae30b592c9077d6648fee45545f6c7a76b556  guix-build-3c1ae3ee33d4/output/arm64-apple-darwin/bitcoin-3c1ae3ee33d4-arm64-apple-darwin-unsigned.tar.gz
4b9d4714bbec7304969043abd51b0b5391120ec3295c58516741e3d06e550362  guix-build-3c1ae3ee33d4/output/arm64-apple-darwin/bitcoin-3c1ae3ee33d4-arm64-apple-darwin-unsigned.zip
c026a9c6975db5ce11d0005cf0640877ae59d4933a5654e8af80c9e55017b065  guix-build-3c1ae3ee33d4/output/arm64-apple-darwin/bitcoin-3c1ae3ee33d4-arm64-apple-darwin.tar.gz
3c8b6655d2fb37aa1abef62852a602025b089cac54870f5dadd4d3030efcc11e  guix-build-3c1ae3ee33d4/output/dist-archive/bitcoin-3c1ae3ee33d4.tar.gz
ffdec3a09f67bf1813dac52021b35a93fe7574507d365db7fd89eeefe6a39086  guix-build-3c1ae3ee33d4/output/powerpc64-linux-gnu/SHA256SUMS.part
af0a7e085c00b1ef6195ed578b03d50a4ac095dcc06076967efde0001e2df6f8  guix-build-3c1ae3ee33d4/output/powerpc64-linux-gnu/bitcoin-3c1ae3ee33d4-powerpc64-linux-gnu-debug.tar.gz
5f6d9a5d629c3c23fa2b9b3d5bf358b58e0bb967303d716edbd237511890820f  guix-build-3c1ae3ee33d4/output/powerpc64-linux-gnu/bitcoin-3c1ae3ee33d4-powerpc64-linux-gnu.tar.gz
492661b9b094ef28af4c15fc778ad98bfdd6555084929ebe78bf7f9c2ef7da8d  guix-build-3c1ae3ee33d4/output/riscv64-linux-gnu/SHA256SUMS.part
d11cfef1935eb8eca30eb5daf274192527d8efd8e0e1fb89b921b07f7e75cfc7  guix-build-3c1ae3ee33d4/output/riscv64-linux-gnu/bitcoin-3c1ae3ee33d4-riscv64-linux-gnu-debug.tar.gz
5b7b5dc5dba62981b6258dff4d2d7de4ef4fb942d46f791217bfcb68e63371ae  guix-build-3c1ae3ee33d4/output/riscv64-linux-gnu/bitcoin-3c1ae3ee33d4-riscv64-linux-gnu.tar.gz
dfe114ec00ac686e72f7c4fdcc186dc59721edacb3f95b4c09359931ec1c156f  guix-build-3c1ae3ee33d4/output/x86_64-apple-darwin/SHA256SUMS.part
73e92f868e21325fab2a8209b421078e4bc78d004bb5484b7775d2f93e8e10ce  guix-build-3c1ae3ee33d4/output/x86_64-apple-darwin/bitcoin-3c1ae3ee33d4-x86_64-apple-darwin-unsigned.tar.gz
37e9420d74102a5b4e8da8e01b9cdc0321e92e348f2c3ce96968556867f3dd92  guix-build-3c1ae3ee33d4/output/x86_64-apple-darwin/bitcoin-3c1ae3ee33d4-x86_64-apple-darwin-unsigned.zip
83d8297e31a1d18bfe5e17aa06d47a613a6a53361a62b69e784bace682b28757  guix-build-3c1ae3ee33d4/output/x86_64-apple-darwin/bitcoin-3c1ae3ee33d4-x86_64-apple-darwin.tar.gz
4eee423fb1e5a570a5cbbf0a911a785e7760f990bce4e79b10a0173e664b0943  guix-build-3c1ae3ee33d4/output/x86_64-linux-gnu/SHA256SUMS.part
4284bc6e2cd40aa91eb8c190907ee7baa39e999ff3e699f53d3a851be9b0eeea  guix-build-3c1ae3ee33d4/output/x86_64-linux-gnu/bitcoin-3c1ae3ee33d4-x86_64-linux-gnu-debug.tar.gz
a88b4ad6be5f03bfe4283c9d5d4a3eec2b74307995c6a5286dd0ab930d2240b5  guix-build-3c1ae3ee33d4/output/x86_64-linux-gnu/bitcoin-3c1ae3ee33d4-x86_64-linux-gnu.tar.gz
4037f7f339beee475220e7261b698356a636889b6482019483632900e646c31c  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/SHA256SUMS.part
f2d372664062179a380907f91af47d2d6585ace72498aa2f86d7a14540f737d3  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/bitcoin-3c1ae3ee33d4-win64-debug.zip
ec6a5638012a1b278f84be31004c2820b0305abc41a494671ca5e483e4f1c649  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/bitcoin-3c1ae3ee33d4-win64-setup-unsigned.exe
59eedae949fd796aa6e17bfeee7786ffb8d34fd56c1502a49f3ca6ba0be91d4a  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/bitcoin-3c1ae3ee33d4-win64-unsigned.tar.gz
2d02b86f88065fb1023938f8f1e1c012560903ee181d9212558e29ab80ed6530  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/bitcoin-3c1ae3ee33d4-win64.zip

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

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

Approach ACK 3c1ae3e.

I've verified compiler flags for different scenarios, including cross-compiling for Windows and providing DEBUG=1. CMake ones lack -Wall -Wextra flags, but that's not a blocker.

Also this PR limits the installed headers to ones that are actually used in our code, which is fine.

@hebasto
Copy link
Member

hebasto commented Apr 20, 2024

My Guix builds:

x86_64
a134241bc9ff9823ce078ea10dbac544ff63536ee3f66fb557414ca191b1d62d  guix-build-3c1ae3ee33d4/output/aarch64-linux-gnu/SHA256SUMS.part
f5a46ab7a5faae9ce50b2d084cf65d14372b354b9f8369178f1348b70a3b675b  guix-build-3c1ae3ee33d4/output/aarch64-linux-gnu/bitcoin-3c1ae3ee33d4-aarch64-linux-gnu-debug.tar.gz
e2353ed4f0738026fe16cd90b503ef2f02f31e0b68ba42ea80924997225ae374  guix-build-3c1ae3ee33d4/output/aarch64-linux-gnu/bitcoin-3c1ae3ee33d4-aarch64-linux-gnu.tar.gz
78060899627e9449977151dce2b8125ef3f17b1050e0396c9f907ef963f55ab1  guix-build-3c1ae3ee33d4/output/arm-linux-gnueabihf/SHA256SUMS.part
4f71666871fe889ee484cfeefe577d33760453113542fe39eab2ac2bfd34030e  guix-build-3c1ae3ee33d4/output/arm-linux-gnueabihf/bitcoin-3c1ae3ee33d4-arm-linux-gnueabihf-debug.tar.gz
fbc516363e389f477596165f5dd54b652cd868a8da91c5647364b0fa76223807  guix-build-3c1ae3ee33d4/output/arm-linux-gnueabihf/bitcoin-3c1ae3ee33d4-arm-linux-gnueabihf.tar.gz
5811efb8663f1e353525908f9b98594fa88d563af157c988b194fd125c958f4c  guix-build-3c1ae3ee33d4/output/arm64-apple-darwin/SHA256SUMS.part
10e7f27dc83c471f1fa2ef5e683ae30b592c9077d6648fee45545f6c7a76b556  guix-build-3c1ae3ee33d4/output/arm64-apple-darwin/bitcoin-3c1ae3ee33d4-arm64-apple-darwin-unsigned.tar.gz
4b9d4714bbec7304969043abd51b0b5391120ec3295c58516741e3d06e550362  guix-build-3c1ae3ee33d4/output/arm64-apple-darwin/bitcoin-3c1ae3ee33d4-arm64-apple-darwin-unsigned.zip
c026a9c6975db5ce11d0005cf0640877ae59d4933a5654e8af80c9e55017b065  guix-build-3c1ae3ee33d4/output/arm64-apple-darwin/bitcoin-3c1ae3ee33d4-arm64-apple-darwin.tar.gz
3c8b6655d2fb37aa1abef62852a602025b089cac54870f5dadd4d3030efcc11e  guix-build-3c1ae3ee33d4/output/dist-archive/bitcoin-3c1ae3ee33d4.tar.gz
ffdec3a09f67bf1813dac52021b35a93fe7574507d365db7fd89eeefe6a39086  guix-build-3c1ae3ee33d4/output/powerpc64-linux-gnu/SHA256SUMS.part
af0a7e085c00b1ef6195ed578b03d50a4ac095dcc06076967efde0001e2df6f8  guix-build-3c1ae3ee33d4/output/powerpc64-linux-gnu/bitcoin-3c1ae3ee33d4-powerpc64-linux-gnu-debug.tar.gz
5f6d9a5d629c3c23fa2b9b3d5bf358b58e0bb967303d716edbd237511890820f  guix-build-3c1ae3ee33d4/output/powerpc64-linux-gnu/bitcoin-3c1ae3ee33d4-powerpc64-linux-gnu.tar.gz
492661b9b094ef28af4c15fc778ad98bfdd6555084929ebe78bf7f9c2ef7da8d  guix-build-3c1ae3ee33d4/output/riscv64-linux-gnu/SHA256SUMS.part
d11cfef1935eb8eca30eb5daf274192527d8efd8e0e1fb89b921b07f7e75cfc7  guix-build-3c1ae3ee33d4/output/riscv64-linux-gnu/bitcoin-3c1ae3ee33d4-riscv64-linux-gnu-debug.tar.gz
5b7b5dc5dba62981b6258dff4d2d7de4ef4fb942d46f791217bfcb68e63371ae  guix-build-3c1ae3ee33d4/output/riscv64-linux-gnu/bitcoin-3c1ae3ee33d4-riscv64-linux-gnu.tar.gz
dfe114ec00ac686e72f7c4fdcc186dc59721edacb3f95b4c09359931ec1c156f  guix-build-3c1ae3ee33d4/output/x86_64-apple-darwin/SHA256SUMS.part
73e92f868e21325fab2a8209b421078e4bc78d004bb5484b7775d2f93e8e10ce  guix-build-3c1ae3ee33d4/output/x86_64-apple-darwin/bitcoin-3c1ae3ee33d4-x86_64-apple-darwin-unsigned.tar.gz
37e9420d74102a5b4e8da8e01b9cdc0321e92e348f2c3ce96968556867f3dd92  guix-build-3c1ae3ee33d4/output/x86_64-apple-darwin/bitcoin-3c1ae3ee33d4-x86_64-apple-darwin-unsigned.zip
83d8297e31a1d18bfe5e17aa06d47a613a6a53361a62b69e784bace682b28757  guix-build-3c1ae3ee33d4/output/x86_64-apple-darwin/bitcoin-3c1ae3ee33d4-x86_64-apple-darwin.tar.gz
4eee423fb1e5a570a5cbbf0a911a785e7760f990bce4e79b10a0173e664b0943  guix-build-3c1ae3ee33d4/output/x86_64-linux-gnu/SHA256SUMS.part
4284bc6e2cd40aa91eb8c190907ee7baa39e999ff3e699f53d3a851be9b0eeea  guix-build-3c1ae3ee33d4/output/x86_64-linux-gnu/bitcoin-3c1ae3ee33d4-x86_64-linux-gnu-debug.tar.gz
a88b4ad6be5f03bfe4283c9d5d4a3eec2b74307995c6a5286dd0ab930d2240b5  guix-build-3c1ae3ee33d4/output/x86_64-linux-gnu/bitcoin-3c1ae3ee33d4-x86_64-linux-gnu.tar.gz
4037f7f339beee475220e7261b698356a636889b6482019483632900e646c31c  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/SHA256SUMS.part
f2d372664062179a380907f91af47d2d6585ace72498aa2f86d7a14540f737d3  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/bitcoin-3c1ae3ee33d4-win64-debug.zip
ec6a5638012a1b278f84be31004c2820b0305abc41a494671ca5e483e4f1c649  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/bitcoin-3c1ae3ee33d4-win64-setup-unsigned.exe
59eedae949fd796aa6e17bfeee7786ffb8d34fd56c1502a49f3ca6ba0be91d4a  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/bitcoin-3c1ae3ee33d4-win64-unsigned.tar.gz
2d02b86f88065fb1023938f8f1e1c012560903ee181d9212558e29ab80ed6530  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/bitcoin-3c1ae3ee33d4-win64.zip

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

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

ACK 3c1ae3e.

endef

define $(package)_build_cmds
$(MAKE) libnatpmp.a $($(package)_build_opts)
$(MAKE) natpmp
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps this is what we want but I thought it worth mentioning that there is a difference on my Mac between this and having cmake call make with: cmake --build . --target natpmp.

$(MAKE) from autotools for me calls GNU MAKE 3.81 and cmake delegates to gmake being GNU MAKE 4.4.1.

Should we call cmake instead and allow it to decide the best make to delegate to?

Copy link
Member Author

Choose a reason for hiding this comment

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

Possibly, but if we are going to do that, we could do it globally/all at once, or even set something at a higher level in depends. Not sure if we have to change this during these migrations.

@m3dwards
Copy link
Contributor

My Guix builds:

a134241bc9ff9823ce078ea10dbac544ff63536ee3f66fb557414ca191b1d62d  guix-build-3c1ae3ee33d4/output/aarch64-linux-gnu/SHA256SUMS.part
f5a46ab7a5faae9ce50b2d084cf65d14372b354b9f8369178f1348b70a3b675b  guix-build-3c1ae3ee33d4/output/aarch64-linux-gnu/bitcoin-3c1ae3ee33d4-aarch64-linux-gnu-debug.tar.gz
e2353ed4f0738026fe16cd90b503ef2f02f31e0b68ba42ea80924997225ae374  guix-build-3c1ae3ee33d4/output/aarch64-linux-gnu/bitcoin-3c1ae3ee33d4-aarch64-linux-gnu.tar.gz
78060899627e9449977151dce2b8125ef3f17b1050e0396c9f907ef963f55ab1  guix-build-3c1ae3ee33d4/output/arm-linux-gnueabihf/SHA256SUMS.part
4f71666871fe889ee484cfeefe577d33760453113542fe39eab2ac2bfd34030e  guix-build-3c1ae3ee33d4/output/arm-linux-gnueabihf/bitcoin-3c1ae3ee33d4-arm-linux-gnueabihf-debug.tar.gz
fbc516363e389f477596165f5dd54b652cd868a8da91c5647364b0fa76223807  guix-build-3c1ae3ee33d4/output/arm-linux-gnueabihf/bitcoin-3c1ae3ee33d4-arm-linux-gnueabihf.tar.gz
5811efb8663f1e353525908f9b98594fa88d563af157c988b194fd125c958f4c  guix-build-3c1ae3ee33d4/output/arm64-apple-darwin/SHA256SUMS.part
10e7f27dc83c471f1fa2ef5e683ae30b592c9077d6648fee45545f6c7a76b556  guix-build-3c1ae3ee33d4/output/arm64-apple-darwin/bitcoin-3c1ae3ee33d4-arm64-apple-darwin-unsigned.tar.gz
4b9d4714bbec7304969043abd51b0b5391120ec3295c58516741e3d06e550362  guix-build-3c1ae3ee33d4/output/arm64-apple-darwin/bitcoin-3c1ae3ee33d4-arm64-apple-darwin-unsigned.zip
c026a9c6975db5ce11d0005cf0640877ae59d4933a5654e8af80c9e55017b065  guix-build-3c1ae3ee33d4/output/arm64-apple-darwin/bitcoin-3c1ae3ee33d4-arm64-apple-darwin.tar.gz
3c8b6655d2fb37aa1abef62852a602025b089cac54870f5dadd4d3030efcc11e  guix-build-3c1ae3ee33d4/output/dist-archive/bitcoin-3c1ae3ee33d4.tar.gz
ffdec3a09f67bf1813dac52021b35a93fe7574507d365db7fd89eeefe6a39086  guix-build-3c1ae3ee33d4/output/powerpc64-linux-gnu/SHA256SUMS.part
af0a7e085c00b1ef6195ed578b03d50a4ac095dcc06076967efde0001e2df6f8  guix-build-3c1ae3ee33d4/output/powerpc64-linux-gnu/bitcoin-3c1ae3ee33d4-powerpc64-linux-gnu-debug.tar.gz
5f6d9a5d629c3c23fa2b9b3d5bf358b58e0bb967303d716edbd237511890820f  guix-build-3c1ae3ee33d4/output/powerpc64-linux-gnu/bitcoin-3c1ae3ee33d4-powerpc64-linux-gnu.tar.gz
492661b9b094ef28af4c15fc778ad98bfdd6555084929ebe78bf7f9c2ef7da8d  guix-build-3c1ae3ee33d4/output/riscv64-linux-gnu/SHA256SUMS.part
d11cfef1935eb8eca30eb5daf274192527d8efd8e0e1fb89b921b07f7e75cfc7  guix-build-3c1ae3ee33d4/output/riscv64-linux-gnu/bitcoin-3c1ae3ee33d4-riscv64-linux-gnu-debug.tar.gz
5b7b5dc5dba62981b6258dff4d2d7de4ef4fb942d46f791217bfcb68e63371ae  guix-build-3c1ae3ee33d4/output/riscv64-linux-gnu/bitcoin-3c1ae3ee33d4-riscv64-linux-gnu.tar.gz
dfe114ec00ac686e72f7c4fdcc186dc59721edacb3f95b4c09359931ec1c156f  guix-build-3c1ae3ee33d4/output/x86_64-apple-darwin/SHA256SUMS.part
73e92f868e21325fab2a8209b421078e4bc78d004bb5484b7775d2f93e8e10ce  guix-build-3c1ae3ee33d4/output/x86_64-apple-darwin/bitcoin-3c1ae3ee33d4-x86_64-apple-darwin-unsigned.tar.gz
37e9420d74102a5b4e8da8e01b9cdc0321e92e348f2c3ce96968556867f3dd92  guix-build-3c1ae3ee33d4/output/x86_64-apple-darwin/bitcoin-3c1ae3ee33d4-x86_64-apple-darwin-unsigned.zip
83d8297e31a1d18bfe5e17aa06d47a613a6a53361a62b69e784bace682b28757  guix-build-3c1ae3ee33d4/output/x86_64-apple-darwin/bitcoin-3c1ae3ee33d4-x86_64-apple-darwin.tar.gz
4eee423fb1e5a570a5cbbf0a911a785e7760f990bce4e79b10a0173e664b0943  guix-build-3c1ae3ee33d4/output/x86_64-linux-gnu/SHA256SUMS.part
4284bc6e2cd40aa91eb8c190907ee7baa39e999ff3e699f53d3a851be9b0eeea  guix-build-3c1ae3ee33d4/output/x86_64-linux-gnu/bitcoin-3c1ae3ee33d4-x86_64-linux-gnu-debug.tar.gz
a88b4ad6be5f03bfe4283c9d5d4a3eec2b74307995c6a5286dd0ab930d2240b5  guix-build-3c1ae3ee33d4/output/x86_64-linux-gnu/bitcoin-3c1ae3ee33d4-x86_64-linux-gnu.tar.gz
4037f7f339beee475220e7261b698356a636889b6482019483632900e646c31c  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/SHA256SUMS.part
f2d372664062179a380907f91af47d2d6585ace72498aa2f86d7a14540f737d3  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/bitcoin-3c1ae3ee33d4-win64-debug.zip
ec6a5638012a1b278f84be31004c2820b0305abc41a494671ca5e483e4f1c649  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/bitcoin-3c1ae3ee33d4-win64-setup-unsigned.exe
59eedae949fd796aa6e17bfeee7786ffb8d34fd56c1502a49f3ca6ba0be91d4a  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/bitcoin-3c1ae3ee33d4-win64-unsigned.tar.gz
2d02b86f88065fb1023938f8f1e1c012560903ee181d9212558e29ab80ed6530  guix-build-3c1ae3ee33d4/output/x86_64-w64-mingw32/bitcoin-3c1ae3ee33d4-win64.zip

@m3dwards
Copy link
Contributor

m3dwards commented Apr 25, 2024

I don't believe any of these are a problem but some differences on flags passed to clang on my Mac were as follows:

When using this PR the following extra flags were seen vs master:

-MD
-MT CMakeFiles/natpmp.dir/natpmp.c.o
-MF CMakeFiles/natpmp.dir/natpmp.c.o.d
-I/Users/max/source/bitcoin/depends/work/build/aarch64-apple-darwin23.0.0/libnatpmp/f2433bec24ca3d3f22a8a7840728a3ac177f94ba-2550f8d6ff0

On master these flags were seen which were not present when using cmake and this PR:

-DMACOSX
-D_DARWIN_C_SOURCE
-Wall
-Wextra
-I/System/Library/Frameworks/JavaVM.framework/Headers

@m3dwards
Copy link
Contributor

ACK 3c1ae3e

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.

ACK 3c1ae3e

Also checked the natpmp changes since the last update.

@fanquake fanquake merged commit 10f5022 into bitcoin:master Apr 25, 2024
@fanquake fanquake deleted the libnatpmp_latest_cmake branch April 25, 2024 13:08
fanquake added a commit that referenced this pull request May 6, 2024
7c69baf depends: pass verbose through to cmake based make (Max Edwards)

Pull request description:

  While testing #29708 I was not able to enable verbose output to check which flags were being given to the compiler.

  With this PR, running depends with V=1 will enable verbose output from makefiles generated by cmake.

  How to test:

  ```shell
  make -C depends libnatpmp V=1
  ```

ACKs for top commit:
  hebasto:
    ACK 7c69baf. Tested using the folowing command:
  fanquake:
    ACK 7c69baf

Tree-SHA512: 81cd1326e940c5f14cbde96735fd02b03c1150881ed88d1e8dfa9385dfa12284bfa2cdfe097ce5f43a726c1718afb76ae16f71552ab68c207d74fdc1f7bb46ae
achow101 added a commit that referenced this pull request Aug 5, 2024
ee934d0 doc: Add missed cmake package to build depends (Hennadii Stepanov)

Pull request description:

  CMake is used to build the following packages in depends when cross-compiling for Windows:
  - `libevent` (#29835)
  - `libnatpmp` (#29708)
  - `miniupnpc` (#29707)
  - `qrencode` (#29725)
  - `zeromq` (#29723)

ACKs for top commit:
  vostrnad:
    ACK ee934d0
  achow101:
    ACK ee934d0
  TheCharlatan:
    ACK ee934d0
  tdb3:
    cr ut ACK ee934d0

Tree-SHA512: 7483a680607aa218a375c285859ab19773267c81324de61f457f40057381090b15779534ff0ddb3d981341b9cd9b9e1d4afffda1ec5d5b105ad5bfcac3c7d76a
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Oct 25, 2024
…efiles

7c69baf depends: pass verbose through to cmake based make (Max Edwards)

Pull request description:

  While testing bitcoin#29708 I was not able to enable verbose output to check which flags were being given to the compiler.

  With this PR, running depends with V=1 will enable verbose output from makefiles generated by cmake.

  How to test:

  ```shell
  make -C depends libnatpmp V=1
  ```

ACKs for top commit:
  hebasto:
    ACK 7c69baf. Tested using the folowing command:
  fanquake:
    ACK 7c69baf

Tree-SHA512: 81cd1326e940c5f14cbde96735fd02b03c1150881ed88d1e8dfa9385dfa12284bfa2cdfe097ce5f43a726c1718afb76ae16f71552ab68c207d74fdc1f7bb46ae
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Oct 26, 2024
…efiles

7c69baf depends: pass verbose through to cmake based make (Max Edwards)

Pull request description:

  While testing bitcoin#29708 I was not able to enable verbose output to check which flags were being given to the compiler.

  With this PR, running depends with V=1 will enable verbose output from makefiles generated by cmake.

  How to test:

  ```shell
  make -C depends libnatpmp V=1
  ```

ACKs for top commit:
  hebasto:
    ACK 7c69baf. Tested using the folowing command:
  fanquake:
    ACK 7c69baf

Tree-SHA512: 81cd1326e940c5f14cbde96735fd02b03c1150881ed88d1e8dfa9385dfa12284bfa2cdfe097ce5f43a726c1718afb76ae16f71552ab68c207d74fdc1f7bb46ae
@bitcoin bitcoin locked and limited conversation to collaborators Apr 25, 2025
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.

6 participants