diff mbox series

[meta-security] python3-pyinotify: do not rely on smtpd module

Message ID 20240123143851.2026645-1-akuster808@gmail.com
State New
Headers show
Series [meta-security] python3-pyinotify: do not rely on smtpd module | expand

Commit Message

akuster808 Jan. 23, 2024, 2:38 p.m. UTC
It's not mentioned anywhere in source code, and python 3.12
has removed it.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 .../recipes-devtools/python/python3-pyinotify_0.9.6.bb           | 1 -
 1 file changed, 1 deletion(-)

Comments

Yu, Mingli March 18, 2024, 2:24 a.m. UTC | #1
Below error issues once the RDEPENDS removed.

# python3
Python 3.12.1 (main, Dec  7 2023, 20:45:44) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
 >>> import pyinotify
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib64/python3.12/site-packages/pyinotify.py", line 71, in 
<module>
     import asyncore
ModuleNotFoundError: No module named 'asyncore'
 >>>

Thanks,


On 1/23/24 22:38, Armin Kuster wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
> 
> It's not mentioned anywhere in source code, and python 3.12
> has removed it.
> 
> Signed-off-by: Armin Kuster <akuster808@gmail.com>
> ---
>   .../recipes-devtools/python/python3-pyinotify_0.9.6.bb           | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb b/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb
> index 8dd5e15..963fcfe 100644
> --- a/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb
> +++ b/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb
> @@ -9,7 +9,6 @@ RDEPENDS:${PN} += "\
>       ${PYTHON_PN}-logging \
>       ${PYTHON_PN}-misc \
>       ${PYTHON_PN}-shell \
> -    ${PYTHON_PN}-smtpd \
>       ${PYTHON_PN}-threading \
>   "
> 
> --
> 2.34.1
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#62244): https://lists.yoctoproject.org/g/yocto/message/62244
> Mute This Topic: https://lists.yoctoproject.org/mt/103910351/3618448
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [mingli.yu@eng.windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Yu, Mingli March 18, 2024, 6:44 a.m. UTC | #2
Sent the patch 
https://patchwork.yoctoproject.org/project/yocto/patch/20240318064035.1053444-1-mingli.yu@windriver.com/ 
to fix the issue.

Thanks,

On 3/18/24 10:24, Yu, Mingli wrote:
> Below error issues once the RDEPENDS removed.
> 
> # python3
> Python 3.12.1 (main, Dec  7 2023, 20:45:44) [GCC 13.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import pyinotify
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File "/usr/lib64/python3.12/site-packages/pyinotify.py", line 71, in 
> <module>
>      import asyncore
> ModuleNotFoundError: No module named 'asyncore'
>  >>>
> 
> Thanks,
> 
> 
> On 1/23/24 22:38, Armin Kuster wrote:
>> CAUTION: This email comes from a non Wind River email account!
>> Do not click links or open attachments unless you recognize the sender 
>> and know the content is safe.
>>
>> It's not mentioned anywhere in source code, and python 3.12
>> has removed it.
>>
>> Signed-off-by: Armin Kuster <akuster808@gmail.com>
>> ---
>>   .../recipes-devtools/python/python3-pyinotify_0.9.6.bb           | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git 
>> a/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb b/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb
>> index 8dd5e15..963fcfe 100644
>> --- 
>> a/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb
>> +++ 
>> b/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb
>> @@ -9,7 +9,6 @@ RDEPENDS:${PN} += "\
>>       ${PYTHON_PN}-logging \
>>       ${PYTHON_PN}-misc \
>>       ${PYTHON_PN}-shell \
>> -    ${PYTHON_PN}-smtpd \
>>       ${PYTHON_PN}-threading \
>>   "
>>
>> -- 
>> 2.34.1
>>
>>
>>
>>
>>
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#62775): https://lists.yoctoproject.org/g/yocto/message/62775
> Mute This Topic: https://lists.yoctoproject.org/mt/103910351/3618448
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [mingli.yu@eng.windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb b/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb
index 8dd5e15..963fcfe 100644
--- a/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb
+++ b/dynamic-layers/meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb
@@ -9,7 +9,6 @@  RDEPENDS:${PN} += "\
     ${PYTHON_PN}-logging \
     ${PYTHON_PN}-misc \
     ${PYTHON_PN}-shell \
-    ${PYTHON_PN}-smtpd \
     ${PYTHON_PN}-threading \
 "