diff options
Diffstat (limited to 'community/libssh/APKBUILD')
-rw-r--r-- | community/libssh/APKBUILD | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/community/libssh/APKBUILD b/community/libssh/APKBUILD index 4ea0f5bf398..1811a539873 100644 --- a/community/libssh/APKBUILD +++ b/community/libssh/APKBUILD @@ -1,21 +1,24 @@ # Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libssh -pkgver=0.9.6 +pkgver=0.10.6 pkgrel=0 pkgdesc="Library for accessing ssh client services through C libraries" options="!check" # Tests require CLIENT_TESTING enabled which needs socket_wrapper url="https://www.libssh.org/" arch="all" license="LGPL-2.1-or-later BSD-2-Clause" -depends_dev="openssl-dev zlib-dev" -makedepends="$depends_dev cmake doxygen" +depends_dev="openssl-dev>3 zlib-dev" +makedepends="$depends_dev cmake samurai" checkdepends="cmocka-dev" subpackages="$pkgname-dev" -source="https://www.libssh.org/files/${pkgver%.*}/libssh-$pkgver.tar.xz - " +source="https://www.libssh.org/files/${pkgver%.*}/libssh-$pkgver.tar.xz" # secfixes: +# 0.10.6-r0: +# - CVE-2023-6004 +# - CVE-2023-6918 +# - CVE-2023-48795 # 0.9.6-r0: # - CVE-2021-3634 # 0.9.5-r0: @@ -28,29 +31,28 @@ source="https://www.libssh.org/files/${pkgver%.*}/libssh-$pkgver.tar.xz # - CVE-2018-10933 build() { - mkdir build && cd build - cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ + CFLAGS="$CFLAGS -flto=auto" \ + cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DWITH_GSSAPI=OFF \ -DUNIT_TESTING=OFF - make + cmake --build build } check() { case "$CARCH" in s390x) _disabled_tests="-E torture_threads_buffer" esac - cd "$builddir/build" - ctest --output-on-failure $_disabled_tests + cd build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest $_disabled_tests } package() { - cd "$builddir/build" - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install build } sha512sums=" -4040ec4af937e95be2e41313ef6d4db60b46b8d4dea10c09402398127c1d1ca8843392d207088aeee3c7ef631c6ae7b66861327dcebf78ed3af0723777619fd1 libssh-0.9.6.tar.xz +40c62d63c44e882999b71552c237d73fc7364313bd00b15a211a34aeff1b73693da441d2c8d4e40108d00fb7480ec7c5b6d472f9c0784b2359a179632ab0d6c1 libssh-0.10.6.tar.xz " |