latest release corresponds to latest release of clang, but
we might not have that version still.
this fixes build failure due to undefined 'clang::UsingType' symbol,
which is introduced in clang-14.
%ci:no-build
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
Hmmm..., why do we even need to check whether package is unique or not if we have
TERMUX_PKG_AUTO_UPDATE=true?
It should be checked before enabling auto-update.
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
upstream uses 'c-' and 'cpp-' prefix in tag name to distinguish release,
but both releases are from same repository, so auto update system
confuses release of one package to be of another.
Now we explicitly check tag name before auto-updating.
%ci:no-build
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
Do not pass `-DCMAKE_USE_SYSTEM_{BZIP2,LIBLZMA,NGHTTP2,ZSTD}` to cmake.
libbz2 and liblzma are dependencies of libarchive. CMake does have an option to use zstd because libarchive supports linking to zstd (as a side note, we are building libarchive without zstd).
libnghttp2 is dependency of libcurl.
CMake's CMakeLists.txt does have options for these libraries in case we are not using shared libarchive and libcurl but wish to link against shared libraries of dependencies of libcurl and libarchive. In case we tell CMake to use shared libarchive and libcurl, these options are basically ignored (i.e. they don't anyway affect the build), which we are doing right now. So there's no need of these options at all!
Lastly, `-DCMAKE_USE_SYSTEM_ZLIB` needs to be specified because CMake does directly link against zlib. Perhaps making this option depend on `"NOT CMAKE_USE_SYSTEM_LIBARCHIVE;NOT CMAKE_USE_SYSTEM_CURL"` in CMakeLists.txt:197 is a mistake. Reporting this to upstream might make sense