Just using upstream libpng from #14066
This should be testable/reviewable without a PPC64 machine (and once merged should avoid needing to rebuild Qt for #14066).
0@@ -0,0 +1,23 @@
1+package=libpng
2+$(package)_version=1.6.34
0@@ -0,0 +1,23 @@
1+package=libpng
2+$(package)_version=1.6.34
3+$(package)_download_path=http://ftp.osuosl.org/pub/libpng/src/libpng16/
https://downloads.sourceforge.net/project/libpng/libpng16/1.6.37/libpng-1.6.37.tar.xz
as the URL. Was this was a mirror you were redirected to, or were you trying to avoid SourceForge? I can’t see this URL anywhere on http://www.libpng.org/pub/png/libpng.html.
13@@ -14,7 +14,7 @@ These are the dependencies currently used by Bitcoin Core. You can find instruct
14 | GCC | | [4.8+](https://gcc.gnu.org/) (C++11 support) | | | |
15 | HarfBuzz-NG | | | | | [Yes](https://github.com/bitcoin/bitcoin/blob/master/depends/packages/qt.mk) |
16 | libevent | [2.1.11-stable](https://github.com/libevent/libevent/releases) | [2.0.21](https://github.com/bitcoin/bitcoin/pull/18676) | No | | |
17-| libpng | | | | | [Yes](https://github.com/bitcoin/bitcoin/blob/master/depends/packages/qt.mk) |
18+| libpng | | | | | No |
Version used
and CVEs
here? CVE-2019-7317
applies to libpng prior to 1.6.37.
0@@ -0,0 +1,23 @@
1+package=libpng
2+$(package)_version=1.6.34
3+$(package)_download_path=http://ftp.osuosl.org/pub/libpng/src/libpng16/
4+$(package)_file_name=$(package)-$($(package)_version).tar.gz
5+$(package)_sha256_hash=574623a4901a9969080ab4a2df9437026c8a87150dfd5c235e28c94b212964a7
6+$(package)_dependencies=zlib
7+
8+define $(package)_set_vars
9+ $(package)_config_opts=--enable-static --disable-shared
--disable-dependency-tracking
here (as we do to all other packages that support it). Had a quick look at the configure options and it doesn’t seem like there’s anything obvious we should be disabling, like building documentation.
They’ve already been postponed an annoyingly long time. Using upstream libpng is better anyway - the one bundled with Qt is at best a slower “bare minimum”.
Concept ACK.
0@@ -0,0 +1,24 @@
1+package=libpng
2+$(package)_version=1.6.37
3+$(package)_download_path=https://downloads.sourceforge.net/project/libpng/libpng16/$($(package)_version)/
4+$(package)_file_name=$(package)-$($(package)_version).tar.gz
5+$(package)_sha256_hash=c509d15ebdbfa355469828df2edcba15c5656761dd3037fcf28c206b5268a035
Switch to LZMA-compressed archive?
0$(package)_file_name=$(package)-$($(package)_version).tar.xz
1$(package)_sha256_hash=505e70834d35383537b6491e7ae8641f1a4bed1876dbfe361201fc80868d88ca
less by 50% :)
ACK 8d8d3f1396736a3ae284f65eaa529984b9c3e97f, tested on Linux Mint 20 (x86_64):
libpng16.a
, verified configure options and outputGitian builds:
04995b8f64c966d17d9aa8db328ad32e07fc1c9d411c611a236d4129eb3b40608 bitcoin-8d8d3f139673-aarch64-linux-gnu-debug.tar.gz
1f9e26ef0e9482ce08f8b5c55d42db23d3c8f428222311901fcdbfa972d4c1972 bitcoin-8d8d3f139673-aarch64-linux-gnu.tar.gz
236dcb911729493e70123a4d4a826ea2e1744e57fa34d43b2bb469764985363e5 bitcoin-8d8d3f139673-arm-linux-gnueabihf-debug.tar.gz
30074ce82fff383930bc426ca17cb49d1dcb8a2f5080186eb9d0a9a3ecd39bc33 bitcoin-8d8d3f139673-arm-linux-gnueabihf.tar.gz
4328e5756d14428a5abe357ccfe67ed998d3bf78c238e34d9e71b2d40eb8be7e4 bitcoin-8d8d3f139673-riscv64-linux-gnu-debug.tar.gz
52a557d53a2b7efd88619318241460f7b9df0d25df072a9e746352c4095bc624b bitcoin-8d8d3f139673-riscv64-linux-gnu.tar.gz
6f5a099afb3b7bc2a90f1b3b32258242a89fc286c171546d305bc8f7eb3d3610b bitcoin-8d8d3f139673-x86_64-linux-gnu-debug.tar.gz
7660c86f13069dd7f189e1c5110fbeda53657a0a220b5ee6b76328ef0a283ef71 bitcoin-8d8d3f139673-x86_64-linux-gnu.tar.gz
8
9b1d19a481ea6cc8279d8cc184139992fd3469b6be1bcf86576752aaf11d987c8 bitcoin-8d8d3f139673-win-unsigned.tar.gz
1059127b06b566b243664ef5699a78c54841fc81b4122a046b1332b250dee081f2 bitcoin-8d8d3f139673-win64-debug.zip
117821e41feeaf713083132129eda25040d75e8d2c36229422854b0986efb5c2eb bitcoin-8d8d3f139673-win64-setup-unsigned.exe
12b620958be279680e259ed1ca366f98f7a2880c32fdd42e9645efe44c8443e69d bitcoin-8d8d3f139673-win64.zip
13
145a46200cfb7e527d5b75ba50e615bff13ec76aa7022fc32978ab8baa9c160d2c bitcoin-8d8d3f139673-osx-unsigned.dmg
15ce3790234531e8013471d1b7bd3c57df3c6474c4ef61d0cbb3744ff13553ebc6 bitcoin-8d8d3f139673-osx-unsigned.tar.gz
161053e6776209260d58d695543bad261690c1b71b90d52e96588e68d17c972cf7 bitcoin-8d8d3f139673-osx64.tar.gz
17
1888224654414478c5602342e14ee8aedcbf31f7416d8e914b750314e062de756e src/bitcoin-8d8d3f139673.tar.gz
Tested bitcoin-qt
gitian binaries on:
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
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.
Agree with @laanwj generally, no strong preference. The history here is that we’ve generally only ever self-built libs needed internally by qt if qt is the only user. zlib, for example, is used by a few things, so we built it ourselves rather than using qt’s bundled copy.
That said, if there’s good reason for us to build it ourselves, I don’t think there’s any reason not to. And working around a stale/incompatible bundled libpng seems like decent reason. So, concept ACK.