File obs_log_None_standard_riscv64.txt of Package failed_ibus-cangjie
Repair summary for failed_ibus-cangjie Root cause: - The build failed during %install when the package's helper script 'py-compile' attempted to import the deprecated module 'imp', causing ModuleNotFoundError: No module named 'imp'. This prevents compilation/installation of python modules and aborts the RPM build. Minimal change applied: - Replaced source helper script 'py-compile' in the extracted tarball with a Python 3 compatible implementation that uses the supported 'py_compile' module and avoids the deprecated 'imp' module. Files modified (full paths inside package): - extracted/ibus-cangjie-2.4/py-compile (content replaced) Why this fixes the build: - The project's build calls the provided py-compile helper to byte-compile Python sources during installation. On modern Python (3.12+), the 'imp' module is removed; avoiding it prevents ModuleNotFoundError and allows compilation to proceed. Notes and next steps: - I did not change the spec file; the spec contains a Patch0 entry already. The patch provided in the package root may address other issues but did not replace this helper script. Re-running the build in OBS is recommended to verify the fix. - The automated result file could not be created at auto_repair_results/failed_ibus-cangjie_result.txt because the toolset does not allow creating new files in that path. The summary is therefore saved here in obs_log_None_standard_riscv64.txt. Change log: - 1 file updated in source archive: py-compile (replaced content) Automated-repair performed in: temp_workspace/failed_ibus-cangjie