diff mbox series

[1/1] package/rdesktop: bump to version 1.9.0

Message ID 20200313213931.1436698-1-fontaine.fabrice@gmail.com
State Accepted
Headers show
Series [1/1] package/rdesktop: bump to version 1.9.0 | expand

Commit Message

Fabrice Fontaine March 13, 2020, 9:39 p.m. UTC
- Retrieve official tarball and so remove autoreconf
- xlib_Xcursor is a mandatory dependency since
  https://github.com/rdesktop/rdesktop/commit/6dd85edc6f8293acd100b34add1405ea5a744111
- libtasn1 is a mandatory dependency since
  https://github.com/rdesktop/rdesktop/commit/673b267e665642def474f228142e46b18d195e01
- nettle is a mandatory dependency since
  https://github.com/rdesktop/rdesktop/commit/00d9e0c4c806c1d5d21ec7865f03cafe9acbeab3
- gnutls is a mandatory dependency instead of openssl since
  https://github.com/rdesktop/rdesktop/commit/166d1bc14d34c20dd0c640571a749a6599180367
- pulseaudio is an optional dependency since
  https://github.com/rdesktop/rdesktop/commit/9b98c3b2296f07b99b94aceb2c19131f32bde476
- iconv is mandatory since
  https://github.com/rdesktop/rdesktop/commit/2ea3f69873d18d07ef79c724c656d25b9d63a114

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/rdesktop/Config.in     | 12 +++++++++++-
 package/rdesktop/rdesktop.hash |  2 +-
 package/rdesktop/rdesktop.mk   | 20 ++++++++++++++------
 3 files changed, 26 insertions(+), 8 deletions(-)

Comments

Thomas Petazzoni March 14, 2020, 2:13 p.m. UTC | #1
Hello Fabrice,

On Fri, 13 Mar 2020 22:39:31 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> - Retrieve official tarball and so remove autoreconf
> - xlib_Xcursor is a mandatory dependency since
>   https://github.com/rdesktop/rdesktop/commit/6dd85edc6f8293acd100b34add1405ea5a744111
> - libtasn1 is a mandatory dependency since
>   https://github.com/rdesktop/rdesktop/commit/673b267e665642def474f228142e46b18d195e01
> - nettle is a mandatory dependency since
>   https://github.com/rdesktop/rdesktop/commit/00d9e0c4c806c1d5d21ec7865f03cafe9acbeab3
> - gnutls is a mandatory dependency instead of openssl since
>   https://github.com/rdesktop/rdesktop/commit/166d1bc14d34c20dd0c640571a749a6599180367
> - pulseaudio is an optional dependency since
>   https://github.com/rdesktop/rdesktop/commit/9b98c3b2296f07b99b94aceb2c19131f32bde476
> - iconv is mandatory since
>   https://github.com/rdesktop/rdesktop/commit/2ea3f69873d18d07ef79c724c656d25b9d63a114
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/rdesktop/Config.in     | 12 +++++++++++-
>  package/rdesktop/rdesktop.hash |  2 +-
>  package/rdesktop/rdesktop.mk   | 20 ++++++++++++++------
>  3 files changed, 26 insertions(+), 8 deletions(-)

Applied to master, thanks. However, it would be nice to use the --with
options when possible. For example for the audio stuff, it would be
good to have something like --with-sound=pulse, --with-sound=alsa (and
of course see if they are mutually exclusive or not).

On a side note, it's kind silly to need both gnutls *and* nettle, as
both are crypto libraries...

Best regards,

Thomas
diff mbox series

Patch

diff --git a/package/rdesktop/Config.in b/package/rdesktop/Config.in
index 0335bee2a0..a52aa3de2d 100644
--- a/package/rdesktop/Config.in
+++ b/package/rdesktop/Config.in
@@ -1,9 +1,15 @@ 
 config BR2_PACKAGE_RDESKTOP
 	bool "rdesktop"
 	depends on BR2_USE_MMU # fork()
+	depends on !BR2_STATIC_LIBS #gnutls
+	depends on BR2_USE_WCHAR # gnutls
 	depends on BR2_PACKAGE_XORG7
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_GNUTLS
+	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
+	select BR2_PACKAGE_LIBTASN1
+	select BR2_PACKAGE_NETTLE
 	select BR2_PACKAGE_XLIB_LIBX11
+	select BR2_PACKAGE_XLIB_LIBXCURSOR
 	select BR2_PACKAGE_XLIB_LIBXT
 	help
 	  rdesktop is an open source client for Windows NT Terminal
@@ -12,3 +18,7 @@  config BR2_PACKAGE_RDESKTOP
 	  present the user's NT desktop.
 
 	  http://rdesktop.sf.net/
+
+comment "rdesktop needs a toolchain w/ wchar, dynamic library"
+	depends on BR2_USE_MMU
+	depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
diff --git a/package/rdesktop/rdesktop.hash b/package/rdesktop/rdesktop.hash
index d42ab59be1..f9715d2a47 100644
--- a/package/rdesktop/rdesktop.hash
+++ b/package/rdesktop/rdesktop.hash
@@ -1,3 +1,3 @@ 
 # Locally calculated
-sha256  ffb9f8e2f0b7a06e383e550698bdc9734ae33eb3ec971b0a094078434a4bba6d  rdesktop-1.8.6.tar.gz
+sha256  473c2f312391379960efe41caad37852c59312bc8f100f9b5f26609ab5704288  rdesktop-1.9.0.tar.gz
 sha256  fc82ca8b6fdb18d4e3e85cfd8ab58d1bcd3f1b29abe782895abd91d64763f8e7  COPYING
diff --git a/package/rdesktop/rdesktop.mk b/package/rdesktop/rdesktop.mk
index f40521d2b1..672d85b5c5 100644
--- a/package/rdesktop/rdesktop.mk
+++ b/package/rdesktop/rdesktop.mk
@@ -4,18 +4,26 @@ 
 #
 ################################################################################
 
-RDESKTOP_VERSION = 1.8.6
-RDESKTOP_SITE = $(call github,rdesktop,rdesktop,v$(RDESKTOP_VERSION))
-RDESKTOP_DEPENDENCIES = host-pkgconf openssl xlib_libX11 xlib_libXt \
+RDESKTOP_VERSION = 1.9.0
+RDESKTOP_SITE = \
+	https://github.com/rdesktop/rdesktop/releases/download/v$(RDESKTOP_VERSION)
+RDESKTOP_DEPENDENCIES = \
+	host-pkgconf \
+	gnutls \
+	libtasn1 \
+	nettle \
+	xlib_libX11 \
+	xlib_libXcursor \
+	xlib_libXt \
 	$(if $(BR2_PACKAGE_ALSA_LIB_PCM),alsa-lib) \
 	$(if $(BR2_PACKAGE_LIBAO),libao) \
+	$(if $(BR2_PACKAGE_LIBICONV),libiconv) \
 	$(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate) \
+	$(if $(BR2_PACKAGE_PULSEAUDIO),pulseaudio) \
 	$(if $(BR2_PACKAGE_XLIB_LIBXRANDR),xlib_libXrandr)
-RDESKTOP_CONF_OPTS = --with-openssl=$(STAGING_DIR)/usr --disable-credssp
+RDESKTOP_CONF_OPTS = --disable-credssp
 RDESKTOP_LICENSE = GPL-3.0+
 RDESKTOP_LICENSE_FILES = COPYING
-# From git
-RDESKTOP_AUTORECONF = YES
 
 ifeq ($(BR2_PACKAGE_PCSC_LITE),y)
 RDESKTOP_DEPENDENCIES += pcsc-lite