Skip to contentSkip to conversation

package/samba4: add required python deps for AD DC support

PATCH New Bernd Kuhls 3 participants 6 messages Apr 4, 2021 – Apr 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/samba4: add required python deps for AD DC support

Needed due to upstream commit:
https://gitlab.com/samba-team/samba/-/commit/2420b7c6d2038aca33759ca3a7d41240c5f19bf7

Fixes:
http://autobuild.buildroot.net/results/12a/12a74665a2349eacb28c3035bb36a4dce1d740d1/

---
 package/samba4/Config.in | 2 ++
 package/samba4/samba4.mk | 7 ++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
package/samba4/Config.in +2 -0
index a34eaa8088..e890313b71 100644
@@ -32,6 +32,8 @@ config BR2_PACKAGE_SAMBA4_AD_DC
 	bool "AD DC"
 	depends on BR2_PACKAGE_PYTHON3
 	select BR2_PACKAGE_JANSSON
+	select BR2_PACKAGE_PYTHON_DNSPYTHON
+	select BR2_PACKAGE_PYTHON_MARKDOWN
 	help
 	  Enable Active Directory Domain Controller functionality.
 
package/samba4/samba4.mk +6 -1
index 99c8af9ab2..ed38af020c 100644
@@ -149,7 +149,12 @@ define SAMBA4_INSTALL_TARGET_CMDS
 endef
 
 ifeq ($(BR2_PACKAGE_SAMBA4_AD_DC),y)
-SAMBA4_DEPENDENCIES += jansson
+SAMBA4_DEPENDENCIES += \
+	jansson \
+	host-python-dnspython \
+	host-python-markdown \
+	python-dnspython \
+	python-markdown
 else
 SAMBA4_CONF_OPTS += --without-ad-dc --without-json
 endif
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 package/samba4: add required python deps for AD DC support

package/samba4/samba4.mk define SAMBA4_INSTALL_TARGET_CMDS · line 155

Quoted 6 lines · On Sun, 4 Apr 2021 18:58:23 +0200 Bernd Kuhls <[email protected]> wrote:

ifeq ($(BR2_PACKAGE_SAMBA4_AD_DC),y)

package/samba4/samba4.mk +4 -1
-SAMBA4_DEPENDENCIES += jansson
+SAMBA4_DEPENDENCIES += \
+	jansson \
+	host-python-dnspython \
+	host-python-markdown \

I'm curious: why are the host packages needed? Is it because the configuration stuff checks on the host that they are available, while in fact they are only needed on the target ?

Thomas

Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/samba4: add required python deps for AD DC support

Am Mon, 05 Apr 2021 11:00:03 +0200 schrieb Thomas Petazzoni:

Quoted 5 lines
Quoted 2 lines · On Sun, 4 Apr 2021 18:58:23 +0200 Bernd Kuhls <[email protected]> wrote:

ifeq ($(BR2_PACKAGE_SAMBA4_AD_DC),y)
-SAMBA4_DEPENDENCIES += jansson +SAMBA4_DEPENDENCIES += \ + jansson \

+

Quoted 7 lines
Quoted 1 line

host-python-dnspython \ + host-python-markdown \

I'm curious: why are the host packages needed? Is it because the configuration stuff checks on the host that they are available, while in fact they are only needed on the target ?

Thomas

Hi Thomas,

yes, it seems to. The configure error could only be solved by also adding the host packages.

Regards, Bernd

#3 lore raw

PATCH 1/1 package/samba4: add required python deps for AD DC support

In reply to Bernd Kuhls
Quoted 32 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Needed due to upstream commit:
https://gitlab.com/samba-team/samba/-/commit/2420b7c6d2038aca33759ca3a7d41240c5f19bf7

Fixes:
http://autobuild.buildroot.net/results/12a/12a74665a2349eacb28c3035bb36a4dce1d740d1/

---
 package/samba4/Config.in | 2 ++
 package/samba4/samba4.mk | 7 ++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
package/samba4/Config.in +2 -0
index a34eaa8088..e890313b71 100644
@@ -32,6 +32,8 @@ config BR2_PACKAGE_SAMBA4_AD_DC
 	bool "AD DC"
 	depends on BR2_PACKAGE_PYTHON3
 	select BR2_PACKAGE_JANSSON
+	select BR2_PACKAGE_PYTHON_DNSPYTHON
+	select BR2_PACKAGE_PYTHON_MARKDOWN
 	help
 	  Enable Active Directory Domain Controller functionality.
 
package/samba4/samba4.mk +0 -0
index 99c8af9ab2..ed38af020c 100644

package/samba4/samba4.mk define SAMBA4_INSTALL_TARGET_CMDS · line 154

Quoted 7 lines
package/samba4/samba4.mk +3 -1
@@ -149,7 +149,12 @@ define SAMBA4_INSTALL_TARGET_CMDS
 endef
 
 ifeq ($(BR2_PACKAGE_SAMBA4_AD_DC),y)
-SAMBA4_DEPENDENCIES += jansson
+SAMBA4_DEPENDENCIES += \
+	jansson \
+	host-python-dnspython \

How can this work? We don't currently have a host-python-dnspython package.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

PATCH 1/1 package/samba4: add required python deps for AD DC support

Am Mon, 26 Apr 2021 15:26:01 +0200 schrieb Peter Korsgaard:

Quoted 2 lines

How can this work? We don't currently have a host-python-dnspython package.

Hi Peter,

it could not work because I forgot to send the patch adding host-python- dnspython:

http://patchwork.ozlabs.org/project/buildroot/patch/
20210426165557.18477-1-bernd.kuhls at t-online.de/

Regards, Bernd

#5 lore raw

PATCH 1/1 package/samba4: add required python deps for AD DC support

In reply to Bernd Kuhls
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Needed due to upstream commit:
https://gitlab.com/samba-team/samba/-/commit/2420b7c6d2038aca33759ca3a7d41240c5f19bf7

Fixes:
http://autobuild.buildroot.net/results/12a/12a74665a2349eacb28c3035bb36a4dce1d740d1/

Committed to 2021.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard