Skip to contentSkip to conversation

package/python-iniparse: add host-python-iniparse

PATCH Applied [email protected] 5 participants 8 messages Sep 20, 2022 – Feb 6, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/python-iniparse: add host-python-iniparse

From: Konstantin Menyaev <[email protected]>

Make the host variant of python-iniparse
as host-crudini dependency.

---
 package/Config.in.host                     |  1 +
 package/python-iniparse/Config.in.host     | 11 +++++++++++
 package/python-iniparse/python-iniparse.mk |  1 +
 3 files changed, 13 insertions(+)
 create mode 100644 package/python-iniparse/Config.in.host
package/Config.in.host +1 -0
index f437ef680c..fb805577d1 100644
@@ -72,6 +72,7 @@ menu "Host utilities"
 	source "package/pkgconf/Config.in.host"
 	source "package/pru-software-support/Config.in.host"
 	source "package/pwgen/Config.in.host"
+	source "package/python-iniparse/Config.in.host
 	source "package/python-cython/Config.in.host"
 	source "package/python-greenlet/Config.in.host"
 	source "package/python-kflash/Config.in.host"
package/python-iniparse/Config.in.host new file +11 -0
new file mode 100644
index 0000000000..e93022e815
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_HOST_PYTHON_INIPARSE
+	bool "host python-iniparse"
+	select BR2_PACKAGE_HOST_PYTHON_SIX # runtime
+	help
+	  iniparse is an INI parser for Python which is API compatible
+	  with the standard library's ConfigParser, preserves
+	  structure of INI files (order of sections & options,
+	  indentation, comments, and blank lines are preserved when
+	  data is updated), and is more convenient to use.
+
+	  https://pypi.python.org/pypi/iniparse
package/python-iniparse/python-iniparse.mk +1 -0
index d31a490bd8..e76987d1e9 100644
@@ -12,3 +12,4 @@ PYTHON_INIPARSE_LICENSE_FILES = LICENSE-PSF LICENSE
 PYTHON_INIPARSE_SETUP_TYPE = setuptools
 
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.37.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/crudini: add host-crudini

From: Konstantin Menyaev <[email protected]>

Make the host variant of crudini package. This can be useful in post-{build,image} scripts.

---
 package/Config.in.host         | 1 +
 package/crudini/Config.in.host | 9 +++++++++
 package/crudini/crudini.mk     | 1 +
 3 files changed, 11 insertions(+)
 create mode 100644 package/crudini/Config.in.host
package/Config.in.host +1 -0
index fb805577d1..055e846e39 100644
@@ -12,6 +12,7 @@ menu "Host utilities"
 	source "package/checksec/Config.in.host"
 	source "package/cmake/Config.in.host"
 	source "package/cramfs/Config.in.host"
+	source "package/crudini/Config.in.host"
 	source "package/cryptsetup/Config.in.host"
 	source "package/dbus-python/Config.in.host"
 	source "package/delve/Config.in.host"
package/crudini/Config.in.host new file +9 -0
new file mode 100644
index 0000000000..5e0040883f
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_HOST_CRUDINI
+	bool "host crudini"
+	depends on BR2_PACKAGE_HOST_PYTHON3
+	select BR2_PACKAGE_HOST_PYTHON_INIPARSE # runtime
+	help
+	  A utility for handling ini files from the command line and
+	  shell scripts
+
+	  https://pypi.python.org/pypi/crudini
package/crudini/crudini.mk +1 -0
index 7141e2b2a0..c376c5f777 100644
@@ -11,3 +11,4 @@ CRUDINI_LICENSE = GPL-2.0
 CRUDINI_LICENSE_FILES = COPYING
 
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.37.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by on v1 2/2
#2 lore raw

Re: [Buildroot] [PATCH 2/2] package/crudini: add host-crudini

Hi,

Am Mi., 21. Sept. 2022 um 01:24 Uhr schrieb Konstantin Menyaev via buildroot <[email protected]>:

Quoted 7 lines

From: Konstantin Menyaev <[email protected]>

Make the host variant of crudini package. This can be useful in post-{build,image} scripts.

Quoted 46 lines
---
 package/Config.in.host         | 1 +
 package/crudini/Config.in.host | 9 +++++++++
 package/crudini/crudini.mk     | 1 +
 3 files changed, 11 insertions(+)
 create mode 100644 package/crudini/Config.in.host
package/Config.in.host +1 -0
index fb805577d1..055e846e39 100644
@@ -12,6 +12,7 @@ menu "Host utilities"
        source "package/checksec/Config.in.host"
        source "package/cmake/Config.in.host"
        source "package/cramfs/Config.in.host"
+       source "package/crudini/Config.in.host"
        source "package/cryptsetup/Config.in.host"
        source "package/dbus-python/Config.in.host"
        source "package/delve/Config.in.host"
