Updating Debian Package - Installation Paths#1564
Conversation
91d45aa to
1dc116c
Compare
8928d13 to
3be241a
Compare
78bf34c to
c83a33a
Compare
8b5904b to
de4ef40
Compare
3b76e6c to
17d1b86
Compare
17d1b86 to
980edb7
Compare
791ea0d to
ddf1efe
Compare
ddf1efe to
7435ef7
Compare
7435ef7 to
e53c7ff
Compare
e53c7ff to
07e7271
Compare
07e7271 to
96236a4
Compare
There was a problem hiding this comment.
Pull request overview
This pull request updates the Debian package installation paths from /usr/local to /usr to comply with Debian policy (FHS mandates packages not place files in /usr/local), and fixes the documentation CI/CD workflow to skip pushing when there are no changes.
Changes:
- Modified C code and Python code to dynamically detect whether PANDA is installed via Debian package (in
/usr) or traditional install (in/usr/local) - Updated Dockerfile to parameterize installation prefix and prepare for Debian packaging with correct paths
- Fixed documentation workflow to check for changes before committing
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| panda/src/callbacks.c | Added dynamic path detection logic to set INSTALL_BIN_DIR and INSTALL_PLUGIN_DIR based on presence of panda binaries in /usr/bin |
| panda/python/core/pandare/utils.py | Added /usr/bin/ to the list of potential build directories to check for Debian installations |
| panda/python/core/pandare/panda.py | Added plugin path resolution for Debian installations at /usr/lib/panda |
| panda/plugins/osi_linux/osi_linux.cpp | Added fallback search path for kernelinfo.conf at /etc/panda/osi_linux for Debian packages |
| Dockerfile | Parameterized installation prefix with INSTALL_PREFIX ARG and updated packager stage to copy files to correct Debian paths (/usr instead of /usr/local) |
| .github/workflows/publish_docker.yml | Added check to skip git commit/push when no documentation changes are detected |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ab9ca5b to
5447c97
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e99cfca to
69942a7
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
69942a7 to
ddb39cd
Compare
…ckaging standards
ddb39cd to
89fd67c
Compare
This Pull Request is to close #1605
The two main changes are:
Debian packages, as shown in the issue, shouldn't install to /usr/local but /usr; this has been updated. Relevant changes to avoid breaking PANDA were made, too.
Quick fix on documentation CI/CD, if no Python code changes, it shouldn't error out if there is no change to the pypanda documentation.