Bug
The native/decompress.py script has inconsistent database configuration handling that leads to runtime errors. In #1148 , the core CLP components were refactored to use command-line arguments and environment variables for database configuration instead of YAML config files. However, the native/decompress.py script was not properly updated to match this change.
The script still attempts to:
- Generate a temporary YAML database config file
- Pass it to the
clp command with --db-config-file
- Delete the temporary file afterward
But the core CLP components no longer accept the --db-config-file argument, causing the decompression to fail.
CLP version
4216b1e
Environment
junhao@ASUS-X870E:~/workspace/clp$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
Reproduction steps
- Build the CLP package with
task package
- Navigate to
build/clp-package/sbin
- Run the decompress command to extract:
- The command will fail because the
clp binary no longer accepts the --db-config-file argument.
Bug
The
native/decompress.pyscript has inconsistent database configuration handling that leads to runtime errors. In #1148 , the core CLP components were refactored to use command-line arguments and environment variables for database configuration instead of YAML config files. However, thenative/decompress.pyscript was not properly updated to match this change.The script still attempts to:
clpcommand with--db-config-fileBut the core CLP components no longer accept the
--db-config-fileargument, causing the decompression to fail.CLP version
4216b1e
Environment
Reproduction steps
task packagebuild/clp-package/sbinclpbinary no longer accepts the--db-config-fileargument.