* [Buildroot] [PATCH] samba4: fix readline support
@ 2014-03-03 11:44 Gustavo Zacarias
2014-03-03 11:50 ` Baruch Siach
2014-03-03 20:26 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2014-03-03 11:44 UTC (permalink / raw)
To: buildroot
Add automatic readilne support since it's used when available.
Also add a patch to update to new-style typedefs that were removed from
readline 6.3 that causes build breakage. Fixes:
http://autobuild.buildroot.net/results/b13/b137c237ff6df81dd10f7895278d1f2f5d2326de/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
...line-switch-to-new-style-readline-typedef.patch | 32 ++++++++++++++++++++++
package/samba4/samba4.mk | 3 +-
2 files changed, 34 insertions(+), 1 deletion(-)
create mode 100644 package/samba4/samba4-0006-smbreadline-switch-to-new-style-readline-typedef.patch
diff --git a/package/samba4/samba4-0006-smbreadline-switch-to-new-style-readline-typedef.patch b/package/samba4/samba4-0006-smbreadline-switch-to-new-style-readline-typedef.patch
new file mode 100644
index 0000000..65d0950
--- /dev/null
+++ b/package/samba4/samba4-0006-smbreadline-switch-to-new-style-readline-typedef.patch
@@ -0,0 +1,32 @@
+From 0d4f18b88c3e687b83dcbe4c27f74424cf2f2043 Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias <gustavo@zacarias.com.ar>
+Date: Mon, 3 Mar 2014 07:57:24 -0300
+Subject: [PATCH] smbreadline: switch to new-style readline typedef
+
+Function, CPFunction, CPPFunction and VFunction typedefs are considered
+old-style (deprecated) starting from readline 4.2.
+Compatibility typedefs have been in place up to readline 6.2 but were
+removed with the 6.3 release thus causing builds to break.
+Swtich to the new-style specific prototyped typedef.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+---
+ libcli/smbreadline/smbreadline.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libcli/smbreadline/smbreadline.c b/libcli/smbreadline/smbreadline.c
+index cff25a7..80e10b0 100644
+--- a/libcli/smbreadline/smbreadline.c
++++ b/libcli/smbreadline/smbreadline.c
+@@ -141,7 +141,7 @@ char *smb_readline(const char *prompt, void (*callback)(void),
+
+ #if HAVE_DECL_RL_EVENT_HOOK
+ if (callback)
+- rl_event_hook = (Function *)callback;
++ rl_event_hook = (rl_hook_func_t *)callback;
+ #endif
+ ret = readline(prompt);
+ if (ret && *ret)
+--
+1.8.3.2
+
diff --git a/package/samba4/samba4.mk b/package/samba4/samba4.mk
index 452c694..72710bf 100644
--- a/package/samba4/samba4.mk
+++ b/package/samba4/samba4.mk
@@ -10,7 +10,8 @@ SAMBA4_SOURCE = samba-$(SAMBA4_VERSION).tar.gz
SAMBA4_LICENSE = GPLv3+
SAMBA4_LICENSE_FILES = COPYING
SAMBA4_DEPENDENCIES = host-e2fsprogs host-heimdal e2fsprogs popt python zlib \
- $(if $(BR2_PACKAGE_LIBCAP),libcap)
+ $(if $(BR2_PACKAGE_LIBCAP),libcap) \
+ $(if $(BR2_PACKAGE_READLINE),readline)
ifeq ($(BR2_PACKAGE_ACL),y)
SAMBA4_CONF_OPT += --with-acl-support
--
1.8.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] samba4: fix readline support
2014-03-03 11:44 [Buildroot] [PATCH] samba4: fix readline support Gustavo Zacarias
@ 2014-03-03 11:50 ` Baruch Siach
2014-03-03 20:26 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2014-03-03 11:50 UTC (permalink / raw)
To: buildroot
Hi Gustavo,
On Mon, Mar 03, 2014 at 08:44:12AM -0300, Gustavo Zacarias wrote:
> Add automatic readilne support since it's used when available.
s/readilne/readline/
> Also add a patch to update to new-style typedefs that were removed from
> readline 6.3 that causes build breakage. Fixes:
> http://autobuild.buildroot.net/results/b13/b137c237ff6df81dd10f7895278d1f2f5d2326de/
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] [PATCH] samba4: fix readline support
2014-03-03 11:44 [Buildroot] [PATCH] samba4: fix readline support Gustavo Zacarias
2014-03-03 11:50 ` Baruch Siach
@ 2014-03-03 20:26 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2014-03-03 20:26 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Mon, 3 Mar 2014 08:44:12 -0300, Gustavo Zacarias wrote:
> Add automatic readilne support since it's used when available.
> Also add a patch to update to new-style typedefs that were removed from
> readline 6.3 that causes build breakage. Fixes:
> http://autobuild.buildroot.net/results/b13/b137c237ff6df81dd10f7895278d1f2f5d2326de/
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> ...line-switch-to-new-style-readline-typedef.patch | 32 ++++++++++++++++++++++
> package/samba4/samba4.mk | 3 +-
> 2 files changed, 34 insertions(+), 1 deletion(-)
> create mode 100644 package/samba4/samba4-0006-smbreadline-switch-to-new-style-readline-typedef.patch
Thanks, applied, after fixing the minor nit noticed by Baruch.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-03 20:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03 11:44 [Buildroot] [PATCH] samba4: fix readline support Gustavo Zacarias
2014-03-03 11:50 ` Baruch Siach
2014-03-03 20:26 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox