libssh/ssh2: fix dependencies due to libgcrypt (branch yem/libgcrypt-fixes)
cover libssh/ssh2: fix dependencies due to libgcrypt (branch yem/libgcrypt-fixes)
Hello All!
Since 2f89476 (package/libgpg-error: bump to version 1.23), libssh and libssh2 have inherited the dependency from libgcrypt (propagated from libgpg-error).
However, since they can use either openssl or libgcrypt as a backend, the dependency should be relaxed when openssl is available.
But the test is broken and inverted: it will make them unavailable as soon as openssl is enabled.
This causes further issues for libssh, as it can be selected when openssl is enabled (see first patch).
This series fixes this dependency.
Regards,
Yann E. MORIN.
The following changes since commit d8983d0c7604681577c7641c1fb198a7095ef037
cifs-utils: bump to version 6.6 (2016-09-08 08:49:36 +0200)
are available in the git repository at:
git://git.buildroot.org/~ymorin/git/buildroot.git
for you to fetch changes up to 51fb04216a181a16f3bf41bc4c984234a4b256e5
package/libssh2: fix dependency on libgcrypt (2016-09-08 11:28:12 +0200)
----------------------------------------------------------------
Yann E. MORIN (2):
package/libssh: fix dependency on libgcrypt package/libssh2: fix dependency on libgcrypt
package/libssh/Config.in | 2 +- package/libssh2/Config.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/2 package/libssh: fix dependency on libgcrypt
Since 2f89476 (package/libgpg-error: bump to version 1.23), libssh has inherited the dependency from libgcrypt (propagated from libgpg-error).
However, since libssh can use either openssl or libgcrypt as a backend, the dependency should be relaxed when openssl is available.
But the test is broken and inverted: it will make libssh unavailable as soon as openssl is enabled.
This in itself is already incorrect, but that can cause further issues, as some packages (e.g. Kodi) will select (indirectly) openssl, and has an option to select libssh; enabling that option causes unmet direct dependencies of libssh:
warning: (BR2_PACKAGE_KODI_LIBSSH) selects BR2_PACKAGE_LIBSSH which
has unmet direct dependencies (BR2_USE_MMU && !BR2_STATIC_LIBS &&
BR2_TOOLCHAIN_HAS_THREADS && BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
&& !BR2_PACKAGE_OPENSSL)Fix this dependency.
Note: we need not propagate the libsh dependency to Kodi's sh option, because kodi selects openssl, so we know that libssh will be available.
--- package/libssh/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/libssh/Config.in +1 -1
@@ -4,7 +4,7 @@ config BR2_PACKAGE_LIBSSH depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_THREADS # Either OpenSSL or libgcrypt are mandatory - depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS && !BR2_PACKAGE_OPENSSL # libgcrypt + depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS || BR2_PACKAGE_OPENSSL # libgcrypt select BR2_PACKAGE_LIBGCRYPT if !BR2_PACKAGE_OPENSSL help libssh is a multiplatform C library implementing the SSHv2
Signature · 1 line
2.7.4
PATCH 1/2 package/libssh: fix dependency on libgcrypt
Am Thu, 08 Sep 2016 11:35:06 +0200 schrieb Yann E. MORIN:
Quoted 11 lines
This in itself is already incorrect, but that can cause further issues, as some packages (e.g. Kodi) will select (indirectly) openssl, and has an option to select libssh; enabling that option causes unmet direct dependencies of libssh:
warning: (BR2_PACKAGE_KODI_LIBSSH) selects BR2_PACKAGE_LIBSSH which has unmet direct dependencies (BR2_USE_MMU && !BR2_STATIC_LIBS && BR2_TOOLCHAIN_HAS_THREADS && BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS && !BR2_PACKAGE_OPENSSL)Fix this dependency.
(tested make menuconfig)
This defconfig
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_KODI=y
BR2_PACKAGE_KODI_LIBSSH=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_DRI_DRIVER_I965=y
BR2_PACKAGE_XORG7=y
showed the error message quoted without this patch. With the patch the bug I reported[1] is fixed and I can remove the bunch of gpg-revert patches from my kodi17 branch[2], thanks!
Regards, Bernd
[1] http://lists.busybox.net/pipermail/buildroot/2016-July/167041.html
[2] https://github.com/bkuhls/buildroot/tree/kodi17
PATCH 2/2 package/libssh2: fix dependency on libgcrypt
In reply to Yann E. MORINSince 2f89476 (package/libgpg-error: bump to version 1.23), libssh2 has inherited the dependency from libgcrypt (propagated from libgpg-error).
However, since libssh2 can use either openssl or libgcrypt as a backend, the dependency should be relaxed when openssl is available.
But the test is broken and inverted: it will make libssh unavailable as soon as openssl is enabled.
Fix the dependency.
--- package/libssh2/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/libssh2/Config.in +1 -1
@@ -1,6 +1,6 @@ config BR2_PACKAGE_LIBSSH2 bool "libssh2" - depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS && !BR2_PACKAGE_OPENSSL # libgcrypt + depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS || BR2_PACKAGE_OPENSSL # libgcrypt select BR2_PACKAGE_LIBGCRYPT if !BR2_PACKAGE_OPENSSL help libssh2 is a client-side C library implementing the SSH2
Signature · 1 line
2.7.4