package/crudini/Config.in.host new file +9 -0
new file mode 100644
index 0000000000..5e0040883f
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_HOST_CRUDINI
+       bool "host crudini"
+       depends on BR2_PACKAGE_HOST_PYTHON3
+       select BR2_PACKAGE_HOST_PYTHON_INIPARSE # runtime
+       help
+         A utility for handling ini files from the command line and
+         shell scripts
+
+         https://pypi.python.org/pypi/crudini
package/crudini/crudini.mk +1 -1
index 7141e2b2a0..c376c5f777 100644
@@ -11,3 +11,4 @@ CRUDINI_LICENSE = GPL-2.0
 CRUDINI_LICENSE_FILES = COPYING
 
 $(eval $(python-package))
+$(eval $(host-python-package))
--

2.37.3

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Re: [Buildroot] [PATCH 2/2] package/crudini: add host-crudini

In reply to Konstantin Menyaev via buildroot

Konstantin, All,

On 2022-09-21 02:21 +0300, Konstantin Menyaev via buildroot spake thusly:

Quoted 7 lines

From: Konstantin Menyaev <[email protected]>

Make the host variant of crudini package. This can be useful in post-{build,image} scripts.

---

[--SNIP--]

package/crudini/Config.in.host line 3

Quoted 9 lines
package/crudini/Config.in.host new file +3 -0
new file mode 100644
index 0000000000..5e0040883f
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_HOST_CRUDINI
+	bool "host crudini"
+	depends on BR2_PACKAGE_HOST_PYTHON3

I've changed that to a select, like allthe other host packages that need host python3, and applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 22 lines
package/crudini/Config.in.host new file +6 -0
+	select BR2_PACKAGE_HOST_PYTHON_INIPARSE # runtime
+	help
+	  A utility for handling ini files from the command line and
+	  shell scripts
+
+	  https://pypi.python.org/pypi/crudini
package/crudini/crudini.mk +1 -0
index 7141e2b2a0..c376c5f777 100644
@@ -11,3 +11,4 @@ CRUDINI_LICENSE = GPL-2.0
 CRUDINI_LICENSE_FILES = COPYING
 
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.37.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by on v1 1/2
#4 lore raw
In reply to [email protected]

Hi,

Am Mi., 21. Sept. 2022 um 01:24 Uhr schrieb <[email protected]>:

Quoted 7 lines

From: Konstantin Menyaev <[email protected]>

Make the host variant of python-iniparse
as host-crudini dependency.

Quoted 48 lines
---
 package/Config.in.host                     |  1 +
 package/python-iniparse/Config.in.host     | 11 +++++++++++
 package/python-iniparse/python-iniparse.mk |  1 +
 3 files changed, 13 insertions(+)
 create mode 100644 package/python-iniparse/Config.in.host
package/Config.in.host +1 -0
index f437ef680c..fb805577d1 100644
@@ -72,6 +72,7 @@ menu "Host utilities"
        source "package/pkgconf/Config.in.host"
        source "package/pru-software-support/Config.in.host"
        source "package/pwgen/Config.in.host"
+       source "package/python-iniparse/Config.in.host
        source "package/python-cython/Config.in.host"
        source "package/python-greenlet/Config.in.host"
        source "package/python-kflash/Config.in.host"
package/python-iniparse/Config.in.host new file +11 -0
new file mode 100644
index 0000000000..e93022e815
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_HOST_PYTHON_INIPARSE
+       bool "host python-iniparse"
+       select BR2_PACKAGE_HOST_PYTHON_SIX # runtime
+       help
+         iniparse is an INI parser for Python which is API compatible
+         with the standard library's ConfigParser, preserves
+         structure of INI files (order of sections & options,
+         indentation, comments, and blank lines are preserved when
+         data is updated), and is more convenient to use.
+
+         https://pypi.python.org/pypi/iniparse
package/python-iniparse/python-iniparse.mk +1 -1
index d31a490bd8..e76987d1e9 100644
@@ -12,3 +12,4 @@ PYTHON_INIPARSE_LICENSE_FILES = LICENSE-PSF LICENSE
 PYTHON_INIPARSE_SETUP_TYPE = setuptools
 
 $(eval $(python-package))
+$(eval $(host-python-package))
--

2.37.3

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw
Quoted 21 lines · Heiko Thiery

Hi,

Am Mi., 21. Sept. 2022 um 01:24 Uhr schrieb <[email protected]>:

Quoted 7 lines

From: Konstantin Menyaev <[email protected]>

Make the host variant of python-iniparse
as host-crudini dependency.

Quoted 7 lines
---
 package/Config.in.host                     |  1 +
 package/python-iniparse/Config.in.host     | 11 +++++++++++
 package/python-iniparse/python-iniparse.mk |  1 +
 3 files changed, 13 insertions(+)
 create mode 100644 package/python-iniparse/Config.in.host
Quoted 9 lines

package/Config.in.host menu "Host utilities" · line 75

Quoted 9 lines
package/Config.in.host +1 -0
index f437ef680c..fb805577d1 100644
@@ -72,6 +72,7 @@ menu "Host utilities"
        source "package/pkgconf/Config.in.host"
        source "package/pru-software-support/Config.in.host"
        source "package/pwgen/Config.in.host"
+       source "package/python-iniparse/Config.in.host

Missing a trailing quote:
package/Config.in.host:81:warning: multi-line strings not supported

Quoted 32 lines
Quoted 32 lines
package/Config.in.host +0 -0
        source "package/python-cython/Config.in.host"
        source "package/python-greenlet/Config.in.host"
        source "package/python-kflash/Config.in.host"
package/python-iniparse/Config.in.host new file +11 -0
new file mode 100644
index 0000000000..e93022e815
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_HOST_PYTHON_INIPARSE
+       bool "host python-iniparse"
+       select BR2_PACKAGE_HOST_PYTHON_SIX # runtime
+       help
+         iniparse is an INI parser for Python which is API compatible
+         with the standard library's ConfigParser, preserves
+         structure of INI files (order of sections & options,
+         indentation, comments, and blank lines are preserved when
+         data is updated), and is more convenient to use.
+
+         https://pypi.python.org/pypi/iniparse
package/python-iniparse/python-iniparse.mk +1 -1
index d31a490bd8..e76987d1e9 100644
@@ -12,3 +12,4 @@ PYTHON_INIPARSE_LICENSE_FILES = LICENSE-PSF LICENSE
 PYTHON_INIPARSE_SETUP_TYPE = setuptools
 
 $(eval $(python-package))
+$(eval $(host-python-package))
--

2.37.3

Quoted 8 lines
Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#6 lore raw

James, All,

On 2023-02-06 04:32 -0700, James Hilliard spake thusly:

Quoted 2 lines · Heiko Thiery
Quoted 1 line

Am Mi., 21. Sept. 2022 um 01:24 Uhr schrieb <[email protected]>:

[--SNIP--]

Quoted 11 lines
Quoted 9 lines

package/Config.in.host menu "Host utilities" · line 75

Quoted 9 lines
package/Config.in.host +1 -0
index f437ef680c..fb805577d1 100644
@@ -72,6 +72,7 @@ menu "Host utilities"
        source "package/pkgconf/Config.in.host"
        source "package/pru-software-support/Config.in.host"
        source "package/pwgen/Config.in.host"
+       source "package/python-iniparse/Config.in.host

Missing a trailing quote:
package/Config.in.host:81:warning: multi-line strings not supported

Fixed, thanks!

Regards,
Yann E. MORIN.

Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw
In reply to [email protected]

Konstantin, All,

On 2022-09-21 02:21 +0300, [email protected] spake thusly:

Quoted 4 lines

From: Konstantin Menyaev <[email protected]>

Make the host variant of python-iniparse
as host-crudini dependency.

I added a note why we need a Config.in.host entry (usually, for libs, we do not add one, but here we must slect pythn-six, which has one).

Quoted 2 lines

---

[--SNIP--]

package/Config.in.host menu "Host utilities" · line 75

Quoted 9 lines
package/Config.in.host +1 -0
index f437ef680c..fb805577d1 100644
@@ -72,6 +72,7 @@ menu "Host utilities"
 	source "package/pkgconf/Config.in.host"
 	source "package/pru-software-support/Config.in.host"
 	source "package/pwgen/Config.in.host"
+	source "package/python-iniparse/Config.in.host

I reordered this in alphabetical order.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 36 lines
package/Config.in.host +0 -0
 	source "package/python-cython/Config.in.host"
 	source "package/python-greenlet/Config.in.host"
 	source "package/python-kflash/Config.in.host"
package/python-iniparse/Config.in.host new file +11 -0
new file mode 100644
index 0000000000..e93022e815
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_HOST_PYTHON_INIPARSE
+	bool "host python-iniparse"
+	select BR2_PACKAGE_HOST_PYTHON_SIX # runtime
+	help
+	  iniparse is an INI parser for Python which is API compatible
+	  with the standard library's ConfigParser, preserves
+	  structure of INI files (order of sections & options,
+	  indentation, comments, and blank lines are preserved when
+	  data is updated), and is more convenient to use.
+
+	  https://pypi.python.org/pypi/iniparse
package/python-iniparse/python-iniparse.mk +1 -0
index d31a490bd8..e76987d1e9 100644
@@ -12,3 +12,4 @@ PYTHON_INIPARSE_LICENSE_FILES = LICENSE-PSF LICENSE
 PYTHON_INIPARSE_SETUP_TYPE = setuptools
 
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.37.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot