Bug 2373979 - 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: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Halman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYC3.14rc3
TreeView+ depends on / blocked
 
Reported: 2025-06-20 05:57 UTC by Jan Pazdziora
Modified: 2025-09-16 09:49 UTC (History)
9 users (show)

Fixed In Version: sssd-2.11.1-2.fc44
Clone Of:
Environment:
Last Closed: 2025-08-25 10:01:13 UTC
Type: Bug
Embargoed:
aboscatt: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-1761 0 None None None 2025-06-30 21:22:07 UTC

Description Jan Pazdziora 2025-06-20 05:57:23 UTC
Reoccurence of bug #2319608:

The /usr/lib/python3.14/site-packages/SSSDConfig/__pycache__/*.cpython-314.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.14/site-packages/SSSDConfig/__pycache__/__init__.cpython-314.pyc
3. python3 -c 'import SSSDConfig'
4. stat /usr/lib/python3.14/site-packages/SSSDConfig/__pycache__/__init__.cpython-314.pyc

Actual Results:  

bash-5.2# stat /usr/lib/python3.14/site-packages/SSSDConfig/__pycache__/__init__.cpython-314.pyc 
  File: /usr/lib/python3.14/site-packages/SSSDConfig/__pycache__/__init__.cpython-314.pyc
  Size: 59904     	Blocks: 120        IO Block: 4096   regular file
Device: 0,142	Inode: 1085021     Links: 2
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2025-06-06 00:00:00.000000000 +0000
Modify: 2025-06-06 00:00:00.000000000 +0000
Change: 2025-06-20 05:52:59.146656555 +0000
 Birth: 2025-06-20 05:52:59.146512950 +0000
bash-5.2# python3 -c 'import SSSDConfig'
bash-5.2# stat /usr/lib/python3.14/site-packages/SSSDConfig/__pycache__/__init__.cpython-314.pyc 
  File: /usr/lib/python3.14/site-packages/SSSDConfig/__pycache__/__init__.cpython-314.pyc
  Size: 61398     	Blocks: 120        IO Block: 4096   regular file
Device: 0,142	Inode: 1081628     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2025-06-20 05:53:34.790753836 +0000
Modify: 2025-06-20 05:53:34.792024966 +0000
Change: 2025-06-20 05:53:34.792024966 +0000
 Birth: 2025-06-20 05:53:34.790753836 +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/15771389975.

Comment 1 Lukas Slebodnik 2025-06-20 14:23:10 UTC
it seems to be related to upgrade of python 3.14 (3.14.0~b2-2.fc43 -> 3.14.0~b3-2.fc43)

bash-5.2# rpm -q python3 python3-libs python3-sssdconfig
python3-3.14.0~b2-2.fc43.x86_64
python3-libs-3.14.0~b2-2.fc43.x86_64
python3-sssdconfig-2.11.0-2.fc43.noarch
bash-5.2# rpm -V python3 python3-libs python3-sssdconfig
bash-5.2# python3 -c 'import SSSDConfig'
bash-5.2# rpm -V python3 python3-libs python3-sssdconfig
bash-5.2# 


bash-5.2# dnf update -y python3             
Updating and loading repositories:
Repositories loaded.
Package                   Arch   Version                 Repository         Size
Upgrading:
 python3                  x86_64 3.14.0~b3-2.fc43        rawhide        28.9 KiB
   replacing python3      x86_64 3.14.0~b2-2.fc43        @commandline   28.9 KiB
 python3-libs             x86_64 3.14.0~b3-2.fc43        rawhide        42.8 MiB
   replacing python3-libs x86_64 3.14.0~b2-2.fc43        @commandline   44.8 MiB

Transaction Summary:
 Upgrading:          2 packages
 Replacing:          2 packages

Total size of inbound packages is 10 MiB. Need to download 10 MiB.
After this operation, 2 MiB will be freed (install 43 MiB, remove 45 MiB).
[1/2] python3-0:3.14.0~b3-2.fc43.x86_64 100% | 673.5 KiB/s |  26.9 KiB |  00m00s
[2/2] python3-libs-0:3.14.0~b3-2.fc43.x 100% |  43.3 MiB/s |   9.8 MiB |  00m00s
--------------------------------------------------------------------------------
[2/2] Total                             100% |  27.6 MiB/s |   9.8 MiB |  00m00s
Running transaction
[1/6] Verify package files              100% |  47.0   B/s |   2.0   B |  00m00s
[2/6] Prepare transaction               100% |  93.0   B/s |   4.0   B |  00m00s
[3/6] Upgrading python3-libs-0:3.14.0~b 100% | 117.8 MiB/s |  43.2 MiB |  00m00s
[4/6] Upgrading python3-0:3.14.0~b3-2.f 100% |   1.1 MiB/s |  30.7 KiB |  00m00s
[5/6] Removing python3-0:3.14.0~b2-2.fc 100% | 923.0   B/s |  12.0   B |  00m00s
[6/6] Removing python3-libs-0:3.14.0~b2 100% |  16.2 KiB/s |   2.3 KiB |  00m00s
Complete!
bash-5.2# python3 -c 'import SSSDConfig'
bash-5.2# rpm -V python3 python3-libs python3-sssdconfig
S.5....T.    /usr/lib/python3.14/site-packages/SSSDConfig/__pycache__/__init__.cpython-314.pyc
S.5....T.    /usr/lib/python3.14/site-packages/SSSDConfig/__pycache__/ipachangeconf.cpython-314.pyc
..5....T.    /usr/lib/python3.14/site-packages/SSSDConfig/__pycache__/sssdoptions.cpython-314.pyc


python3-sssdconfig-2.11.0-2.fc43.noarch was built with python3-devel 3.14.0~b2-3.fc43 based on root.log
* https://kojipkgs.fedoraproject.org//packages/sssd/2.11.0/2.fc43/data/logs/x86_64/root.log

Comment 2 Tomas Halman 2025-08-21 15:40:27 UTC
The bug disappeared with SSSD update but re-appeared again (probably with Fedora mass rebuild).

Comment 3 Miro Hrončok 2025-08-25 10:01:13 UTC
This was fixed in the past for the pyc magic bump in Python 3.14.0b3, and now again for 3.14.0rc2.

See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/XO5QGOXBWHFG7AOGDQBG23AQDS2MDTWI/

Comment 4 Miro Hrončok 2025-08-25 10:08:44 UTC
During the pre-release of Python, it occasionally happens that all the pyc files in Fedora need to be rebuilt. We, the Python Maintainers, are handling this. There is no need to do anything on individual package levels. However, if this bothers you at any point in the future (e.g. during the Python 3.15 transition), a simple rebuild fixes it.

Comment 5 Miro Hrončok 2025-09-16 09:49:54 UTC
FTR This will happen once more with Python 3.14.0rc3: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/O6LBYY446Q2FWVBEVJCOJ34ADXTEIH65/


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