Public bug reported:

That was a request in IRC today as it seems there are a few suboptions
that  qemu+ssh can not provide but qemu+libssh can.

See https://libvirt.org/uri.html for some details.

In the past it was libssh only and that was not in main also causing
trouble for others, see bug 681423

But nowadays libvirt can do both.
So as we did in qemu we could switch to libssh (1) and since that is in main 
have it working helping users that need that feature.

We currently have
commit 6ef5c50d74b89e766ad3bf09e7ccc948a59b57d3
Author: Christian Ehrhardt <[email protected]>
Date:   Wed Dec 14 12:42:32 2016 +0100

    disable libssh2 support (universe dependency)
    
    Signed-off-by: Christian Ehrhardt <[email protected]>

diff --git a/debian/control b/debian/control
index d32f839681..9ff27dfc6f 100644
--- a/debian/control
+++ b/debian/control
@@ -38,7 +38,6 @@ Build-Depends:
  libsanlock-dev [linux-any],
  libsasl2-dev,
  libselinux1-dev (>= 2.0.82) [linux-any],
- libssh2-1-dev,
  libudev-dev [linux-any],
  libwireshark-dev (>= 1.11.3),
  libwiretap-dev,
diff --git a/debian/rules b/debian/rules
index 0a799973d6..93b56f738f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -104,7 +104,7 @@ DEB_CONFIGURE_EXTRA_ARGS := \
     $(WITH_OPENVZ) \
     -Dsasl=enabled \
     -Dyajl=enabled \
-    -Dlibssh2=enabled \
+    -Dlibssh2=disabled \
     $(WITH_POLKIT) \
     $(WITH_SANLOCK) \
     $(WITH_UDEV) \


But since we can now use libssh (1) being in main
 libssh | 0.9.3-2ubuntu2                     | focal            | source
 libssh | 0.9.3-2ubuntu2.1                   | focal-security   | source
 libssh | 0.9.3-2ubuntu2.1                   | focal-updates    | source
 libssh | 0.9.5-1                            | hirsute          | source
 libssh | 0.9.5-1                            | impish           | source

That can nowadays be converted and instead become something like:

index 7c7a85b0a8..97b1e02c67 100644
--- a/debian/control
+++ b/debian/control
@@ -38,6 +38,7 @@ Build-Depends:
  libsanlock-dev [linux-any],
  libsasl2-dev,
  libselinux1-dev (>= 2.0.82) [linux-any],
+ libssh-1-dev (>= 0.7),
  libtirpc-dev,
  libudev-dev [linux-any],
  libwireshark-dev (>= 1.11.3),
diff --git a/debian/rules b/debian/rules
index 724baaee19..f0f07e7ca3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -105,6 +105,7 @@ DEB_CONFIGURE_EXTRA_ARGS := \
     -Dsasl=enabled \
     -Dyajl=enabled \
     -Dlibssh2=disabled \
+    -Dlibssh=enabled \
     $(WITH_POLKIT) \
     $(WITH_SANLOCK) \
     $(WITH_UDEV) 

If that builds fine it can be tested via
  virsh -c qemu+libssh://ubuntu@horsea/system list

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1939416

Title:
  please enable libssh support

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1939416/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to