mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2 1/4] python3-pyasn1: new package
@ 2021-07-12 11:09 Lars Pedersen
  2021-07-12 11:09 ` [ptxdist] [PATCH v2 2/4] python3-pysmi: " Lars Pedersen
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Lars Pedersen @ 2021-07-12 11:09 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
Changes since v1:
 - Updated LICENSE field to BSD-2-Clause

 rules/python3-pyasn1.in   |  9 +++++++
 rules/python3-pyasn1.make | 53 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 rules/python3-pyasn1.in
 create mode 100644 rules/python3-pyasn1.make

diff --git a/rules/python3-pyasn1.in b/rules/python3-pyasn1.in
new file mode 100644
index 000000000..a28e4e355
--- /dev/null
+++ b/rules/python3-pyasn1.in
@@ -0,0 +1,9 @@
+## SECTION=python3
+
+config PYTHON3_PYASN1
+	bool
+	prompt "pyasn1"
+	select PYTHON3
+	select HOST_PYTHON3_SETUPTOOLS
+	help
+	  Pure-Python implementation of ASN.1 types and DER/BER/CER codecs (X.208)
diff --git a/rules/python3-pyasn1.make b/rules/python3-pyasn1.make
new file mode 100644
index 000000000..f440e727a
--- /dev/null
+++ b/rules/python3-pyasn1.make
@@ -0,0 +1,53 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PYASN1) += python3-pyasn1
+
+#
+# Paths and names
+#
+PYTHON3_PYASN1_VERSION	:= 0.4.8
+PYTHON3_PYASN1_MD5	:= dffae4ff9f997a83324b3f33fe62be54
+PYTHON3_PYASN1		:= pyasn1-$(PYTHON3_PYASN1_VERSION)
+PYTHON3_PYASN1_SUFFIX	:= tar.gz
+PYTHON3_PYASN1_URL	:= $(call ptx/mirror-pypi, pyasn1, $(PYTHON3_PYASN1).$(PYTHON3_PYASN1_SUFFIX))
+PYTHON3_PYASN1_SOURCE	:= $(SRCDIR)/$(PYTHON3_PYASN1).$(PYTHON3_PYASN1_SUFFIX)
+PYTHON3_PYASN1_DIR	:= $(BUILDDIR)/$(PYTHON3_PYASN1)
+PYTHON3_PYASN1_LICENSE	:= BSD-2-Clause
+PYTHON3_PYASN1_LICENSE_FILES := \
+	file://LICENSE.rst;md5=a14482d15c2249de3b6f0e8a47e021fd
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PYASN1_CONF_TOOL	:= python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+$(STATEDIR)/python3-pyasn1.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-pyasn1)
+	@$(call install_fixup, python3-pyasn1,PRIORITY,optional)
+	@$(call install_fixup, python3-pyasn1,SECTION,base)
+	@$(call install_fixup, python3-pyasn1,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, python3-pyasn1,DESCRIPTION,missing)
+
+	@$(call install_glob,python3-pyasn1, 0, 0, -, \
+		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
+
+	@$(call install_finish, python3-pyasn1)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.31.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ptxdist] [PATCH v2 2/4] python3-pysmi: new package
  2021-07-12 11:09 [ptxdist] [PATCH v2 1/4] python3-pyasn1: new package Lars Pedersen
@ 2021-07-12 11:09 ` Lars Pedersen
  2021-07-16 10:23   ` Michael Olbrich
  2021-07-22 12:12   ` [ptxdist] [APPLIED] " Michael Olbrich
  2021-07-12 11:09 ` [ptxdist] [PATCH v2 3/4] python3-pysnmp: " Lars Pedersen
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 17+ messages in thread
From: Lars Pedersen @ 2021-07-12 11:09 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
Changes since v1:
 - Updated LICENSE field to BSD-2-Clause

 rules/python3-pysmi.in   |  9 +++++++
 rules/python3-pysmi.make | 54 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)
 create mode 100644 rules/python3-pysmi.in
 create mode 100644 rules/python3-pysmi.make

diff --git a/rules/python3-pysmi.in b/rules/python3-pysmi.in
new file mode 100644
index 000000000..a02d1b62d
--- /dev/null
+++ b/rules/python3-pysmi.in
@@ -0,0 +1,9 @@
+## SECTION=python3
+
+config PYTHON3_PYSMI
+	tristate
+	select PYTHON3
+	select HOST_PYTHON3_SETUPTOOLS
+	prompt "pysmi"
+	help
+	  A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.
diff --git a/rules/python3-pysmi.make b/rules/python3-pysmi.make
new file mode 100644
index 000000000..67448e2f7
--- /dev/null
+++ b/rules/python3-pysmi.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PYSMI) += python3-pysmi
+
+#
+# Paths and names
+#
+PYTHON3_PYSMI_VERSION	:= 0.3.4
+PYTHON3_PYSMI_MD5	:= 10a9dd140ad512eed9f37344df83ce9d
+PYTHON3_PYSMI		:= pysmi-$(PYTHON3_PYSMI_VERSION)
+PYTHON3_PYSMI_SUFFIX	:= tar.gz
+PYTHON3_PYSMI_URL	:= $(call ptx/mirror-pypi, pysmi, $(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX))
+PYTHON3_PYSMI_SOURCE	:= $(SRCDIR)/$(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX)
+PYTHON3_PYSMI_DIR	:= $(BUILDDIR)/$(PYTHON3_PYSMI)
+PYTHON3_PYSMI_LICENSE	:= BSD-2-Clause
+PYTHON3_PYSMI_LICENSE_FILES := \
+	file://LICENSE.rst;md5=a088b5c72b59d51a5368ad3b18e219bf
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PYSMI_CONF_TOOL	:= python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-pysmi.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-pysmi)
+	@$(call install_fixup, python3-pysmi,PRIORITY,optional)
+	@$(call install_fixup, python3-pysmi,SECTION,base)
+	@$(call install_fixup, python3-pysmi,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, python3-pysmi,DESCRIPTION,missing)
+
+	@$(call install_glob, python3-pysmi, 0, 0, -, \
+		$(PYTHON3_SITEPACKAGES),, *.py)
+
+	@$(call install_finish, python3-pysmi)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.31.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ptxdist] [PATCH v2 3/4] python3-pysnmp: new package
  2021-07-12 11:09 [ptxdist] [PATCH v2 1/4] python3-pyasn1: new package Lars Pedersen
  2021-07-12 11:09 ` [ptxdist] [PATCH v2 2/4] python3-pysmi: " Lars Pedersen
@ 2021-07-12 11:09 ` Lars Pedersen
  2021-07-16 12:41   ` Michael Olbrich
  2021-07-12 11:09 ` [ptxdist] [PATCH v2 4/4] python3-snmpclitools: " Lars Pedersen
  2021-07-22 12:12 ` [ptxdist] [APPLIED] python3-pyasn1: " Michael Olbrich
  3 siblings, 1 reply; 17+ messages in thread
From: Lars Pedersen @ 2021-07-12 11:09 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
Changes since v1:
 - Updated LICENSE field to BSD-2-Clause

 rules/python3-pysnmp.in   | 13 ++++++++++
 rules/python3-pysnmp.make | 54 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)
 create mode 100644 rules/python3-pysnmp.in
 create mode 100644 rules/python3-pysnmp.make

diff --git a/rules/python3-pysnmp.in b/rules/python3-pysnmp.in
new file mode 100644
index 000000000..09e9b2b0a
--- /dev/null
+++ b/rules/python3-pysnmp.in
@@ -0,0 +1,13 @@
+## SECTION=python3
+
+config PYTHON3_PYSNMP
+	bool
+	prompt "pysnmp"
+	select PYTHON3
+	select HOST_PYTHON3_SETUPTOOLS
+	select PYTHON3_PLY
+	select PYTHON3_PYASN1
+	select PYTHON3_PYCRYPTODOMEX
+	select PYTHON3_PYSMI
+	help
+	  pySNMP is a cross-platform, pure-Python SNMP engine implementation.
diff --git a/rules/python3-pysnmp.make b/rules/python3-pysnmp.make
new file mode 100644
index 000000000..9eb101b9f
--- /dev/null
+++ b/rules/python3-pysnmp.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PYSNMP) += python3-pysnmp
+
+#
+# Paths and names
+#
+PYTHON3_PYSNMP_VERSION	:= 4.4.12
+PYTHON3_PYSNMP_MD5	:= 2222880259daf6e2cb322e938c818276
+PYTHON3_PYSNMP		:= pysnmp-$(PYTHON3_PYSNMP_VERSION)
+PYTHON3_PYSNMP_SUFFIX 	:= tar.gz
+PYTHON3_PYSNMP_URL	:= $(call ptx/mirror-pypi, pysnmp, $(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX))
+PYTHON3_PYSNMP_SOURCE	:= $(SRCDIR)/$(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX)
+PYTHON3_PYSNMP_DIR	:= $(BUILDDIR)/$(PYTHON3_PYSNMP)
+PYTHON3_PYSNMP_LICENSE	:= BSD-2-Clause
+PYTHON3_PYSNMP_LICENSE_FILES := \
+	file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PYSNMP_CONF_TOOL	:= python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-pysnmp.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-pysnmp)
+	@$(call install_fixup, python3-pysnmp,PRIORITY,optional)
+	@$(call install_fixup, python3-pysnmp,SECTION,base)
+	@$(call install_fixup, python3-pysnmp,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, python3-pysnmp,DESCRIPTION,missing)
+
+	@$(call install_glob,python3-pysnmp, 0, 0, -, \
+		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.pyc)
+
+	@$(call install_finish, python3-pysnmp)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.31.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ptxdist] [PATCH v2 4/4] python3-snmpclitools: new package
  2021-07-12 11:09 [ptxdist] [PATCH v2 1/4] python3-pyasn1: new package Lars Pedersen
  2021-07-12 11:09 ` [ptxdist] [PATCH v2 2/4] python3-pysmi: " Lars Pedersen
  2021-07-12 11:09 ` [ptxdist] [PATCH v2 3/4] python3-pysnmp: " Lars Pedersen
@ 2021-07-12 11:09 ` Lars Pedersen
  2021-07-22 12:12   ` [ptxdist] [APPLIED] " Michael Olbrich
  2021-07-22 12:12 ` [ptxdist] [APPLIED] python3-pyasn1: " Michael Olbrich
  3 siblings, 1 reply; 17+ messages in thread
From: Lars Pedersen @ 2021-07-12 11:09 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
Changes since v1:
 - Updated LICENSE field to BSD-2-Clause

LICENSE.rst for this package isn't included in tarball it only exists in
GIT. I'll create a request on github to get it bundled in the next release

 rules/python3-snmpclitools.in   |  9 ++++++
 rules/python3-snmpclitools.make | 56 +++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)
 create mode 100644 rules/python3-snmpclitools.in
 create mode 100644 rules/python3-snmpclitools.make

diff --git a/rules/python3-snmpclitools.in b/rules/python3-snmpclitools.in
new file mode 100644
index 000000000..369b2bd65
--- /dev/null
+++ b/rules/python3-snmpclitools.in
@@ -0,0 +1,9 @@
+## SECTION=python3
+
+config PYTHON3_SNMPCLITOOLS
+	tristate
+	select PYTHON3
+	select PYTHON3_PYSNMP
+	prompt "snmpclitools"
+	help
+	  This is a collection of command-line SNMP tools written in pure-Python
diff --git a/rules/python3-snmpclitools.make b/rules/python3-snmpclitools.make
new file mode 100644
index 000000000..7c2917187
--- /dev/null
+++ b/rules/python3-snmpclitools.make
@@ -0,0 +1,56 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_SNMPCLITOOLS) += python3-snmpclitools
+
+#
+# Paths and names
+#
+PYTHON3_SNMPCLITOOLS_VERSION	:= 0.6.4
+PYTHON3_SNMPCLITOOLS_MD5	:= 132b100f5e7b80715e6c1d424e89687c
+PYTHON3_SNMPCLITOOLS		:= snmpclitools-$(PYTHON3_SNMPCLITOOLS_VERSION)
+PYTHON3_SNMPCLITOOLS_SUFFIX	:= tar.gz
+PYTHON3_SNMPCLITOOLS_URL	:= $(call ptx/mirror-pypi, snmpclitools, $(PYTHON3_SNMPCLITOOLS).$(PYTHON3_SNMPCLITOOLS_SUFFIX))
+PYTHON3_SNMPCLITOOLS_SOURCE	:= $(SRCDIR)/$(PYTHON3_SNMPCLITOOLS).$(PYTHON3_SNMPCLITOOLS_SUFFIX)
+PYTHON3_SNMPCLITOOLS_DIR	:= $(BUILDDIR)/$(PYTHON3_SNMPCLITOOLS)
+PYTHON3_SNMPCLITOOLS_LICENSE	:= BSD-2-Clause
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_SNMPCLITOOLS_CONF_TOOL	:= python3
+PYTHON3_SNMPCLITOOLS_MAKE_OPT	:= install_scripts
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-snmpclitools.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-snmpclitools)
+	@$(call install_fixup, python3-snmpclitools,PRIORITY,optional)
+	@$(call install_fixup, python3-snmpclitools,SECTION,base)
+	@$(call install_fixup, python3-snmpclitools,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, python3-snmpclitools,DESCRIPTION,missing)
+
+	@$(call install_glob, python3-snmpclitools, 0, 0, -, \
+		$(PYTHON3_SITEPACKAGES),, *.py)
+
+	@$(call install_glob,python3-snmpclitools, 0, 0, -, \
+		/usr/bin/,*.py,)
+
+	@$(call install_finish, python3-snmpclitools)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.31.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ptxdist] [PATCH v2 2/4] python3-pysmi: new package
  2021-07-12 11:09 ` [ptxdist] [PATCH v2 2/4] python3-pysmi: " Lars Pedersen
@ 2021-07-16 10:23   ` Michael Olbrich
  2021-07-16 12:24     ` Lars Pedersen
  2021-07-22 12:12   ` [ptxdist] [APPLIED] " Michael Olbrich
  1 sibling, 1 reply; 17+ messages in thread
From: Michael Olbrich @ 2021-07-16 10:23 UTC (permalink / raw)
  To: Lars Pedersen; +Cc: ptxdist

On Mon, Jul 12, 2021 at 01:09:08PM +0200, Lars Pedersen wrote:
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> ---
> Changes since v1:
>  - Updated LICENSE field to BSD-2-Clause
> 
>  rules/python3-pysmi.in   |  9 +++++++
>  rules/python3-pysmi.make | 54 ++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 63 insertions(+)
>  create mode 100644 rules/python3-pysmi.in
>  create mode 100644 rules/python3-pysmi.make
> 
> diff --git a/rules/python3-pysmi.in b/rules/python3-pysmi.in
> new file mode 100644
> index 000000000..a02d1b62d
> --- /dev/null
> +++ b/rules/python3-pysmi.in
> @@ -0,0 +1,9 @@
> +## SECTION=python3
> +
> +config PYTHON3_PYSMI
> +	tristate
> +	select PYTHON3
> +	select HOST_PYTHON3_SETUPTOOLS
> +	prompt "pysmi"
> +	help
> +	  A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.
> diff --git a/rules/python3-pysmi.make b/rules/python3-pysmi.make
> new file mode 100644
> index 000000000..67448e2f7
> --- /dev/null
> +++ b/rules/python3-pysmi.make
> @@ -0,0 +1,54 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_PYSMI) += python3-pysmi
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_PYSMI_VERSION	:= 0.3.4
> +PYTHON3_PYSMI_MD5	:= 10a9dd140ad512eed9f37344df83ce9d
> +PYTHON3_PYSMI		:= pysmi-$(PYTHON3_PYSMI_VERSION)
> +PYTHON3_PYSMI_SUFFIX	:= tar.gz
> +PYTHON3_PYSMI_URL	:= $(call ptx/mirror-pypi, pysmi, $(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX))
> +PYTHON3_PYSMI_SOURCE	:= $(SRCDIR)/$(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX)
> +PYTHON3_PYSMI_DIR	:= $(BUILDDIR)/$(PYTHON3_PYSMI)
> +PYTHON3_PYSMI_LICENSE	:= BSD-2-Clause
> +PYTHON3_PYSMI_LICENSE_FILES := \
> +	file://LICENSE.rst;md5=a088b5c72b59d51a5368ad3b18e219bf
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_PYSMI_CONF_TOOL	:= python3
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-pysmi.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, python3-pysmi)
> +	@$(call install_fixup, python3-pysmi,PRIORITY,optional)
> +	@$(call install_fixup, python3-pysmi,SECTION,base)
> +	@$(call install_fixup, python3-pysmi,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> +	@$(call install_fixup, python3-pysmi,DESCRIPTION,missing)
> +
> +	@$(call install_glob, python3-pysmi, 0, 0, -, \
> +		$(PYTHON3_SITEPACKAGES),, *.py)

Why install the *.py files and not *.pyc?

Michael

> +
> +	@$(call install_finish, python3-pysmi)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.31.1
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ptxdist] [PATCH v2 2/4] python3-pysmi: new package
  2021-07-16 10:23   ` Michael Olbrich
@ 2021-07-16 12:24     ` Lars Pedersen
  2021-07-16 12:40       ` Michael Olbrich
  0 siblings, 1 reply; 17+ messages in thread
From: Lars Pedersen @ 2021-07-16 12:24 UTC (permalink / raw)
  To: Lars Pedersen, ptxdist

Hi.

On Fri, 16 Jul 2021 at 12:23, Michael Olbrich <m.olbrich@pengutronix.de> wrote:
>
> On Mon, Jul 12, 2021 at 01:09:08PM +0200, Lars Pedersen wrote:
> > Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> > ---
> > Changes since v1:
> >  - Updated LICENSE field to BSD-2-Clause
> >
> >  rules/python3-pysmi.in   |  9 +++++++
> >  rules/python3-pysmi.make | 54 ++++++++++++++++++++++++++++++++++++++++
> >  2 files changed, 63 insertions(+)
> >  create mode 100644 rules/python3-pysmi.in
> >  create mode 100644 rules/python3-pysmi.make
> >
> > diff --git a/rules/python3-pysmi.in b/rules/python3-pysmi.in
> > new file mode 100644
> > index 000000000..a02d1b62d
> > --- /dev/null
> > +++ b/rules/python3-pysmi.in
> > @@ -0,0 +1,9 @@
> > +## SECTION=python3
> > +
> > +config PYTHON3_PYSMI
> > +     tristate
> > +     select PYTHON3
> > +     select HOST_PYTHON3_SETUPTOOLS
> > +     prompt "pysmi"
> > +     help
> > +       A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.
> > diff --git a/rules/python3-pysmi.make b/rules/python3-pysmi.make
> > new file mode 100644
> > index 000000000..67448e2f7
> > --- /dev/null
> > +++ b/rules/python3-pysmi.make
> > @@ -0,0 +1,54 @@
> > +# -*-makefile-*-
> > +#
> > +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> > +#
> > +# For further information about the PTXdist project and license conditions
> > +# see the README file.
> > +#
> > +
> > +#
> > +# We provide this package
> > +#
> > +PACKAGES-$(PTXCONF_PYTHON3_PYSMI) += python3-pysmi
> > +
> > +#
> > +# Paths and names
> > +#
> > +PYTHON3_PYSMI_VERSION        := 0.3.4
> > +PYTHON3_PYSMI_MD5    := 10a9dd140ad512eed9f37344df83ce9d
> > +PYTHON3_PYSMI                := pysmi-$(PYTHON3_PYSMI_VERSION)
> > +PYTHON3_PYSMI_SUFFIX := tar.gz
> > +PYTHON3_PYSMI_URL    := $(call ptx/mirror-pypi, pysmi, $(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX))
> > +PYTHON3_PYSMI_SOURCE := $(SRCDIR)/$(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX)
> > +PYTHON3_PYSMI_DIR    := $(BUILDDIR)/$(PYTHON3_PYSMI)
> > +PYTHON3_PYSMI_LICENSE        := BSD-2-Clause
> > +PYTHON3_PYSMI_LICENSE_FILES := \
> > +     file://LICENSE.rst;md5=a088b5c72b59d51a5368ad3b18e219bf
> > +
> > +# ----------------------------------------------------------------------------
> > +# Prepare
> > +# ----------------------------------------------------------------------------
> > +
> > +PYTHON3_PYSMI_CONF_TOOL      := python3
> > +
> > +# ----------------------------------------------------------------------------
> > +# Target-Install
> > +# ----------------------------------------------------------------------------
> > +
> > +$(STATEDIR)/python3-pysmi.targetinstall:
> > +     @$(call targetinfo)
> > +
> > +     @$(call install_init, python3-pysmi)
> > +     @$(call install_fixup, python3-pysmi,PRIORITY,optional)
> > +     @$(call install_fixup, python3-pysmi,SECTION,base)
> > +     @$(call install_fixup, python3-pysmi,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> > +     @$(call install_fixup, python3-pysmi,DESCRIPTION,missing)
> > +
> > +     @$(call install_glob, python3-pysmi, 0, 0, -, \
> > +             $(PYTHON3_SITEPACKAGES),, *.py)
>
> Why install the *.py files and not *.pyc?

The rule should install everything except *.py. For me it looks like
the *.py is in the no glob section as it should.

/Lars Pedersen.

>
> Michael
>
> > +
> > +     @$(call install_finish, python3-pysmi)
> > +
> > +     @$(call touch)
> > +
> > +# vim: syntax=make
> > --
> > 2.31.1
> >
> >
> > _______________________________________________
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> >
>
> --
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ptxdist] [PATCH v2 2/4] python3-pysmi: new package
  2021-07-16 12:24     ` Lars Pedersen
@ 2021-07-16 12:40       ` Michael Olbrich
  0 siblings, 0 replies; 17+ messages in thread
From: Michael Olbrich @ 2021-07-16 12:40 UTC (permalink / raw)
  To: Lars Pedersen; +Cc: ptxdist

On Fri, Jul 16, 2021 at 02:24:41PM +0200, Lars Pedersen wrote:
> Hi.
> 
> On Fri, 16 Jul 2021 at 12:23, Michael Olbrich <m.olbrich@pengutronix.de> wrote:
> >
> > On Mon, Jul 12, 2021 at 01:09:08PM +0200, Lars Pedersen wrote:
> > > Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> > > ---
> > > Changes since v1:
> > >  - Updated LICENSE field to BSD-2-Clause
> > >
> > >  rules/python3-pysmi.in   |  9 +++++++
> > >  rules/python3-pysmi.make | 54 ++++++++++++++++++++++++++++++++++++++++
> > >  2 files changed, 63 insertions(+)
> > >  create mode 100644 rules/python3-pysmi.in
> > >  create mode 100644 rules/python3-pysmi.make
> > >
> > > diff --git a/rules/python3-pysmi.in b/rules/python3-pysmi.in
> > > new file mode 100644
> > > index 000000000..a02d1b62d
> > > --- /dev/null
> > > +++ b/rules/python3-pysmi.in
> > > @@ -0,0 +1,9 @@
> > > +## SECTION=python3
> > > +
> > > +config PYTHON3_PYSMI
> > > +     tristate
> > > +     select PYTHON3
> > > +     select HOST_PYTHON3_SETUPTOOLS
> > > +     prompt "pysmi"
> > > +     help
> > > +       A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.
> > > diff --git a/rules/python3-pysmi.make b/rules/python3-pysmi.make
> > > new file mode 100644
> > > index 000000000..67448e2f7
> > > --- /dev/null
> > > +++ b/rules/python3-pysmi.make
> > > @@ -0,0 +1,54 @@
> > > +# -*-makefile-*-
> > > +#
> > > +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> > > +#
> > > +# For further information about the PTXdist project and license conditions
> > > +# see the README file.
> > > +#
> > > +
> > > +#
> > > +# We provide this package
> > > +#
> > > +PACKAGES-$(PTXCONF_PYTHON3_PYSMI) += python3-pysmi
> > > +
> > > +#
> > > +# Paths and names
> > > +#
> > > +PYTHON3_PYSMI_VERSION        := 0.3.4
> > > +PYTHON3_PYSMI_MD5    := 10a9dd140ad512eed9f37344df83ce9d
> > > +PYTHON3_PYSMI                := pysmi-$(PYTHON3_PYSMI_VERSION)
> > > +PYTHON3_PYSMI_SUFFIX := tar.gz
> > > +PYTHON3_PYSMI_URL    := $(call ptx/mirror-pypi, pysmi, $(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX))
> > > +PYTHON3_PYSMI_SOURCE := $(SRCDIR)/$(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX)
> > > +PYTHON3_PYSMI_DIR    := $(BUILDDIR)/$(PYTHON3_PYSMI)
> > > +PYTHON3_PYSMI_LICENSE        := BSD-2-Clause
> > > +PYTHON3_PYSMI_LICENSE_FILES := \
> > > +     file://LICENSE.rst;md5=a088b5c72b59d51a5368ad3b18e219bf
> > > +
> > > +# ----------------------------------------------------------------------------
> > > +# Prepare
> > > +# ----------------------------------------------------------------------------
> > > +
> > > +PYTHON3_PYSMI_CONF_TOOL      := python3
> > > +
> > > +# ----------------------------------------------------------------------------
> > > +# Target-Install
> > > +# ----------------------------------------------------------------------------
> > > +
> > > +$(STATEDIR)/python3-pysmi.targetinstall:
> > > +     @$(call targetinfo)
> > > +
> > > +     @$(call install_init, python3-pysmi)
> > > +     @$(call install_fixup, python3-pysmi,PRIORITY,optional)
> > > +     @$(call install_fixup, python3-pysmi,SECTION,base)
> > > +     @$(call install_fixup, python3-pysmi,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> > > +     @$(call install_fixup, python3-pysmi,DESCRIPTION,missing)
> > > +
> > > +     @$(call install_glob, python3-pysmi, 0, 0, -, \
> > > +             $(PYTHON3_SITEPACKAGES),, *.py)
> >
> > Why install the *.py files and not *.pyc?
> 
> The rule should install everything except *.py. For me it looks like
> the *.py is in the no glob section as it should.

Sorry, I replied to the wrong patch...

Michael

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ptxdist] [PATCH v2 3/4] python3-pysnmp: new package
  2021-07-12 11:09 ` [ptxdist] [PATCH v2 3/4] python3-pysnmp: " Lars Pedersen
@ 2021-07-16 12:41   ` Michael Olbrich
  2021-07-16 12:53     ` Lars Pedersen
  0 siblings, 1 reply; 17+ messages in thread
From: Michael Olbrich @ 2021-07-16 12:41 UTC (permalink / raw)
  To: Lars Pedersen; +Cc: ptxdist

On Mon, Jul 12, 2021 at 01:09:09PM +0200, Lars Pedersen wrote:
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> ---
> Changes since v1:
>  - Updated LICENSE field to BSD-2-Clause
> 
>  rules/python3-pysnmp.in   | 13 ++++++++++
>  rules/python3-pysnmp.make | 54 +++++++++++++++++++++++++++++++++++++++
>  2 files changed, 67 insertions(+)
>  create mode 100644 rules/python3-pysnmp.in
>  create mode 100644 rules/python3-pysnmp.make
> 
> diff --git a/rules/python3-pysnmp.in b/rules/python3-pysnmp.in
> new file mode 100644
> index 000000000..09e9b2b0a
> --- /dev/null
> +++ b/rules/python3-pysnmp.in
> @@ -0,0 +1,13 @@
> +## SECTION=python3
> +
> +config PYTHON3_PYSNMP
> +	bool
> +	prompt "pysnmp"
> +	select PYTHON3
> +	select HOST_PYTHON3_SETUPTOOLS
> +	select PYTHON3_PLY
> +	select PYTHON3_PYASN1
> +	select PYTHON3_PYCRYPTODOMEX
> +	select PYTHON3_PYSMI
> +	help
> +	  pySNMP is a cross-platform, pure-Python SNMP engine implementation.
> diff --git a/rules/python3-pysnmp.make b/rules/python3-pysnmp.make
> new file mode 100644
> index 000000000..9eb101b9f
> --- /dev/null
> +++ b/rules/python3-pysnmp.make
> @@ -0,0 +1,54 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_PYSNMP) += python3-pysnmp
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_PYSNMP_VERSION	:= 4.4.12
> +PYTHON3_PYSNMP_MD5	:= 2222880259daf6e2cb322e938c818276
> +PYTHON3_PYSNMP		:= pysnmp-$(PYTHON3_PYSNMP_VERSION)
> +PYTHON3_PYSNMP_SUFFIX 	:= tar.gz
> +PYTHON3_PYSNMP_URL	:= $(call ptx/mirror-pypi, pysnmp, $(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX))
> +PYTHON3_PYSNMP_SOURCE	:= $(SRCDIR)/$(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX)
> +PYTHON3_PYSNMP_DIR	:= $(BUILDDIR)/$(PYTHON3_PYSNMP)
> +PYTHON3_PYSNMP_LICENSE	:= BSD-2-Clause
> +PYTHON3_PYSNMP_LICENSE_FILES := \
> +	file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_PYSNMP_CONF_TOOL	:= python3
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-pysnmp.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, python3-pysnmp)
> +	@$(call install_fixup, python3-pysnmp,PRIORITY,optional)
> +	@$(call install_fixup, python3-pysnmp,SECTION,base)
> +	@$(call install_fixup, python3-pysnmp,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> +	@$(call install_fixup, python3-pysnmp,DESCRIPTION,missing)
> +
> +	@$(call install_glob,python3-pysnmp, 0, 0, -, \
> +		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.pyc)

That's the strange one. Why skip all *.pyc? I can do a fixup if this
should just be *.py instead.

Michael

> +
> +	@$(call install_finish, python3-pysnmp)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.31.1
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ptxdist] [PATCH v2 3/4] python3-pysnmp: new package
  2021-07-16 12:41   ` Michael Olbrich
@ 2021-07-16 12:53     ` Lars Pedersen
  2021-07-16 13:02       ` Michael Olbrich
  0 siblings, 1 reply; 17+ messages in thread
From: Lars Pedersen @ 2021-07-16 12:53 UTC (permalink / raw)
  To: Lars Pedersen, ptxdist

Hi. Thanks for the reply

On Fri, 16 Jul 2021 at 14:41, Michael Olbrich <m.olbrich@pengutronix.de> wrote:
>
> On Mon, Jul 12, 2021 at 01:09:09PM +0200, Lars Pedersen wrote:
> > Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> > ---
> > Changes since v1:
> >  - Updated LICENSE field to BSD-2-Clause
> >
> >  rules/python3-pysnmp.in   | 13 ++++++++++
> >  rules/python3-pysnmp.make | 54 +++++++++++++++++++++++++++++++++++++++
> >  2 files changed, 67 insertions(+)
> >  create mode 100644 rules/python3-pysnmp.in
> >  create mode 100644 rules/python3-pysnmp.make
> >
> > diff --git a/rules/python3-pysnmp.in b/rules/python3-pysnmp.in
> > new file mode 100644
> > index 000000000..09e9b2b0a
> > --- /dev/null
> > +++ b/rules/python3-pysnmp.in
> > @@ -0,0 +1,13 @@
> > +## SECTION=python3
> > +
> > +config PYTHON3_PYSNMP
> > +     bool
> > +     prompt "pysnmp"
> > +     select PYTHON3
> > +     select HOST_PYTHON3_SETUPTOOLS
> > +     select PYTHON3_PLY
> > +     select PYTHON3_PYASN1
> > +     select PYTHON3_PYCRYPTODOMEX
> > +     select PYTHON3_PYSMI
> > +     help
> > +       pySNMP is a cross-platform, pure-Python SNMP engine implementation.
> > diff --git a/rules/python3-pysnmp.make b/rules/python3-pysnmp.make
> > new file mode 100644
> > index 000000000..9eb101b9f
> > --- /dev/null
> > +++ b/rules/python3-pysnmp.make
> > @@ -0,0 +1,54 @@
> > +# -*-makefile-*-
> > +#
> > +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> > +#
> > +# For further information about the PTXdist project and license conditions
> > +# see the README file.
> > +#
> > +
> > +#
> > +# We provide this package
> > +#
> > +PACKAGES-$(PTXCONF_PYTHON3_PYSNMP) += python3-pysnmp
> > +
> > +#
> > +# Paths and names
> > +#
> > +PYTHON3_PYSNMP_VERSION       := 4.4.12
> > +PYTHON3_PYSNMP_MD5   := 2222880259daf6e2cb322e938c818276
> > +PYTHON3_PYSNMP               := pysnmp-$(PYTHON3_PYSNMP_VERSION)
> > +PYTHON3_PYSNMP_SUFFIX        := tar.gz
> > +PYTHON3_PYSNMP_URL   := $(call ptx/mirror-pypi, pysnmp, $(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX))
> > +PYTHON3_PYSNMP_SOURCE        := $(SRCDIR)/$(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX)
> > +PYTHON3_PYSNMP_DIR   := $(BUILDDIR)/$(PYTHON3_PYSNMP)
> > +PYTHON3_PYSNMP_LICENSE       := BSD-2-Clause
> > +PYTHON3_PYSNMP_LICENSE_FILES := \
> > +     file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8
> > +
> > +# ----------------------------------------------------------------------------
> > +# Prepare
> > +# ----------------------------------------------------------------------------
> > +
> > +PYTHON3_PYSNMP_CONF_TOOL     := python3
> > +
> > +# ----------------------------------------------------------------------------
> > +# Target-Install
> > +# ----------------------------------------------------------------------------
> > +
> > +$(STATEDIR)/python3-pysnmp.targetinstall:
> > +     @$(call targetinfo)
> > +
> > +     @$(call install_init, python3-pysnmp)
> > +     @$(call install_fixup, python3-pysnmp,PRIORITY,optional)
> > +     @$(call install_fixup, python3-pysnmp,SECTION,base)
> > +     @$(call install_fixup, python3-pysnmp,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> > +     @$(call install_fixup, python3-pysnmp,DESCRIPTION,missing)
> > +
> > +     @$(call install_glob,python3-pysnmp, 0, 0, -, \
> > +             /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.pyc)
>
> That's the strange one. Why skip all *.pyc? I can do a fixup if this
> should just be *.py instead.

Yes now I remember.  I couldn't get the pyc files to work on the
device and somehow the py files did. After a few hours of debugging I
gave up.

\Lars Pedersen

>
> Michael
>
> > +
> > +     @$(call install_finish, python3-pysnmp)
> > +
> > +     @$(call touch)
> > +
> > +# vim: syntax=make
> > --
> > 2.31.1
> >
> >
> > _______________________________________________
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> >
>
> --
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ptxdist] [PATCH v2 3/4] python3-pysnmp: new package
  2021-07-16 12:53     ` Lars Pedersen
@ 2021-07-16 13:02       ` Michael Olbrich
  2021-07-18 19:03         ` Lars Pedersen
  0 siblings, 1 reply; 17+ messages in thread
From: Michael Olbrich @ 2021-07-16 13:02 UTC (permalink / raw)
  To: Lars Pedersen; +Cc: ptxdist

On Fri, Jul 16, 2021 at 02:53:42PM +0200, Lars Pedersen wrote:
> Hi. Thanks for the reply
> 
> On Fri, 16 Jul 2021 at 14:41, Michael Olbrich <m.olbrich@pengutronix.de> wrote:
> >
> > On Mon, Jul 12, 2021 at 01:09:09PM +0200, Lars Pedersen wrote:
> > > Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> > > ---
> > > Changes since v1:
> > >  - Updated LICENSE field to BSD-2-Clause
> > >
> > >  rules/python3-pysnmp.in   | 13 ++++++++++
> > >  rules/python3-pysnmp.make | 54 +++++++++++++++++++++++++++++++++++++++
> > >  2 files changed, 67 insertions(+)
> > >  create mode 100644 rules/python3-pysnmp.in
> > >  create mode 100644 rules/python3-pysnmp.make
> > >
> > > diff --git a/rules/python3-pysnmp.in b/rules/python3-pysnmp.in
> > > new file mode 100644
> > > index 000000000..09e9b2b0a
> > > --- /dev/null
> > > +++ b/rules/python3-pysnmp.in
> > > @@ -0,0 +1,13 @@
> > > +## SECTION=python3
> > > +
> > > +config PYTHON3_PYSNMP
> > > +     bool
> > > +     prompt "pysnmp"
> > > +     select PYTHON3
> > > +     select HOST_PYTHON3_SETUPTOOLS
> > > +     select PYTHON3_PLY
> > > +     select PYTHON3_PYASN1
> > > +     select PYTHON3_PYCRYPTODOMEX
> > > +     select PYTHON3_PYSMI
> > > +     help
> > > +       pySNMP is a cross-platform, pure-Python SNMP engine implementation.
> > > diff --git a/rules/python3-pysnmp.make b/rules/python3-pysnmp.make
> > > new file mode 100644
> > > index 000000000..9eb101b9f
> > > --- /dev/null
> > > +++ b/rules/python3-pysnmp.make
> > > @@ -0,0 +1,54 @@
> > > +# -*-makefile-*-
> > > +#
> > > +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> > > +#
> > > +# For further information about the PTXdist project and license conditions
> > > +# see the README file.
> > > +#
> > > +
> > > +#
> > > +# We provide this package
> > > +#
> > > +PACKAGES-$(PTXCONF_PYTHON3_PYSNMP) += python3-pysnmp
> > > +
> > > +#
> > > +# Paths and names
> > > +#
> > > +PYTHON3_PYSNMP_VERSION       := 4.4.12
> > > +PYTHON3_PYSNMP_MD5   := 2222880259daf6e2cb322e938c818276
> > > +PYTHON3_PYSNMP               := pysnmp-$(PYTHON3_PYSNMP_VERSION)
> > > +PYTHON3_PYSNMP_SUFFIX        := tar.gz
> > > +PYTHON3_PYSNMP_URL   := $(call ptx/mirror-pypi, pysnmp, $(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX))
> > > +PYTHON3_PYSNMP_SOURCE        := $(SRCDIR)/$(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX)
> > > +PYTHON3_PYSNMP_DIR   := $(BUILDDIR)/$(PYTHON3_PYSNMP)
> > > +PYTHON3_PYSNMP_LICENSE       := BSD-2-Clause
> > > +PYTHON3_PYSNMP_LICENSE_FILES := \
> > > +     file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8
> > > +
> > > +# ----------------------------------------------------------------------------
> > > +# Prepare
> > > +# ----------------------------------------------------------------------------
> > > +
> > > +PYTHON3_PYSNMP_CONF_TOOL     := python3
> > > +
> > > +# ----------------------------------------------------------------------------
> > > +# Target-Install
> > > +# ----------------------------------------------------------------------------
> > > +
> > > +$(STATEDIR)/python3-pysnmp.targetinstall:
> > > +     @$(call targetinfo)
> > > +
> > > +     @$(call install_init, python3-pysnmp)
> > > +     @$(call install_fixup, python3-pysnmp,PRIORITY,optional)
> > > +     @$(call install_fixup, python3-pysnmp,SECTION,base)
> > > +     @$(call install_fixup, python3-pysnmp,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> > > +     @$(call install_fixup, python3-pysnmp,DESCRIPTION,missing)
> > > +
> > > +     @$(call install_glob,python3-pysnmp, 0, 0, -, \
> > > +             /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.pyc)
> >
> > That's the strange one. Why skip all *.pyc? I can do a fixup if this
> > should just be *.py instead.
> 
> Yes now I remember.  I couldn't get the pyc files to work on the
> device and somehow the py files did. After a few hours of debugging I
> gave up.

In that case, please at a short comment above the install_glob about this.
And more details in the commit message. Something about how it fails, the
error message etc.
Basically something that whoever updates the package in the future can use
to check if it's still broken.

Michael

> > > +
> > > +     @$(call install_finish, python3-pysnmp)
> > > +
> > > +     @$(call touch)
> > > +
> > > +# vim: syntax=make
> > > --
> > > 2.31.1
> > >
> > >
> > > _______________________________________________
> > > ptxdist mailing list
> > > ptxdist@pengutronix.de
> > > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> > >
> >
> > --
> > Pengutronix e.K.                           |                             |
> > Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> > 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> > Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ptxdist] [PATCH v2 3/4] python3-pysnmp: new package
  2021-07-16 13:02       ` Michael Olbrich
@ 2021-07-18 19:03         ` Lars Pedersen
  2021-07-19  6:48           ` Michael Olbrich
  0 siblings, 1 reply; 17+ messages in thread
From: Lars Pedersen @ 2021-07-18 19:03 UTC (permalink / raw)
  To: Lars Pedersen, ptxdist

Hi. Thanks for the feedbacks.

On Fri, 16 Jul 2021 at 15:02, Michael Olbrich <m.olbrich@pengutronix.de> wrote:
>
> On Fri, Jul 16, 2021 at 02:53:42PM +0200, Lars Pedersen wrote:
> > Hi. Thanks for the reply
> >
> > On Fri, 16 Jul 2021 at 14:41, Michael Olbrich <m.olbrich@pengutronix.de> wrote:
> > >
> > > On Mon, Jul 12, 2021 at 01:09:09PM +0200, Lars Pedersen wrote:
> > > > Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> > > > ---
> > > > Changes since v1:
> > > >  - Updated LICENSE field to BSD-2-Clause
> > > >
> > > >  rules/python3-pysnmp.in   | 13 ++++++++++
> > > >  rules/python3-pysnmp.make | 54 +++++++++++++++++++++++++++++++++++++++
> > > >  2 files changed, 67 insertions(+)
> > > >  create mode 100644 rules/python3-pysnmp.in
> > > >  create mode 100644 rules/python3-pysnmp.make
> > > >
> > > > diff --git a/rules/python3-pysnmp.in b/rules/python3-pysnmp.in
> > > > new file mode 100644
> > > > index 000000000..09e9b2b0a
> > > > --- /dev/null
> > > > +++ b/rules/python3-pysnmp.in
> > > > @@ -0,0 +1,13 @@
> > > > +## SECTION=python3
> > > > +
> > > > +config PYTHON3_PYSNMP
> > > > +     bool
> > > > +     prompt "pysnmp"
> > > > +     select PYTHON3
> > > > +     select HOST_PYTHON3_SETUPTOOLS
> > > > +     select PYTHON3_PLY
> > > > +     select PYTHON3_PYASN1
> > > > +     select PYTHON3_PYCRYPTODOMEX
> > > > +     select PYTHON3_PYSMI
> > > > +     help
> > > > +       pySNMP is a cross-platform, pure-Python SNMP engine implementation.
> > > > diff --git a/rules/python3-pysnmp.make b/rules/python3-pysnmp.make
> > > > new file mode 100644
> > > > index 000000000..9eb101b9f
> > > > --- /dev/null
> > > > +++ b/rules/python3-pysnmp.make
> > > > @@ -0,0 +1,54 @@
> > > > +# -*-makefile-*-
> > > > +#
> > > > +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> > > > +#
> > > > +# For further information about the PTXdist project and license conditions
> > > > +# see the README file.
> > > > +#
> > > > +
> > > > +#
> > > > +# We provide this package
> > > > +#
> > > > +PACKAGES-$(PTXCONF_PYTHON3_PYSNMP) += python3-pysnmp
> > > > +
> > > > +#
> > > > +# Paths and names
> > > > +#
> > > > +PYTHON3_PYSNMP_VERSION       := 4.4.12
> > > > +PYTHON3_PYSNMP_MD5   := 2222880259daf6e2cb322e938c818276
> > > > +PYTHON3_PYSNMP               := pysnmp-$(PYTHON3_PYSNMP_VERSION)
> > > > +PYTHON3_PYSNMP_SUFFIX        := tar.gz
> > > > +PYTHON3_PYSNMP_URL   := $(call ptx/mirror-pypi, pysnmp, $(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX))
> > > > +PYTHON3_PYSNMP_SOURCE        := $(SRCDIR)/$(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX)
> > > > +PYTHON3_PYSNMP_DIR   := $(BUILDDIR)/$(PYTHON3_PYSNMP)
> > > > +PYTHON3_PYSNMP_LICENSE       := BSD-2-Clause
> > > > +PYTHON3_PYSNMP_LICENSE_FILES := \
> > > > +     file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8
> > > > +
> > > > +# ----------------------------------------------------------------------------
> > > > +# Prepare
> > > > +# ----------------------------------------------------------------------------
> > > > +
> > > > +PYTHON3_PYSNMP_CONF_TOOL     := python3
> > > > +
> > > > +# ----------------------------------------------------------------------------
> > > > +# Target-Install
> > > > +# ----------------------------------------------------------------------------
> > > > +
> > > > +$(STATEDIR)/python3-pysnmp.targetinstall:
> > > > +     @$(call targetinfo)
> > > > +
> > > > +     @$(call install_init, python3-pysnmp)
> > > > +     @$(call install_fixup, python3-pysnmp,PRIORITY,optional)
> > > > +     @$(call install_fixup, python3-pysnmp,SECTION,base)
> > > > +     @$(call install_fixup, python3-pysnmp,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> > > > +     @$(call install_fixup, python3-pysnmp,DESCRIPTION,missing)
> > > > +
> > > > +     @$(call install_glob,python3-pysnmp, 0, 0, -, \
> > > > +             /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.pyc)
> > >
> > > That's the strange one. Why skip all *.pyc? I can do a fixup if this
> > > should just be *.py instead.
> >
> > Yes now I remember.  I couldn't get the pyc files to work on the
> > device and somehow the py files did. After a few hours of debugging I
> > gave up.
>
> In that case, please at a short comment above the install_glob about this.
> And more details in the commit message. Something about how it fails, the
> error message etc.
> Basically something that whoever updates the package in the future can use
> to check if it's still broken.
>
> Michael
>

Okay I'll do a re-test and see if it still the case. Is it okay to
resend a v3 for pysmp, or do I need to resend the entire patch series
in v3?

/Lars Pedersen

> > > > +
> > > > +     @$(call install_finish, python3-pysnmp)
> > > > +
> > > > +     @$(call touch)
> > > > +
> > > > +# vim: syntax=make
> > > > --
> > > > 2.31.1
> > > >
> > > >
> > > > _______________________________________________
> > > > ptxdist mailing list
> > > > ptxdist@pengutronix.de
> > > > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> > > >
> > >
> > > --
> > > Pengutronix e.K.                           |                             |
> > > Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> > > 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> > > Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >
> > _______________________________________________
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> >
>
> --
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ptxdist] [PATCH v2 3/4] python3-pysnmp: new package
  2021-07-18 19:03         ` Lars Pedersen
@ 2021-07-19  6:48           ` Michael Olbrich
  2021-07-19  7:47             ` [ptxdist] [PATCH v3] " Lars Pedersen
  0 siblings, 1 reply; 17+ messages in thread
From: Michael Olbrich @ 2021-07-19  6:48 UTC (permalink / raw)
  To: Lars Pedersen; +Cc: ptxdist

On Sun, Jul 18, 2021 at 09:03:13PM +0200, Lars Pedersen wrote:
> Hi. Thanks for the feedbacks.
> 
> On Fri, 16 Jul 2021 at 15:02, Michael Olbrich <m.olbrich@pengutronix.de> wrote:
> >
> > On Fri, Jul 16, 2021 at 02:53:42PM +0200, Lars Pedersen wrote:
> > > Hi. Thanks for the reply
> > >
> > > On Fri, 16 Jul 2021 at 14:41, Michael Olbrich <m.olbrich@pengutronix.de> wrote:
> > > >
> > > > On Mon, Jul 12, 2021 at 01:09:09PM +0200, Lars Pedersen wrote:
> > > > > Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> > > > > ---
> > > > > Changes since v1:
> > > > >  - Updated LICENSE field to BSD-2-Clause
> > > > >
> > > > >  rules/python3-pysnmp.in   | 13 ++++++++++
> > > > >  rules/python3-pysnmp.make | 54 +++++++++++++++++++++++++++++++++++++++
> > > > >  2 files changed, 67 insertions(+)
> > > > >  create mode 100644 rules/python3-pysnmp.in
> > > > >  create mode 100644 rules/python3-pysnmp.make
> > > > >
> > > > > diff --git a/rules/python3-pysnmp.in b/rules/python3-pysnmp.in
> > > > > new file mode 100644
> > > > > index 000000000..09e9b2b0a
> > > > > --- /dev/null
> > > > > +++ b/rules/python3-pysnmp.in
> > > > > @@ -0,0 +1,13 @@
> > > > > +## SECTION=python3
> > > > > +
> > > > > +config PYTHON3_PYSNMP
> > > > > +     bool
> > > > > +     prompt "pysnmp"
> > > > > +     select PYTHON3
> > > > > +     select HOST_PYTHON3_SETUPTOOLS
> > > > > +     select PYTHON3_PLY
> > > > > +     select PYTHON3_PYASN1
> > > > > +     select PYTHON3_PYCRYPTODOMEX
> > > > > +     select PYTHON3_PYSMI
> > > > > +     help
> > > > > +       pySNMP is a cross-platform, pure-Python SNMP engine implementation.
> > > > > diff --git a/rules/python3-pysnmp.make b/rules/python3-pysnmp.make
> > > > > new file mode 100644
> > > > > index 000000000..9eb101b9f
> > > > > --- /dev/null
> > > > > +++ b/rules/python3-pysnmp.make
> > > > > @@ -0,0 +1,54 @@
> > > > > +# -*-makefile-*-
> > > > > +#
> > > > > +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> > > > > +#
> > > > > +# For further information about the PTXdist project and license conditions
> > > > > +# see the README file.
> > > > > +#
> > > > > +
> > > > > +#
> > > > > +# We provide this package
> > > > > +#
> > > > > +PACKAGES-$(PTXCONF_PYTHON3_PYSNMP) += python3-pysnmp
> > > > > +
> > > > > +#
> > > > > +# Paths and names
> > > > > +#
> > > > > +PYTHON3_PYSNMP_VERSION       := 4.4.12
> > > > > +PYTHON3_PYSNMP_MD5   := 2222880259daf6e2cb322e938c818276
> > > > > +PYTHON3_PYSNMP               := pysnmp-$(PYTHON3_PYSNMP_VERSION)
> > > > > +PYTHON3_PYSNMP_SUFFIX        := tar.gz
> > > > > +PYTHON3_PYSNMP_URL   := $(call ptx/mirror-pypi, pysnmp, $(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX))
> > > > > +PYTHON3_PYSNMP_SOURCE        := $(SRCDIR)/$(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX)
> > > > > +PYTHON3_PYSNMP_DIR   := $(BUILDDIR)/$(PYTHON3_PYSNMP)
> > > > > +PYTHON3_PYSNMP_LICENSE       := BSD-2-Clause
> > > > > +PYTHON3_PYSNMP_LICENSE_FILES := \
> > > > > +     file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8
> > > > > +
> > > > > +# ----------------------------------------------------------------------------
> > > > > +# Prepare
> > > > > +# ----------------------------------------------------------------------------
> > > > > +
> > > > > +PYTHON3_PYSNMP_CONF_TOOL     := python3
> > > > > +
> > > > > +# ----------------------------------------------------------------------------
> > > > > +# Target-Install
> > > > > +# ----------------------------------------------------------------------------
> > > > > +
> > > > > +$(STATEDIR)/python3-pysnmp.targetinstall:
> > > > > +     @$(call targetinfo)
> > > > > +
> > > > > +     @$(call install_init, python3-pysnmp)
> > > > > +     @$(call install_fixup, python3-pysnmp,PRIORITY,optional)
> > > > > +     @$(call install_fixup, python3-pysnmp,SECTION,base)
> > > > > +     @$(call install_fixup, python3-pysnmp,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> > > > > +     @$(call install_fixup, python3-pysnmp,DESCRIPTION,missing)
> > > > > +
> > > > > +     @$(call install_glob,python3-pysnmp, 0, 0, -, \
> > > > > +             /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.pyc)
> > > >
> > > > That's the strange one. Why skip all *.pyc? I can do a fixup if this
> > > > should just be *.py instead.
> > >
> > > Yes now I remember.  I couldn't get the pyc files to work on the
> > > device and somehow the py files did. After a few hours of debugging I
> > > gave up.
> >
> > In that case, please at a short comment above the install_glob about this.
> > And more details in the commit message. Something about how it fails, the
> > error message etc.
> > Basically something that whoever updates the package in the future can use
> > to check if it's still broken.
> >
> > Michael
> >
> 
> Okay I'll do a re-test and see if it still the case. Is it okay to
> resend a v3 for pysmp, or do I need to resend the entire patch series
> in v3?

If you do it soon, then just the one (as a reply to this thread) is fine.
Just don't wait too long or I'll forget to apply the rest of the series
:-).

Regards,
Michael


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [ptxdist] [PATCH v3] python3-pysnmp: new package
  2021-07-19  6:48           ` Michael Olbrich
@ 2021-07-19  7:47             ` Lars Pedersen
  2021-07-22 12:12               ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 17+ messages in thread
From: Lars Pedersen @ 2021-07-19  7:47 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Got a runtime error so py files are installed instead of pyc

Traceback (most recent call last):
  File "/usr/bin/snmptrap.py", line 237, in <module>
  snmpEngine = engine.SnmpEngine()
  File "/usr/lib/python3.7/site-packages/pysnmp/entity/engine.py", line 63, in __init__
  File "/usr/lib/python3.7/site-packages/pysnmp/proto/rfc3412.py", line 32, in __init__
  File "/usr/lib/python3.7/site-packages/pysnmp/smi/builder.py", line 401, in loadModules
  File "/usr/lib/python3.7/site-packages/pysnmp/smi/builder.py", line 341, in loadModule
  File "/usr/lib/python3.7/site-packages/pysnmp/smi/builder.py", line 143, in read
  ValueError: bad marshal data (unknown type code)

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
 rules/python3-pysnmp.in   | 13 +++++++++
 rules/python3-pysnmp.make | 55 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 rules/python3-pysnmp.in
 create mode 100644 rules/python3-pysnmp.make

diff --git a/rules/python3-pysnmp.in b/rules/python3-pysnmp.in
new file mode 100644
index 000000000..09e9b2b0a
--- /dev/null
+++ b/rules/python3-pysnmp.in
@@ -0,0 +1,13 @@
+## SECTION=python3
+
+config PYTHON3_PYSNMP
+	bool
+	prompt "pysnmp"
+	select PYTHON3
+	select HOST_PYTHON3_SETUPTOOLS
+	select PYTHON3_PLY
+	select PYTHON3_PYASN1
+	select PYTHON3_PYCRYPTODOMEX
+	select PYTHON3_PYSMI
+	help
+	  pySNMP is a cross-platform, pure-Python SNMP engine implementation.
diff --git a/rules/python3-pysnmp.make b/rules/python3-pysnmp.make
new file mode 100644
index 000000000..cb08668b3
--- /dev/null
+++ b/rules/python3-pysnmp.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PYSNMP) += python3-pysnmp
+
+#
+# Paths and names
+#
+PYTHON3_PYSNMP_VERSION	:= 4.4.12
+PYTHON3_PYSNMP_MD5	:= 2222880259daf6e2cb322e938c818276
+PYTHON3_PYSNMP		:= pysnmp-$(PYTHON3_PYSNMP_VERSION)
+PYTHON3_PYSNMP_SUFFIX 	:= tar.gz
+PYTHON3_PYSNMP_URL	:= $(call ptx/mirror-pypi, pysnmp, $(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX))
+PYTHON3_PYSNMP_SOURCE	:= $(SRCDIR)/$(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX)
+PYTHON3_PYSNMP_DIR	:= $(BUILDDIR)/$(PYTHON3_PYSNMP)
+PYTHON3_PYSNMP_LICENSE	:= BSD-2-Clause
+PYTHON3_PYSNMP_LICENSE_FILES := \
+	file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PYSNMP_CONF_TOOL	:= python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-pysnmp.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-pysnmp)
+	@$(call install_fixup, python3-pysnmp,PRIORITY,optional)
+	@$(call install_fixup, python3-pysnmp,SECTION,base)
+	@$(call install_fixup, python3-pysnmp,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, python3-pysnmp,DESCRIPTION,missing)
+
+	# Install py files instead of pyc because of runtime marshal error
+	@$(call install_glob,python3-pysnmp, 0, 0, -, \
+		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.pyc)
+
+	@$(call install_finish, python3-pysnmp)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.31.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ptxdist] [APPLIED] python3-pyasn1: new package
  2021-07-12 11:09 [ptxdist] [PATCH v2 1/4] python3-pyasn1: new package Lars Pedersen
                   ` (2 preceding siblings ...)
  2021-07-12 11:09 ` [ptxdist] [PATCH v2 4/4] python3-snmpclitools: " Lars Pedersen
@ 2021-07-22 12:12 ` Michael Olbrich
  3 siblings, 0 replies; 17+ messages in thread
From: Michael Olbrich @ 2021-07-22 12:12 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Thanks, applied as 052c32c798ae382fdb129f41ac296caacaa348d4.

Michael

[sent from post-receive hook]

On Thu, 22 Jul 2021 14:12:49 +0200, Lars Pedersen <lapeddk@gmail.com> wrote:
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> Message-Id: <20210712110910.562587-1-lapeddk@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/python3-pyasn1.in b/rules/python3-pyasn1.in
> new file mode 100644
> index 000000000000..a28e4e35537f
> --- /dev/null
> +++ b/rules/python3-pyasn1.in
> @@ -0,0 +1,9 @@
> +## SECTION=python3
> +
> +config PYTHON3_PYASN1
> +	bool
> +	prompt "pyasn1"
> +	select PYTHON3
> +	select HOST_PYTHON3_SETUPTOOLS
> +	help
> +	  Pure-Python implementation of ASN.1 types and DER/BER/CER codecs (X.208)
> diff --git a/rules/python3-pyasn1.make b/rules/python3-pyasn1.make
> new file mode 100644
> index 000000000000..f440e727afc3
> --- /dev/null
> +++ b/rules/python3-pyasn1.make
> @@ -0,0 +1,53 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_PYASN1) += python3-pyasn1
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_PYASN1_VERSION	:= 0.4.8
> +PYTHON3_PYASN1_MD5	:= dffae4ff9f997a83324b3f33fe62be54
> +PYTHON3_PYASN1		:= pyasn1-$(PYTHON3_PYASN1_VERSION)
> +PYTHON3_PYASN1_SUFFIX	:= tar.gz
> +PYTHON3_PYASN1_URL	:= $(call ptx/mirror-pypi, pyasn1, $(PYTHON3_PYASN1).$(PYTHON3_PYASN1_SUFFIX))
> +PYTHON3_PYASN1_SOURCE	:= $(SRCDIR)/$(PYTHON3_PYASN1).$(PYTHON3_PYASN1_SUFFIX)
> +PYTHON3_PYASN1_DIR	:= $(BUILDDIR)/$(PYTHON3_PYASN1)
> +PYTHON3_PYASN1_LICENSE	:= BSD-2-Clause
> +PYTHON3_PYASN1_LICENSE_FILES := \
> +	file://LICENSE.rst;md5=a14482d15c2249de3b6f0e8a47e021fd
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_PYASN1_CONF_TOOL	:= python3
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +$(STATEDIR)/python3-pyasn1.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, python3-pyasn1)
> +	@$(call install_fixup, python3-pyasn1,PRIORITY,optional)
> +	@$(call install_fixup, python3-pyasn1,SECTION,base)
> +	@$(call install_fixup, python3-pyasn1,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> +	@$(call install_fixup, python3-pyasn1,DESCRIPTION,missing)
> +
> +	@$(call install_glob,python3-pyasn1, 0, 0, -, \
> +		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py)
> +
> +	@$(call install_finish, python3-pyasn1)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ptxdist] [APPLIED] python3-pysmi: new package
  2021-07-12 11:09 ` [ptxdist] [PATCH v2 2/4] python3-pysmi: " Lars Pedersen
  2021-07-16 10:23   ` Michael Olbrich
@ 2021-07-22 12:12   ` Michael Olbrich
  1 sibling, 0 replies; 17+ messages in thread
From: Michael Olbrich @ 2021-07-22 12:12 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Thanks, applied as 067b1798682828274abdc28f21a68edb18850ea5.

Michael

[sent from post-receive hook]

On Thu, 22 Jul 2021 14:12:51 +0200, Lars Pedersen <lapeddk@gmail.com> wrote:
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> Message-Id: <20210712110910.562587-2-lapeddk@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/python3-pysmi.in b/rules/python3-pysmi.in
> new file mode 100644
> index 000000000000..a02d1b62d3e8
> --- /dev/null
> +++ b/rules/python3-pysmi.in
> @@ -0,0 +1,9 @@
> +## SECTION=python3
> +
> +config PYTHON3_PYSMI
> +	tristate
> +	select PYTHON3
> +	select HOST_PYTHON3_SETUPTOOLS
> +	prompt "pysmi"
> +	help
> +	  A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.
> diff --git a/rules/python3-pysmi.make b/rules/python3-pysmi.make
> new file mode 100644
> index 000000000000..67448e2f76c6
> --- /dev/null
> +++ b/rules/python3-pysmi.make
> @@ -0,0 +1,54 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_PYSMI) += python3-pysmi
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_PYSMI_VERSION	:= 0.3.4
> +PYTHON3_PYSMI_MD5	:= 10a9dd140ad512eed9f37344df83ce9d
> +PYTHON3_PYSMI		:= pysmi-$(PYTHON3_PYSMI_VERSION)
> +PYTHON3_PYSMI_SUFFIX	:= tar.gz
> +PYTHON3_PYSMI_URL	:= $(call ptx/mirror-pypi, pysmi, $(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX))
> +PYTHON3_PYSMI_SOURCE	:= $(SRCDIR)/$(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX)
> +PYTHON3_PYSMI_DIR	:= $(BUILDDIR)/$(PYTHON3_PYSMI)
> +PYTHON3_PYSMI_LICENSE	:= BSD-2-Clause
> +PYTHON3_PYSMI_LICENSE_FILES := \
> +	file://LICENSE.rst;md5=a088b5c72b59d51a5368ad3b18e219bf
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_PYSMI_CONF_TOOL	:= python3
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-pysmi.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, python3-pysmi)
> +	@$(call install_fixup, python3-pysmi,PRIORITY,optional)
> +	@$(call install_fixup, python3-pysmi,SECTION,base)
> +	@$(call install_fixup, python3-pysmi,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> +	@$(call install_fixup, python3-pysmi,DESCRIPTION,missing)
> +
> +	@$(call install_glob, python3-pysmi, 0, 0, -, \
> +		$(PYTHON3_SITEPACKAGES),, *.py)
> +
> +	@$(call install_finish, python3-pysmi)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ptxdist] [APPLIED] python3-pysnmp: new package
  2021-07-19  7:47             ` [ptxdist] [PATCH v3] " Lars Pedersen
@ 2021-07-22 12:12               ` Michael Olbrich
  0 siblings, 0 replies; 17+ messages in thread
From: Michael Olbrich @ 2021-07-22 12:12 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Thanks, applied as 00a10dfa5f1029850b4e29550e0ca2b9d13f1e88.

Michael

[sent from post-receive hook]

On Thu, 22 Jul 2021 14:12:53 +0200, Lars Pedersen <lapeddk@gmail.com> wrote:
> Got a runtime error so py files are installed instead of pyc
> 
> Traceback (most recent call last):
>   File "/usr/bin/snmptrap.py", line 237, in <module>
>   snmpEngine = engine.SnmpEngine()
>   File "/usr/lib/python3.7/site-packages/pysnmp/entity/engine.py", line 63, in __init__
>   File "/usr/lib/python3.7/site-packages/pysnmp/proto/rfc3412.py", line 32, in __init__
>   File "/usr/lib/python3.7/site-packages/pysnmp/smi/builder.py", line 401, in loadModules
>   File "/usr/lib/python3.7/site-packages/pysnmp/smi/builder.py", line 341, in loadModule
>   File "/usr/lib/python3.7/site-packages/pysnmp/smi/builder.py", line 143, in read
>   ValueError: bad marshal data (unknown type code)
> 
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> Message-Id: <20210719074703.25316-1-lapeddk@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/python3-pysnmp.in b/rules/python3-pysnmp.in
> new file mode 100644
> index 000000000000..09e9b2b0a5cd
> --- /dev/null
> +++ b/rules/python3-pysnmp.in
> @@ -0,0 +1,13 @@
> +## SECTION=python3
> +
> +config PYTHON3_PYSNMP
> +	bool
> +	prompt "pysnmp"
> +	select PYTHON3
> +	select HOST_PYTHON3_SETUPTOOLS
> +	select PYTHON3_PLY
> +	select PYTHON3_PYASN1
> +	select PYTHON3_PYCRYPTODOMEX
> +	select PYTHON3_PYSMI
> +	help
> +	  pySNMP is a cross-platform, pure-Python SNMP engine implementation.
> diff --git a/rules/python3-pysnmp.make b/rules/python3-pysnmp.make
> new file mode 100644
> index 000000000000..cb08668b33be
> --- /dev/null
> +++ b/rules/python3-pysnmp.make
> @@ -0,0 +1,55 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_PYSNMP) += python3-pysnmp
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_PYSNMP_VERSION	:= 4.4.12
> +PYTHON3_PYSNMP_MD5	:= 2222880259daf6e2cb322e938c818276
> +PYTHON3_PYSNMP		:= pysnmp-$(PYTHON3_PYSNMP_VERSION)
> +PYTHON3_PYSNMP_SUFFIX 	:= tar.gz
> +PYTHON3_PYSNMP_URL	:= $(call ptx/mirror-pypi, pysnmp, $(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX))
> +PYTHON3_PYSNMP_SOURCE	:= $(SRCDIR)/$(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX)
> +PYTHON3_PYSNMP_DIR	:= $(BUILDDIR)/$(PYTHON3_PYSNMP)
> +PYTHON3_PYSNMP_LICENSE	:= BSD-2-Clause
> +PYTHON3_PYSNMP_LICENSE_FILES := \
> +	file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_PYSNMP_CONF_TOOL	:= python3
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-pysnmp.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, python3-pysnmp)
> +	@$(call install_fixup, python3-pysnmp,PRIORITY,optional)
> +	@$(call install_fixup, python3-pysnmp,SECTION,base)
> +	@$(call install_fixup, python3-pysnmp,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> +	@$(call install_fixup, python3-pysnmp,DESCRIPTION,missing)
> +
> +	# Install py files instead of pyc because of runtime marshal error
> +	@$(call install_glob,python3-pysnmp, 0, 0, -, \
> +		/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.pyc)
> +
> +	@$(call install_finish, python3-pysnmp)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [ptxdist] [APPLIED] python3-snmpclitools: new package
  2021-07-12 11:09 ` [ptxdist] [PATCH v2 4/4] python3-snmpclitools: " Lars Pedersen
@ 2021-07-22 12:12   ` Michael Olbrich
  0 siblings, 0 replies; 17+ messages in thread
From: Michael Olbrich @ 2021-07-22 12:12 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Pedersen

Thanks, applied as d05cdd580e1895dedf4889f4720864469f64adc3.

Michael

[sent from post-receive hook]

On Thu, 22 Jul 2021 14:12:56 +0200, Lars Pedersen <lapeddk@gmail.com> wrote:
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> Message-Id: <20210712110910.562587-4-lapeddk@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/python3-snmpclitools.in b/rules/python3-snmpclitools.in
> new file mode 100644
> index 000000000000..369b2bd659e8
> --- /dev/null
> +++ b/rules/python3-snmpclitools.in
> @@ -0,0 +1,9 @@
> +## SECTION=python3
> +
> +config PYTHON3_SNMPCLITOOLS
> +	tristate
> +	select PYTHON3
> +	select PYTHON3_PYSNMP
> +	prompt "snmpclitools"
> +	help
> +	  This is a collection of command-line SNMP tools written in pure-Python
> diff --git a/rules/python3-snmpclitools.make b/rules/python3-snmpclitools.make
> new file mode 100644
> index 000000000000..7c2917187ff4
> --- /dev/null
> +++ b/rules/python3-snmpclitools.make
> @@ -0,0 +1,56 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Lars Pedersen <lapeddk@gmail.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_SNMPCLITOOLS) += python3-snmpclitools
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_SNMPCLITOOLS_VERSION	:= 0.6.4
> +PYTHON3_SNMPCLITOOLS_MD5	:= 132b100f5e7b80715e6c1d424e89687c
> +PYTHON3_SNMPCLITOOLS		:= snmpclitools-$(PYTHON3_SNMPCLITOOLS_VERSION)
> +PYTHON3_SNMPCLITOOLS_SUFFIX	:= tar.gz
> +PYTHON3_SNMPCLITOOLS_URL	:= $(call ptx/mirror-pypi, snmpclitools, $(PYTHON3_SNMPCLITOOLS).$(PYTHON3_SNMPCLITOOLS_SUFFIX))
> +PYTHON3_SNMPCLITOOLS_SOURCE	:= $(SRCDIR)/$(PYTHON3_SNMPCLITOOLS).$(PYTHON3_SNMPCLITOOLS_SUFFIX)
> +PYTHON3_SNMPCLITOOLS_DIR	:= $(BUILDDIR)/$(PYTHON3_SNMPCLITOOLS)
> +PYTHON3_SNMPCLITOOLS_LICENSE	:= BSD-2-Clause
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_SNMPCLITOOLS_CONF_TOOL	:= python3
> +PYTHON3_SNMPCLITOOLS_MAKE_OPT	:= install_scripts
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-snmpclitools.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, python3-snmpclitools)
> +	@$(call install_fixup, python3-snmpclitools,PRIORITY,optional)
> +	@$(call install_fixup, python3-snmpclitools,SECTION,base)
> +	@$(call install_fixup, python3-snmpclitools,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> +	@$(call install_fixup, python3-snmpclitools,DESCRIPTION,missing)
> +
> +	@$(call install_glob, python3-snmpclitools, 0, 0, -, \
> +		$(PYTHON3_SITEPACKAGES),, *.py)
> +
> +	@$(call install_glob,python3-snmpclitools, 0, 0, -, \
> +		/usr/bin/,*.py,)
> +
> +	@$(call install_finish, python3-snmpclitools)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-07-22 12:13 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 11:09 [ptxdist] [PATCH v2 1/4] python3-pyasn1: new package Lars Pedersen
2021-07-12 11:09 ` [ptxdist] [PATCH v2 2/4] python3-pysmi: " Lars Pedersen
2021-07-16 10:23   ` Michael Olbrich
2021-07-16 12:24     ` Lars Pedersen
2021-07-16 12:40       ` Michael Olbrich
2021-07-22 12:12   ` [ptxdist] [APPLIED] " Michael Olbrich
2021-07-12 11:09 ` [ptxdist] [PATCH v2 3/4] python3-pysnmp: " Lars Pedersen
2021-07-16 12:41   ` Michael Olbrich
2021-07-16 12:53     ` Lars Pedersen
2021-07-16 13:02       ` Michael Olbrich
2021-07-18 19:03         ` Lars Pedersen
2021-07-19  6:48           ` Michael Olbrich
2021-07-19  7:47             ` [ptxdist] [PATCH v3] " Lars Pedersen
2021-07-22 12:12               ` [ptxdist] [APPLIED] " Michael Olbrich
2021-07-12 11:09 ` [ptxdist] [PATCH v2 4/4] python3-snmpclitools: " Lars Pedersen
2021-07-22 12:12   ` [ptxdist] [APPLIED] " Michael Olbrich
2021-07-22 12:12 ` [ptxdist] [APPLIED] python3-pyasn1: " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox