** Description changed:

- The python3-os-client-config package for Noble dropped the
- constructors.json file from the package. This file is necessary for the
- constructor mapping.
+ [Impact]
+ 
+ Due to the transition to the PEP 517 build backend in Ubuntu 24.04 LTS
+ (Noble), non-Python files are no longer installed automatically into the
+ binary package directory unless explicitly specified or copied during
+ packaging.
+ 
+ While defaults.json is explicitly copied via debian/rules,
+ constructors.json was omitted. Consequently, the installed python3-os-
+ client-config package lacks /usr/lib/python3/dist-
+ packages/os_client_config/constructors.json. Applications or libraries
+ relying on client construction metadata provided by this JSON file will
+ fail or raise FileNotFoundError at runtime when attempting to locate or
+ load constructors.json.
+ 
+ [Test Plan]
+ 
+ Verify failure on unpatched release:
+ 
+ Install python3-os-client-config:
+ 
+ sudo apt update && sudo apt install -y python3-os-client-config
+ 
+ Verify that constructors.json is missing:
+ 
+ python3 -c "import os_client_config.constructors"
+ ls -l /usr/lib/python3/dist-packages/os_client_config/constructors.json
+ 
+ (The file should not exist, or an error will occur if accessed
+ directly).
+ 
+ [Where Problems Could Occur]
+ 
+ Packaging / Build Regression: If the copy command in debian/rules
+ specifies an invalid path or fails to handle destination directories
+ properly, the build could fail.
+ 
+ Scope of Change: The fix is low-risk as it only copies an existing,
+ previously missing data file (constructors.json) into the package
+ alongside defaults.json. It does not alter existing Python code or
+ logic.
+ 
+ Disk footprint: The addition introduces a negligible increase in package
+ size corresponding to the size of constructors.json.
+ 
+ [Other Info]
+ 
+ This issue affects Noble (2.1.0-0ubuntu5) through Resolute
+ (2.3.0-0ubuntu1).
+ 
+ Fixed in debian/rules by explicitly installing constructors.json
+ alongside defaults.json:
+ 
+ Makefile
+ cp os_client_config/constructors.json 
$(CURDIR)/debian/python3-os-client-config/usr/lib/python3/dist-packages/os_client_config/constructors.json

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2172048

Title:
  constructors.json missing from python3-os-client-config package for
  Noble

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-os-client-config/+bug/2172048/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to