[frameworks/kfilemetadata] autotests/ossfuzz: autotests/ossfuzz: clone libpng from github to fix unreliable sourceforge downloads

Albert Astals Cid <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit d621e33e6362a087ccdb72a5eaf864c370f57966 by Albert Astals Cid, on behalf of Azhar Momin.
Committed on 02/08/2026 at 14:39.
Pushed by aacid into branch 'master'.

autotests/ossfuzz: clone libpng from github to fix unreliable sourceforge downloads

M  +1    -3    autotests/ossfuzz/build_fuzzers.sh
M  +1    -1    autotests/ossfuzz/prepare_build.sh

https://invent.kde.org/frameworks/kfilemetadata/-/commit/d621e33e6362a087ccdb72a5eaf864c370f57966

diff --git a/autotests/ossfuzz/build_fuzzers.sh b/autotests/ossfuzz/build_fuzzers.sh
index f93964da..3e262c3f 100755
--- a/autotests/ossfuzz/build_fuzzers.sh
+++ b/autotests/ossfuzz/build_fuzzers.sh
@@ -38,9 +38,7 @@ cmake . -G Ninja \
   -DEXPAT_BUILD_EXAMPLES=OFF
 ninja install -j$(nproc)
 
-cd $SRC/
-tar xzf libpng-*.tar.gz && rm -f libpng-*.tar.gz
-cd libpng-*
+cd $SRC/libpng
 cmake . -G Ninja \
     -DCMAKE_INSTALL_PREFIX=$WORK \
     -DPNG_SHARED=OFF \
diff --git a/autotests/ossfuzz/prepare_build.sh b/autotests/ossfuzz/prepare_build.sh
index 1ee7eb2f..5b33c552 100755
--- a/autotests/ossfuzz/prepare_build.sh
+++ b/autotests/ossfuzz/prepare_build.sh
@@ -9,7 +9,7 @@ pip3 install meson ninja
 
 git clone --depth 1 https://github.com/madler/zlib.git
 git clone --depth=1 https://gitlab.freedesktop.org/freetype/freetype.git
-wget https://sourceforge.net/projects/libpng/files/libpng16/1.6.50/libpng-1.6.50.tar.gz
+git clone --depth 1 https://github.com/pnggroup/libpng.git
 git clone --depth=1 https://gitlab.freedesktop.org/fontconfig/fontconfig.git
 git clone --depth 1 -b dev git://code.qt.io/qt/qtbase.git
 git clone --depth 1 https://invent.kde.org/frameworks/extra-cmake-modules.git
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.