Skip to contentSkip to conversation

package/python-dnspython: enable host build

PATCH New Bernd Kuhls 2 participants 3 messages Apr 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-dnspython: enable host build

Needed for Samba 4.14.x:
https://gitlab.com/samba-team/samba/-/commit/2420b7c6d2038aca33759ca3a7d41240c5f19bf7#bc16f0673dfbb473658dfd16961cdbf12f02ea5a_8_15

Fixes:
http://autobuild.buildroot.net/results/7dc/7dc7e304cb4e9afb157326dd5e4ae38711e91cad/

---
Forgot to send this patch while sending:
http://patchwork.ozlabs.org/project/buildroot/patch/20210404165823.954492-1-bernd.kuhls at t-online.de/

 package/python-dnspython/python-dnspython.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/python-dnspython/python-dnspython.mk +7 -0
index 18d98efd72..ed11687291 100644
@@ -17,4 +17,11 @@ define PYTHON_DNSPYTHON_EXTRACT_CMDS
 	$(RM) -r $(@D)/dnspython-$(PYTHON_DNSPYTHON_VERSION)
 endef
 
+define HOST_PYTHON_DNSPYTHON_EXTRACT_CMDS
+	$(UNZIP) -d $(@D) $(HOST_PYTHON_DNSPYTHON_DL_DIR)/$(HOST_PYTHON_DNSPYTHON_SOURCE)
+	mv $(@D)/dnspython-$(HOST_PYTHON_DNSPYTHON_VERSION)/* $(@D)
+	$(RM) -r $(@D)/dnspython-$(HOST_PYTHON_DNSPYTHON_VERSION)
+endef
+
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 package/python-dnspython: enable host build

Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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

Needed for Samba 4.14.x:
https://gitlab.com/samba-team/samba/-/commit/2420b7c6d2038aca33759ca3a7d41240c5f19bf7#bc16f0673dfbb473658dfd16961cdbf12f02ea5a_8_15

Fixes:
http://autobuild.buildroot.net/results/7dc/7dc7e304cb4e9afb157326dd5e4ae38711e91cad/

---
Forgot to send this patch while sending:
http://patchwork.ozlabs.org/project/buildroot/patch/20210404165823.954492-1-bernd.kuhls at t-online.de/

 package/python-dnspython/python-dnspython.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/python-dnspython/python-dnspython.mk +0 -0
index 18d98efd72..ed11687291 100644

package/python-dnspython/python-dnspython.mk define PYTHON_DNSPYTHON_EXTRACT_CMDS · line 24

Quoted 8 lines
package/python-dnspython/python-dnspython.mk +5 -0
@@ -17,4 +17,11 @@ define PYTHON_DNSPYTHON_EXTRACT_CMDS
 	$(RM) -r $(@D)/dnspython-$(PYTHON_DNSPYTHON_VERSION)
 endef
 
+define HOST_PYTHON_DNSPYTHON_EXTRACT_CMDS
+	$(UNZIP) -d $(@D) $(HOST_PYTHON_DNSPYTHON_DL_DIR)/$(HOST_PYTHON_DNSPYTHON_SOURCE)
+	mv $(@D)/dnspython-$(HOST_PYTHON_DNSPYTHON_VERSION)/* $(@D)
+	$(RM) -r $(@D)/dnspython-$(HOST_PYTHON_DNSPYTHON_VERSION)
+endef

Ideally we probably would should change pkg-generic so the host variant inherits the extract commands from the target variant if set, but OK.

Committed, thanks.

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

PATCH 1/1 package/python-dnspython: enable host build

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

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

Needed for Samba 4.14.x:
https://gitlab.com/samba-team/samba/-/commit/2420b7c6d2038aca33759ca3a7d41240c5f19bf7#bc16f0673dfbb473658dfd16961cdbf12f02ea5a_8_15

Quoted 7 lines

Fixes:
http://autobuild.buildroot.net/results/7dc/7dc7e304cb4e9afb157326dd5e4ae38711e91cad/

---
Forgot to send this patch while sending:
http://patchwork.ozlabs.org/project/buildroot/patch/20210404165823.954492-1-bernd.kuhls at t-online.de/

Committed to 2021.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard