Re: [OE-core][PATCH] systemd: systemd-systemctl: Support instance conf files during enable

2022-06-17 Thread Nick Potenski via lists.openembedded.org
Please backport this to dunfell and kirkstone.

Best regards,
Nick

-Original Message-
From: openembedded-core@lists.openembedded.org 
 On Behalf Of Nick Potenski via 
lists.openembedded.org
Sent: Wednesday, June 15, 2022 2:32 PM
To: openembedded-core@lists.openembedded.org
Cc: Potenski, Nick 
Subject: [OE-core][PATCH] systemd: systemd-systemctl: Support instance conf 
files during enable

CAUTION - EXTERNAL EMAIL: Do not click any links or open any attachments unless 
you trust the sender and know the content is safe.


Add ability to parse instance-specific conf files when enabling an instance of 
a templated unit during postinstall.

Signed-off-by: Nick Potenski 
---
 .../systemd/systemd-systemctl/systemctl| 14 +++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-core/systemd/systemd-systemctl/systemctl 
b/meta/recipes-core/systemd/systemd-systemctl/systemctl
index 990de1ab39..6aa2e20465 100755
--- a/meta/recipes-core/systemd/systemd-systemctl/systemctl
+++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl
@@ -11,6 +11,7 @@ import re
 import sys

 from collections import namedtuple
+from itertools import chain
 from pathlib import Path

 version = 1.0
@@ -25,12 +26,16 @@ locations = list()

 class SystemdFile():
 """Class representing a single systemd configuration file"""
-def __init__(self, root, path):
+def __init__(self, root, path, instance_unit_name):
 self.sections = dict()
 self._parse(root, path)
 dirname = os.path.basename(path.name) + ".d"
 for location in locations:
-for path2 in sorted((root / location / "system" / 
dirname).glob("*.conf")):
+files = (root / location / "system" / dirname).glob("*.conf")
+if instance_unit_name:
+inst_dirname = instance_unit_name + ".d"
+files = chain(files, (root / location / "system" / 
inst_dirname).glob("*.conf"))
+for path2 in sorted(files):
 self._parse(root, path2)

 def _parse(self, root, path):
@@ -193,8 +198,11 @@ class SystemdUnit():
 # if we're enabling an instance, first extract the actual instance
 # then figure out what the template unit is
 template = re.match(r"[^@]+@(?P[^\.]*)\.", self.unit)
+instance_unit_name = None
 if template:
 instance = template.group('instance')
+if instance != "":
+instance_unit_name = self.unit
 unit = re.sub(r"@[^\.]*\.", "@.", self.unit, 1)
 else:
 instance = None
@@ -206,7 +214,7 @@ class SystemdUnit():
 # ignore aliases
 return

-config = SystemdFile(self.root, path)
+config = SystemdFile(self.root, path, instance_unit_name)
 if instance == "":
 try:
 default_instance = config.get('Install', 'DefaultInstance')[0]
--
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167029): 
https://lists.openembedded.org/g/openembedded-core/message/167029
Mute This Topic: https://lists.openembedded.org/mt/91784081/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH v5 3/7] insane.bbclass: Make do_qa_staging check shebangs

2022-06-17 Thread Richard Purdie
On Tue, 2022-06-14 at 17:11 +0200, Paulo Neves wrote:
> As reported in the bug report [1], there was no check for shebang
> sizes on native scripts and now this is fixed.
> 
> The path scope of the qa_staging was increased from just checking
> libdir to all the relevant SYSROOT_DIRS.
> 
> It is possible to skip this check through INSANE_SKIP.
> 
> [1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=11053
> 
> Signed-off-by: Paulo Neves 
> ---
>  meta/classes/insane.bbclass | 16 +++-
>  1 file changed, 15 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
> index 9ca84bace9..b2951a48fe 100644
> --- a/meta/classes/insane.bbclass
> +++ b/meta/classes/insane.bbclass
> @@ -630,6 +630,11 @@ def qa_check_staged(path,d):
>  bb.note("Recipe %s skipping qa checking: pkgconfig" % d.getVar('PN'))
>  skip_pkgconfig = True
>  
> +skip_shebang_size = False
> +if 'shebang-size' in skip:
> +bb.note("Recipe %s skipping qa checkking: shebang-size" % 
> d.getVar('PN'))
> +skip_shebang_size = True
> +
>  # find all .la and .pc files
>  # read the content
>  # and check for stuff that looks wrong
> @@ -651,6 +656,13 @@ def qa_check_staged(path,d):
>  error_msg = "%s failed sanity test (tmpdir) in path 
> %s" % (file,root)
>  oe.qa.handle_error("pkgconfig", error_msg, d)
>  
> +if not skip_shebang_size:
> +errors = {}
> +package_qa_check_shebang_size(path, "", d, None, errors)
> +for e in errors:
> +oe.qa.handle_error(e, errors[e], d)
> +
> +
>  # Run all package-wide warnfuncs and errorfuncs
>  def package_qa_package(warnfuncs, errorfuncs, package, d):
>  warnings = {}
> @@ -1139,7 +1151,9 @@ addtask do_package_qa_setscene
>  
>  python do_qa_staging() {
>  bb.note("QA checking staging")
> -qa_check_staged(d.expand('${SYSROOT_DESTDIR}${libdir}'), d)
> +sysroot_destdir = d.expand('${SYSROOT_DESTDIR}')
> +for sysroot_dir in d.expand('${SYSROOT_DIRS}').split():
> +qa_check_staged(sysroot_destdir + sysroot_dir, d)
>  oe.qa.exit_with_message_if_errors("QA staging was broken by the package 
> built above", d)
>  }


I'm a little worried about the performance implications of this, we're
going from scanning files in libdir to scanning nearly all files in the
sysroots, reading from many of them. In isolation that doesn't seem
much but I suspect the IO will impact builds overall.

That leaves me a little torn on this change :/

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167028): 
https://lists.openembedded.org/g/openembedded-core/message/167028
Mute This Topic: https://lists.openembedded.org/mt/91751267/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] python3-hypothesis: upgrade 6.46.11 -> 6.47.2

2022-06-17 Thread Tim Orling
On Fri, Jun 17, 2022 at 1:26 AM Jose Quaresma 
wrote:

>
>
> wangmy  escreveu no dia sexta, 17/06/2022 à(s) 07:25:
>
>> Add dependence exceptiongroup.
>>
>> Signed-off-by: Wang Mingyu 
>> ---
>>  ...hon3-hypothesis_6.46.11.bb => python3-hypothesis_6.47.2.bb} | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>  rename meta/recipes-devtools/python/{python3-hypothesis_6.46.11.bb =>
>> python3-hypothesis_6.47.2.bb} (88%)
>>
>> diff --git a/meta/recipes-devtools/python/python3-hypothesis_6.46.11.bb
>> b/meta/recipes-devtools/python/python3-hypothesis_6.47.2.bb
>> similarity index 88%
>> rename from meta/recipes-devtools/python/python3-hypothesis_6.46.11.bb
>> rename to meta/recipes-devtools/python/python3-hypothesis_6.47.2.bb
>> index 1d9772d4ff..f56bf3d19e 100644
>> --- a/meta/recipes-devtools/python/python3-hypothesis_6.46.11.bb
>> +++ b/meta/recipes-devtools/python/python3-hypothesis_6.47.2.bb
>> @@ -13,7 +13,7 @@ SRC_URI += " \
>>  file://test_rle.py \
>>  "
>>
>> -SRC_URI[sha256sum] =
>> "f5c1cf61b24b094355577a6b8fbbb8eb54c1b0216fbc0519af97c46bddf43c42"
>> +SRC_URI[sha256sum] =
>> "9c01a225eada7d74d38430e3e91e659e3a892fbc2b15f7b051779ded6ab73ee7"
>>
>>  RDEPENDS:${PN} += " \
>>  python3-attrs \
>> @@ -23,6 +23,7 @@ RDEPENDS:${PN} += " \
>>  python3-sortedcontainers \
>>  python3-statistics \
>>  python3-unittest \
>> +${PYTHON_PN}-exceptiongroup \
>>
>
> IMO It's better to have it as python3-exceptiongroup for consistency with
> the other python in RDEPENDS
>

Agreed. That syntax is only needed if we have to support two python
versions (if python 4 becomes a thing).

>
> Jose
>
>
>>  "
>>
>>  RDEPENDS:${PN}-ptest += " \
>> --
>> 2.25.1
>>
>>
>>
>>
>>
>
> --
> Best regards,
>
> José Quaresma
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167027): 
https://lists.openembedded.org/g/openembedded-core/message/167027
Mute This Topic: https://lists.openembedded.org/mt/91816508/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] python3-exceptiongroup : add recipe

2022-06-17 Thread Tim Orling
Why should this be added to oe-core? You have an empty git log with no
justification. We also do not typically take pre-release components to
oe-core (the version is a release candidate).

You also need to add a maintainer entry.

On Thu, Jun 16, 2022 at 11:25 PM wangmy  wrote:

> Signed-off-by: Wang Mingyu 
> ---
>  .../python/python3-exceptiongroup_1.0.0rc8.bb | 11 +++
>  1 file changed, 11 insertions(+)
>  create mode 100644 meta/recipes-devtools/python/
> python3-exceptiongroup_1.0.0rc8.bb
>
> diff --git a/meta/recipes-devtools/python/
> python3-exceptiongroup_1.0.0rc8.bb b/meta/recipes-devtools/python/
> python3-exceptiongroup_1.0.0rc8.bb
> new file mode 100644
> index 00..adf530a6e5
> --- /dev/null
> +++ b/meta/recipes-devtools/python/python3-exceptiongroup_1.0.0rc8.bb
> @@ -0,0 +1,11 @@
> +DESCRIPTION = "This is a backport of the BaseExceptionGroup and
> ExceptionGroup classes from Python 3.11."
> +HOMEPAGE = "https://pypi.org/project/exceptiongroup";
> +SECTION = "devel/python"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=d5caa317463c433575efff1d2fe206d7"
> +
> +SRC_URI[sha256sum] =
> "6990c24f06b8d33c8065cfe43e5e8a4bfa384e0358be036af9cc60b6321bd11a"
> +
> +#RDEPENDS:${PN} += "python3-profile python3-logging"
> +
> +inherit pypi python_setuptools_build_meta
> --
> 2.25.1
>
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167026): 
https://lists.openembedded.org/g/openembedded-core/message/167026
Mute This Topic: https://lists.openembedded.org/mt/91816507/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] python3-exceptiongroup : add recipe

2022-06-17 Thread Ross Burton

> +#RDEPENDS:${PN} += "python3-profile python3-logging”

Remove the line entirely or remove the comment, but don’t have commented-out 
lines in recipes.

Ross

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167025): 
https://lists.openembedded.org/g/openembedded-core/message/167025
Mute This Topic: https://lists.openembedded.org/mt/91816507/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] systemd: add packageconfig for sysext

2022-06-17 Thread Peter Bergin
Currently the sysext binary is packaged in systemd-utils and
the service systemd-sysext.service in systemd package. Add a
PACKAGECONFIG for sysext to actively choose if it is going to
be installed or not, default off. If installed it will be added
to systemd package.

Signed-off-by: Peter Bergin 
---
 meta/recipes-core/systemd/systemd_251.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd_251.2.bb 
b/meta/recipes-core/systemd/systemd_251.2.bb
index 8370bec0ca..5a21e7b513 100644
--- a/meta/recipes-core/systemd/systemd_251.2.bb
+++ b/meta/recipes-core/systemd/systemd_251.2.bb
@@ -186,6 +186,7 @@ PACKAGECONFIG[rfkill] = "-Drfkill=true,-Drfkill=false"
 PACKAGECONFIG[seccomp] = "-Dseccomp=true,-Dseccomp=false,libseccomp"
 PACKAGECONFIG[selinux] = 
"-Dselinux=true,-Dselinux=false,libselinux,initscripts-sushell"
 PACKAGECONFIG[smack] = "-Dsmack=true,-Dsmack=false"
+PACKAGECONFIG[sysext] = "-Dsysext=true, -Dsysext=false"
 PACKAGECONFIG[sysusers] = "-Dsysusers=true,-Dsysusers=false"
 PACKAGECONFIG[sysvinit] = "-Dsysvinit-path=${sysconfdir}/init.d 
-Dsysvrcnd-path=${sysconfdir},-Dsysvinit-path= 
-Dsysvrcnd-path=,,systemd-compat-units update-rc.d"
 # When enabled use reproducble build timestamp if set as time epoch,
@@ -522,7 +523,6 @@ FILES:${PN}-extra-utils = "\
 ${bindir}/systemd-cgls \
 ${bindir}/systemd-cgtop \
 ${bindir}/systemd-stdio-bridge \
-${bindir}/systemd-sysext \
 ${base_bindir}/systemd-ask-password \
 ${base_bindir}/systemd-tty-ask-password-agent \
 
${systemd_system_unitdir}/systemd-ask-password-console.path \
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167024): 
https://lists.openembedded.org/g/openembedded-core/message/167024
Mute This Topic: https://lists.openembedded.org/mt/91820337/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] python3: fix a race condition in the test_socket.testSockName test

2022-06-17 Thread Ross Burton
This test uses find_unused_port() which is inherently racey, so retry
it a few times before failing.

[ YOCTO #14840 ]

Signed-off-by: Ross Burton 
---
 ...e-the-race-condition-in-testSockName.patch | 47 +++
 .../recipes-devtools/python/python3_3.10.4.bb |  1 +
 2 files changed, 48 insertions(+)
 create mode 100644 
meta/recipes-devtools/python/python3/0001-Mitigate-the-race-condition-in-testSockName.patch

diff --git 
a/meta/recipes-devtools/python/python3/0001-Mitigate-the-race-condition-in-testSockName.patch
 
b/meta/recipes-devtools/python/python3/0001-Mitigate-the-race-condition-in-testSockName.patch
new file mode 100644
index 000..e19df08f870
--- /dev/null
+++ 
b/meta/recipes-devtools/python/python3/0001-Mitigate-the-race-condition-in-testSockName.patch
@@ -0,0 +1,47 @@
+Upstream-Status: Pending
+Signed-off-by: Ross Burton 
+
+From 8103b90148e8768456c3ab707de105d63d9d5b20 Mon Sep 17 00:00:00 2001
+From: Ross Burton 
+Date: Fri, 17 Jun 2022 11:53:59 +0100
+Subject: [PATCH] Mitigate the race condition in testSockName
+
+find_unused_port() has an inherent race condition, but we can't use
+bind_port() as that uses .getsockname() which this test is exercising.
+
+Try binding to unused ports a few times before failing.
+---
+ Lib/test/test_socket.py | 15 +--
+ 1 file changed, 13 insertions(+), 2 deletions(-)
+
+diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
+index c981903824..b1630d18b6 100644
+--- a/Lib/test/test_socket.py
 b/Lib/test/test_socket.py
+@@ -1390,10 +1390,21 @@ def testStringToIPv6(self):
+ 
+ def testSockName(self):
+ # Testing getsockname()
+-port = socket_helper.find_unused_port()
+ sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ self.addCleanup(sock.close)
+-sock.bind(("0.0.0.0", port))
++
++# Since find_unused_port() is inherently subject to race conditions, 
we
++# call it a couple times if necessary.
++for i in itertools.count():
++port = socket_helper.find_unused_port()
++try:
++sock.bind(("0.0.0.0", port))
++except OSError as e:
++if e.errno != errno.EADDRINUSE or i == 5:
++raise
++else:
++break
++
+ name = sock.getsockname()
+ # XXX(nnorwitz): http://tinyurl.com/os5jz seems to indicate
+ # it reasonable to get the host's addr in addition to 0.0.0.0.
+-- 
+2.25.1
+
diff --git a/meta/recipes-devtools/python/python3_3.10.4.bb 
b/meta/recipes-devtools/python/python3_3.10.4.bb
index 6bd3a6aba84..db0c2bf9ee8 100644
--- a/meta/recipes-devtools/python/python3_3.10.4.bb
+++ b/meta/recipes-devtools/python/python3_3.10.4.bb
@@ -34,6 +34,7 @@ SRC_URI = 
"http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \

file://0001-Lib-pty.py-handle-stdin-I-O-errors-same-way-as-maste.patch \

file://0001-setup.py-Do-not-detect-multiarch-paths-when-cross-co.patch \
file://deterministic_imports.patch \
+   file://0001-Mitigate-the-race-condition-in-testSockName.patch \
"
 
 SRC_URI:append:class-native = " \
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167023): 
https://lists.openembedded.org/g/openembedded-core/message/167023
Mute This Topic: https://lists.openembedded.org/mt/91820207/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] python3-exceptiongroup : add recipe

2022-06-17 Thread Alexandre Belloni via lists.openembedded.org
On 17/06/2022 14:17:06+0200, Alexandre Belloni via lists.openembedded.org wrote:
> Hello,
> 
> This causes the following error:
> 
> https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/3713/steps/15/logs/stdio
> 
> 2022-06-17 08:06:44,127 - oe-selftest - INFO - 
> distrodata.Distrodata.test_maintainers (subunit.RemotedTestCase)
> 2022-06-17 08:06:44,128 - oe-selftest - INFO -  ... FAIL
> 2022-06-17 08:06:44,128 - oe-selftest - INFO - 5: 5/11 58/492 (131.79s) 
> (distrodata.Distrodata.test_maintainers)
> 2022-06-17 08:06:44,128 - oe-selftest - INFO - 
> testtools.testresult.real._StringException: Traceback (most recent call last):
>   File 
> "/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/lib/oeqa/selftest/cases/distrodata.py",
>  line 141, in test_maintainers
> """ + "\n".join(['%s (%s)' % i for i in no_maintainer_list]))
>   File "/usr/lib64/python3.6/unittest/case.py", line 687, in fail
> raise self.failureException(msg)
> AssertionError: 
> The following recipes do not have a maintainer assigned to them. Please add 
> an entry to meta/conf/distro/include/maintainers.inc file.
> python3-exceptiongroup 
> (/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/recipes-devtools/python/python3-exceptiongroup_1.0.0rc8.bb)
> 

And also:

https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/4708/steps/12/logs/stdio

WARNING: Nothing RPROVIDES 'nativesdk-python3-exceptiongroup' (but 
virtual:nativesdk:/home/pokybuild/yocto-worker/qemuarm64-armhost/build/meta/recipes-devtools/python/python3-hypothesis_6.47.2.bb
 RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'nativesdk-python3-exceptiongroup' is unbuildable, 
removing...

> 
> On 17/06/2022 14:25:08+0800, wangmy wrote:
> > Signed-off-by: Wang Mingyu 
> > ---
> >  .../python/python3-exceptiongroup_1.0.0rc8.bb | 11 +++
> >  1 file changed, 11 insertions(+)
> >  create mode 100644 
> > meta/recipes-devtools/python/python3-exceptiongroup_1.0.0rc8.bb
> > 
> > diff --git 
> > a/meta/recipes-devtools/python/python3-exceptiongroup_1.0.0rc8.bb 
> > b/meta/recipes-devtools/python/python3-exceptiongroup_1.0.0rc8.bb
> > new file mode 100644
> > index 00..adf530a6e5
> > --- /dev/null
> > +++ b/meta/recipes-devtools/python/python3-exceptiongroup_1.0.0rc8.bb
> > @@ -0,0 +1,11 @@
> > +DESCRIPTION = "This is a backport of the BaseExceptionGroup and 
> > ExceptionGroup classes from Python 3.11."
> > +HOMEPAGE = "https://pypi.org/project/exceptiongroup";
> > +SECTION = "devel/python"
> > +LICENSE = "MIT"
> > +LIC_FILES_CHKSUM = "file://LICENSE;md5=d5caa317463c433575efff1d2fe206d7"
> > +
> > +SRC_URI[sha256sum] = 
> > "6990c24f06b8d33c8065cfe43e5e8a4bfa384e0358be036af9cc60b6321bd11a"
> > +
> > +#RDEPENDS:${PN} += "python3-profile python3-logging"
> > +
> > +inherit pypi python_setuptools_build_meta
> > -- 
> > 2.25.1
> > 
> 
> > 
> > 
> > 
> 
> 
> -- 
> Alexandre Belloni, co-owner and COO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

> 
> 
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167022): 
https://lists.openembedded.org/g/openembedded-core/message/167022
Mute This Topic: https://lists.openembedded.org/mt/91816507/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] python3-exceptiongroup : add recipe

2022-06-17 Thread Alexandre Belloni via lists.openembedded.org
Hello,

This causes the following error:

https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/3713/steps/15/logs/stdio

2022-06-17 08:06:44,127 - oe-selftest - INFO - 
distrodata.Distrodata.test_maintainers (subunit.RemotedTestCase)
2022-06-17 08:06:44,128 - oe-selftest - INFO -  ... FAIL
2022-06-17 08:06:44,128 - oe-selftest - INFO - 5: 5/11 58/492 (131.79s) 
(distrodata.Distrodata.test_maintainers)
2022-06-17 08:06:44,128 - oe-selftest - INFO - 
testtools.testresult.real._StringException: Traceback (most recent call last):
  File 
"/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/lib/oeqa/selftest/cases/distrodata.py",
 line 141, in test_maintainers
""" + "\n".join(['%s (%s)' % i for i in no_maintainer_list]))
  File "/usr/lib64/python3.6/unittest/case.py", line 687, in fail
raise self.failureException(msg)
AssertionError: 
The following recipes do not have a maintainer assigned to them. Please add an 
entry to meta/conf/distro/include/maintainers.inc file.
python3-exceptiongroup 
(/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/recipes-devtools/python/python3-exceptiongroup_1.0.0rc8.bb)


On 17/06/2022 14:25:08+0800, wangmy wrote:
> Signed-off-by: Wang Mingyu 
> ---
>  .../python/python3-exceptiongroup_1.0.0rc8.bb | 11 +++
>  1 file changed, 11 insertions(+)
>  create mode 100644 
> meta/recipes-devtools/python/python3-exceptiongroup_1.0.0rc8.bb
> 
> diff --git a/meta/recipes-devtools/python/python3-exceptiongroup_1.0.0rc8.bb 
> b/meta/recipes-devtools/python/python3-exceptiongroup_1.0.0rc8.bb
> new file mode 100644
> index 00..adf530a6e5
> --- /dev/null
> +++ b/meta/recipes-devtools/python/python3-exceptiongroup_1.0.0rc8.bb
> @@ -0,0 +1,11 @@
> +DESCRIPTION = "This is a backport of the BaseExceptionGroup and 
> ExceptionGroup classes from Python 3.11."
> +HOMEPAGE = "https://pypi.org/project/exceptiongroup";
> +SECTION = "devel/python"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=d5caa317463c433575efff1d2fe206d7"
> +
> +SRC_URI[sha256sum] = 
> "6990c24f06b8d33c8065cfe43e5e8a4bfa384e0358be036af9cc60b6321bd11a"
> +
> +#RDEPENDS:${PN} += "python3-profile python3-logging"
> +
> +inherit pypi python_setuptools_build_meta
> -- 
> 2.25.1
> 

> 
> 
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167021): 
https://lists.openembedded.org/g/openembedded-core/message/167021
Mute This Topic: https://lists.openembedded.org/mt/91816507/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" doesn't work.

2022-06-17 Thread Peter Kjellerstedt
> -Original Message-
> From: openembedded-core@lists.openembedded.org  c...@lists.openembedded.org> On Behalf Of leimaohui
> Sent: den 17 juni 2022 08:07
> To: Alex Kiernan ; Alexander Kanavin
> 
> Cc: openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
> doesn't work.
> 
> Hi,
> 
> > I suspect it's that you can't set it in local.conf now:
> 
> You are right, setting NIT_MANAGER = "systemd" in local.conf doesn't work.
> Sysvinit is still built.
> So, there is no way to disable sysvinit except setting
> DISTRO_FEATURES:remove="sysvinit" in local.conf, right?

The problem is that local.conf is read before ${DISTRO}.conf, and since 
poky.conf uses INIT_MANAGER = "sysvinit", you will currently need to use 
an override to force INIT_MANAGER to the value you want if you want to
set it in local.conf, e.g., INIT_MANAGER:forcevariable = "systemd". Since 
this is typically not expected, I think it would be more appropriate to 
change poky.conf to instead use INIT_MANAGER ?= "sysvinit".

//Peter

> 
> 
> Best regards
> 
> 
> > -Original Message-
> > From: Alex Kiernan 
> > Sent: Saturday, May 28, 2022 5:57 PM
> > To: Alexander Kanavin 
> > Cc: Lei, Maohui ;
> > openembedded-core@lists.openembedded.org
> > Subject: Re: [OE-core] DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
> > doesn't work.
> >
> > I suspect it's that you can't set it in local.conf now:
> >
> > # $INIT_MANAGER [3 operations]
> > #   set /home/alexk/poky/build/conf/local.conf:291
> > # "systemd"
> > #   set /home/alexk/poky/meta-poky/conf/distro/poky.conf:70
> > # "sysvinit"
> > #   set /home/alexk/poky/meta/conf/distro/defaultsetup.conf:20
> > # [_defaultval] "none"
> > # pre-expansion value:
> > #   "sysvinit"
> > INIT_MANAGER="sysvinit"
> >
> > On Fri, May 27, 2022 at 8:11 PM Alexander Kanavin
> 
> > wrote:
> > >
> > > Can you explain the use case please? If you just want to use systemd,
> > > set INIT_MANAGER = "systemd".
> > >
> > > Alex
> > >
> > > On Fri, 27 May 2022 at 02:39, leimaohui  wrote:
> > > >
> > > > Hi, all
> > > >
> > > > Because the following patch, "DISTRO_FEATURES_BACKFILL_CONSIDERED =
> > "sysvinit"" doesn't work anymore. I have to " DISTRO_FEATURES:remove =
> > "sysvinit" " instead to disable sysvinit.
> > > > But I'm not very clear if there is difference between
> > "DISTRO_FEATURES_BACKFILL_CONSIDERED" and " DISTRO_FEATURES:remove
> > " for my image. Can anybody tell me?
> > > > --
> > > > commit a6ebbe3a10ff76386dde03ddaa7097bdb2f5d9a5
> > > > Author: Richard Purdie 
> > > > Date:   Wed Apr 13 18:41:39 2022 +0100
> > > >
> > > > poky: Use INIT_MANAGER in main distro config
> > > >
> > > > Just to keep things standard and clear, use the new INIT_MANAGER
> > variable
> > > > in the main distro config. This matches the default config with
> the
> > addition
> > > > of some DISTRO_FEATURES tweaks.
> > > > ..
> > > > BB_HASHSERVE ??= "auto"
> > > > +
> > > > +INIT_MANAGER = "sysvinit"
> > > > --
> > > >
> > > > Best regards
> > > > Lei
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> > --
> > Alex Kiernan

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167020): 
https://lists.openembedded.org/g/openembedded-core/message/167020
Mute This Topic: https://lists.openembedded.org/mt/91367188/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] python3-hypothesis: upgrade 6.46.11 -> 6.47.2

2022-06-17 Thread Jose Quaresma
wangmy  escreveu no dia sexta, 17/06/2022 à(s) 07:25:

> Add dependence exceptiongroup.
>
> Signed-off-by: Wang Mingyu 
> ---
>  ...hon3-hypothesis_6.46.11.bb => python3-hypothesis_6.47.2.bb} | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>  rename meta/recipes-devtools/python/{python3-hypothesis_6.46.11.bb =>
> python3-hypothesis_6.47.2.bb} (88%)
>
> diff --git a/meta/recipes-devtools/python/python3-hypothesis_6.46.11.bb
> b/meta/recipes-devtools/python/python3-hypothesis_6.47.2.bb
> similarity index 88%
> rename from meta/recipes-devtools/python/python3-hypothesis_6.46.11.bb
> rename to meta/recipes-devtools/python/python3-hypothesis_6.47.2.bb
> index 1d9772d4ff..f56bf3d19e 100644
> --- a/meta/recipes-devtools/python/python3-hypothesis_6.46.11.bb
> +++ b/meta/recipes-devtools/python/python3-hypothesis_6.47.2.bb
> @@ -13,7 +13,7 @@ SRC_URI += " \
>  file://test_rle.py \
>  "
>
> -SRC_URI[sha256sum] =
> "f5c1cf61b24b094355577a6b8fbbb8eb54c1b0216fbc0519af97c46bddf43c42"
> +SRC_URI[sha256sum] =
> "9c01a225eada7d74d38430e3e91e659e3a892fbc2b15f7b051779ded6ab73ee7"
>
>  RDEPENDS:${PN} += " \
>  python3-attrs \
> @@ -23,6 +23,7 @@ RDEPENDS:${PN} += " \
>  python3-sortedcontainers \
>  python3-statistics \
>  python3-unittest \
> +${PYTHON_PN}-exceptiongroup \
>

IMO It's better to have it as python3-exceptiongroup for consistency with
the other python in RDEPENDS

Jose


>  "
>
>  RDEPENDS:${PN}-ptest += " \
> --
> 2.25.1
>
>
> 
>
>

-- 
Best regards,

José Quaresma

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167019): 
https://lists.openembedded.org/g/openembedded-core/message/167019
Mute This Topic: https://lists.openembedded.org/mt/91816508/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-