Skip to contentSkip to conversation

samba4: add host-python to dependencies

PATCH New Gustavo Zacarias 2 participants 2 messages Mar 16, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 samba4: add host-python to dependencies

Even though it's inherited by the python dependency it's more clear this way for graph-depends, since it's used by the waf buildsystem. And even though we have a hard dependency on python for the distro this python could ostensibly be 3.x which isn't compatible with the bundled waf series (1.5.x) in samba (as of current shipping version and upcoming 4.4.x series).

---
 package/samba4/samba4.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/samba4/samba4.mk +3 -1
index ee0452e..0fa70a5 100644
@@ -10,7 +10,9 @@ SAMBA4_SOURCE = samba-$(SAMBA4_VERSION).tar.gz
 SAMBA4_INSTALL_STAGING = YES
 SAMBA4_LICENSE = GPLv3+
 SAMBA4_LICENSE_FILES = COPYING
-SAMBA4_DEPENDENCIES = host-e2fsprogs host-heimdal e2fsprogs popt python zlib \
+SAMBA4_DEPENDENCIES = \
+	host-e2fsprogs host-heimdal host-python \
+	e2fsprogs popt python zlib \
 	$(if $(BR2_PACKAGE_LIBBSD),libbsd) \
 	$(if $(BR2_PACKAGE_LIBCAP),libcap) \
 	$(if $(BR2_PACKAGE_READLINE),readline)
Signature · 1 line
2.4.10
#1 lore raw

PATCH 1/1 samba4: add host-python to dependencies

Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Even though it's inherited by the python dependency it's more clear this way for graph-depends, since it's used by the waf buildsystem. And even though we have a hard dependency on python for the distro this python could ostensibly be 3.x which isn't compatible with the bundled waf series (1.5.x) in samba (as of current shipping version and upcoming 4.4.x series).

---
 package/samba4/samba4.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/samba4/samba4.mk +0 -0
index ee0452e..0fa70a5 100644

package/samba4/samba4.mk SAMBA4_SOURCE = samba-$(SAMBA4_VERSION).tar.gz · line 18

Quoted 10 lines
package/samba4/samba4.mk +3 -1
@@ -10,7 +10,9 @@ SAMBA4_SOURCE = samba-$(SAMBA4_VERSION).tar.gz
 SAMBA4_INSTALL_STAGING = YES
 SAMBA4_LICENSE = GPLv3+
 SAMBA4_LICENSE_FILES = COPYING
-SAMBA4_DEPENDENCIES = host-e2fsprogs host-heimdal e2fsprogs popt python zlib \
+SAMBA4_DEPENDENCIES = \
+	host-e2fsprogs host-heimdal host-python \
+	e2fsprogs popt python zlib \
 	$(if $(BR2_PACKAGE_LIBBSD),libbsd) \
 	$(if $(BR2_PACKAGE_LIBCAP),libcap) \
 	$(if $(BR2_PACKAGE_READLINE),readline)

I first thought this wasn't enough as we don't explicitly ensure host/usr/bin/python2 is used, but as samba selects python (which ensures that python3 cannot be built) and hence host/usr/bin/python will point to host-python2.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard