Package Details: libssh-git 0.10.6.r494.g99e8f341-1

Git Clone URL: https://aur.archlinux.org/libssh-git.git (read-only, click to copy)
Package Base: libssh-git
Description: Multiplatform C library implementing the SSHv2 and SSHv1 protocol on client and server side
Upstream URL: https://www.libssh.org/
Licenses: LGPL
Conflicts: libssh
Provides: libssh, libssh.so
Submitter: Chocobo1
Maintainer: Chocobo1
Last Packager: Chocobo1
Votes: 0
Popularity: 0.000000
First Submitted: 2017-08-18 17:14 (UTC)
Last Updated: 2024-01-12 09:32 (UTC)

Required by (117)

Sources (1)

Latest Comments

GNUtoo commented on 2022-03-07 00:18 (UTC)

Hi, here's a patch for libssh-git:

$ cat 0001-sync-with-archlinux-libssh-PKGBUILD.patch 
From bd5eb22d59074bc6ba5110a34d9800a2ed6661fc Mon Sep 17 00:00:00 2001
From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Date: Thu, 3 Mar 2022 17:12:23 +0100
Subject: [PATCH] sync with archlinux libssh PKGBUILD

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
 PKGBUILD | 69 ++++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 50 insertions(+), 19 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 45b1945..b11893c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,27 @@
 # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+# Contributor: Antonio Rojas <arojas@archlinux.org>
+# Contributor: Tom Gundersen <teg@jklm.no>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: ice-man <icemanf@gmail.com>
+# Contributor: sergeantspoon <sergeantspoon@archlinux.us>

-pkgname=libssh-git
-pkgver=0.9.5.r473.g693383d1
+pkgbase=libssh-git
+pkgname=(libssh-git libssh-git-docs)
+pkgver=0.9.6.r627.g70d3760d
 pkgrel=1
-pkgdesc="Multiplatform C library implementing the SSHv2 and SSHv1 protocol on client and server side"
-arch=('i686' 'x86_64')
-url="https://www.libssh.org/"
+pkgdesc='Library for accessing ssh client services through C libraries'
+url='https://www.libssh.org/'
 license=('LGPL')
-depends=('glibc' 'openssl' 'zlib')
-makedepends=('git' 'cmake' 'cmocka')
-provides=('libssh')
+arch=('i686' 'x86_64')
+depends=('zlib' 'openssl')
+makedepends=('git' 'cmake' 'cmocka' 'doxygen' 'python' 'openssh')
+provides=('libssh.so' 'libssh')
 conflicts=('libssh')
+replaces=('libssh')
 options=('staticlibs')
 source=("git+https://git.libssh.org/projects/libssh.git")
 sha256sums=('SKIP')

-
 pkgver() {
   cd "libssh"

@@ -25,19 +31,44 @@ pkgver() {
   printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash"
 }

+prepare() {
+  # disable the test. It is confused by our clean container setup.
+  # 'extra-x86-build' uses user 'nobody' that has a record in /etc/passwd file
+  # but $HOME envvar is set to '/build'. The test expects that $HOME corresponds to passwd file.
+  sed 's/cmocka_unit_test(torture_path_expand_tilde_unix),//' -i libssh/tests/unittests/torture_misc.c
+
+  mkdir -p build
+}
+
 build() {
-  cd "libssh"
+  cd build
+  cmake ../libssh \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DWITH_GSSAPI=OFF \
+    -DUNIT_TESTING=ON
+  make
+  make docs
+}

-  cmake \
-    -B "_build" \
-    -DCMAKE_BUILD_TYPE=Release \
-    -DCMAKE_INSTALL_PREFIX="/usr" \
-    ./
-  make -C "_build"
+check() {
+  cd build
+  make test
 }

-package() {
-  cd "libssh"
+package_libssh-git() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}
+
+package_libssh-git-docs() {
+  pkgdesc="Documentation for libssh"
+  depends=()
+  provides=('libssh-docs')
+  conflicts=('libssh-docs')
+  replaces=('libssh-docs')

-  make -C "_build" DESTDIR="$pkgdir" install
+  mkdir -p "$pkgdir"/usr/share/doc/libssh
+  cp -r build/doc/html "$pkgdir"/usr/share/doc/libssh
+#  cp -r build/doc/man "$pkgdir"/usr/share
+#  rm "$pkgdir"/usr/share/man/man3/{bug,deprecated}.*
 }
-- 
2.35.1

Chocobo1 commented on 2018-04-19 03:32 (UTC)

libssh-git and libssh are in conflict. Remove libssh? [y/N]

Answer y here.

tmow commented on 2018-04-18 22:20 (UTC)

I've libssh installed and trying to install the AUR package doesn't work, I get this error:

:: libssh-git and libssh are in conflict. Remove libssh? [y/N] error: unresolvable package conflicts detected error: failed to prepare transaction (conflicting dependencies) :: libssh-git and libssh are in conflict

I cannot remove libssh because it's a dependency of several other packages, any advice? Is it something that can be "fixed" in the PKGBUILD?