Bug 2319608 - python3-sssdconfig packs outdated .pyc files
Summary: python3-sssdconfig packs outdated .pyc files
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: sssd
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tomas Halman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-18 09:54 UTC by Jan Pazdziora (Red Hat)
Modified: 2025-06-20 05:58 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-12-06 10:20:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SSSD-8258 0 None None None 2024-10-21 12:39:06 UTC
Red Hat Issue Tracker SSSD-8259 0 None None None 2024-10-21 12:40:17 UTC

Description Jan Pazdziora (Red Hat) 2024-10-18 09:54:45 UTC
The /usr/lib/python3.13/site-packages/SSSDConfig/__pycache__/*.cpython-313.pyc /usr/lib/files get regenerated when SSSDConfig module is used.



Reproducible: Always

Steps to Reproduce:

1. dnf install -y python3-sssdconfig
2. stat /usr/lib/python3.13/site-packages/SSSDConfig/__pycache__/__init__.cpython-313.pyc
3. python3 -c 'import SSSDConfig'
4. stat /usr/lib/python3.13/site-packages/SSSDConfig/__pycache__/__init__.cpython-313.pyc

Actual Results:  

[root@0890eef375bc /]# stat /usr/lib/python3.13/site-packages/SSSDConfig/__pycache__/__init__.cpython-313.pyc
  File: /usr/lib/python3.13/site-packages/SSSDConfig/__pycache__/__init__.cpython-313.pyc
  Size: 57759     	Blocks: 120        IO Block: 4096   regular file
Device: 0,109	Inode: 1226072     Links: 2
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-10-15 00:00:00.000000000 +0000
Modify: 2024-10-15 00:00:00.000000000 +0000
Change: 2024-10-18 09:46:42.433097566 +0000
 Birth: 2024-10-18 09:46:42.432097551 +0000
[root@0890eef375bc /]# python3 -c 'import SSSDConfig'
[root@0890eef375bc /]# stat /usr/lib/python3.13/site-packages/SSSDConfig/__pycache__/__init__.cpython-313.pyc
  File: /usr/lib/python3.13/site-packages/SSSDConfig/__pycache__/__init__.cpython-313.pyc
  Size: 59402     	Blocks: 120        IO Block: 4096   regular file
Device: 0,109	Inode: 1196042     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-10-18 09:47:14.646592272 +0000
Modify: 2024-10-18 09:47:14.646592272 +0000
Change: 2024-10-18 09:47:14.646592272 +0000
 Birth: 2024-10-18 09:47:14.646592272 +0000


Expected Results:  

The Size and Modify time in the second stat run should match the output from the first one.



First found by https://github.com/freeipa/freeipa-container/actions/runs/11397511703/job/31723544138.

Comment 1 Tomas Halman 2024-12-05 13:46:44 UTC
Hi Jan

do you still see the issue? I tried with latest rawhide and failed to reproduce the problem.

Tomas

Comment 2 Jan Pazdziora (Red Hat) 2024-12-05 15:49:35 UTC
With python3-sssdconfig-0:2.10.0-3.fc42 the issue is no longer present.

Comment 3 Tomas Halman 2024-12-06 10:20:01 UTC
Thanks for the response.

Comment 4 Jan Pazdziora 2025-06-20 05:58:03 UTC
The issue seems back with python 3.14: bug 2373979.


Note You need to log in before you can comment on or make changes to this bug.