Skip to content

Updating Debian Package - Installation Paths#1564

Open
AndrewQuijano wants to merge 3 commits intodevfrom
updated-debian
Open

Updating Debian Package - Installation Paths#1564
AndrewQuijano wants to merge 3 commits intodevfrom
updated-debian

Conversation

@AndrewQuijano
Copy link
Copy Markdown
Collaborator

@AndrewQuijano AndrewQuijano commented Dec 11, 2024

This Pull Request is to close #1605

The two main changes are:

  1. 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.

  2. 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.

@AndrewQuijano AndrewQuijano changed the title Updating Debian packaging to more appropiately match proper Debian Pa… Updating Debian packaging Dec 11, 2024
@AndrewQuijano AndrewQuijano force-pushed the updated-debian branch 2 times, most recently from 91d45aa to 1dc116c Compare December 11, 2024 04:50
@AndrewQuijano AndrewQuijano changed the title Updating Debian packaging [WIP] Updating Debian packaging Dec 11, 2024
@AndrewQuijano AndrewQuijano force-pushed the updated-debian branch 5 times, most recently from 8928d13 to 3be241a Compare December 12, 2024 20:05
@AndrewQuijano AndrewQuijano changed the title [WIP] Updating Debian packaging Updating Debian packaging Dec 16, 2024
@AndrewQuijano AndrewQuijano force-pushed the updated-debian branch 2 times, most recently from 78bf34c to c83a33a Compare December 27, 2024 03:22
@AndrewQuijano AndrewQuijano force-pushed the updated-debian branch 3 times, most recently from 8b5904b to de4ef40 Compare January 7, 2025 02:53
@AndrewQuijano AndrewQuijano force-pushed the updated-debian branch 2 times, most recently from 3b76e6c to 17d1b86 Compare January 18, 2025 02:29
@AndrewQuijano AndrewQuijano changed the title Updating Debian packaging [WIP] Updating Debian packaging Apr 3, 2025
@AndrewQuijano AndrewQuijano changed the title [WIP] Updating Debian packaging [WIP] Updating Debian Installation Paths Apr 25, 2025
@AndrewQuijano AndrewQuijano changed the title [WIP] Updating Debian Installation Paths [WIP] Updating Debian Package, Part II - Installation Paths Apr 25, 2025
@AndrewQuijano AndrewQuijano marked this pull request as draft June 25, 2025 01:53
@AndrewQuijano AndrewQuijano changed the title [WIP] Updating Debian Package, Part II - Installation Paths [WIP] Updating Debian Package - Installation Paths Nov 2, 2025
@AndrewQuijano AndrewQuijano force-pushed the updated-debian branch 2 times, most recently from 791ea0d to ddf1efe Compare November 2, 2025 03:11
@github-actions github-actions Bot added the Build label Jan 12, 2026
@github-actions github-actions Bot removed the Build label Jan 15, 2026
@github-actions github-actions Bot added pypanda Pull requests that change PyPanda PANDA-Core osi_linux Pull requests that change the OSI Linux plugin labels Jan 30, 2026
@AndrewQuijano AndrewQuijano marked this pull request as ready for review January 30, 2026 15:23
@AndrewQuijano AndrewQuijano changed the title [WIP] Updating Debian Package - Installation Paths Updating Debian Package - Installation Paths Jan 30, 2026
@github-actions github-actions Bot added Build Github-files Pull requests that changes GitHub CI/CD labels Feb 3, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread Dockerfile
Comment thread panda/src/callbacks.c Outdated
Comment thread panda/src/callbacks.c Outdated
Comment thread panda/src/callbacks.c Outdated
Comment thread Dockerfile
Comment thread Dockerfile
Comment thread Dockerfile
Comment thread panda/src/callbacks.c Outdated
Comment thread Dockerfile
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread panda/src/callbacks.c Outdated
Comment thread panda/src/callbacks.c Outdated
Comment thread Dockerfile
Comment thread Dockerfile
Comment thread panda/plugins/osi_linux/osi_linux.cpp
@AndrewQuijano AndrewQuijano force-pushed the updated-debian branch 2 times, most recently from e99cfca to 69942a7 Compare February 4, 2026 20:50
@AndrewQuijano AndrewQuijano requested a review from Copilot February 4, 2026 20:51
@AndrewQuijano AndrewQuijano removed the request for review from zacogen February 4, 2026 20:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread panda/src/callbacks.c Outdated
Comment thread panda/src/callbacks.c Outdated
Comment thread panda/src/callbacks.c Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build Github-files Pull requests that changes GitHub CI/CD osi_linux Pull requests that change the OSI Linux plugin PANDA-Core pypanda Pull requests that change PyPanda

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Debian Package Install Path

2 participants