Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for debug shell with package ENV variable set. #6092

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jan 12, 2021

  1. Support for debug shell with package ENV variable set.

    Sonic package build happens inside the docker build container.
    when a package build failure happens, debugging the package compilation requires
    pre-installation of its dependent packages and version ENV
    variables to be set. For example:
    
    \# make target/debs/buster/hsflowd_2.0.26-4_amd64.deb
       ***failure***
    
    In oder to compile the hslflowd package inside the container, the
    following ENV variable to be set.
    
       export HSFLOWD_VERSION = 2.0.28
       export HSFLOWD_SUBVERSION = 2
    
    This patch helps to compile the package directly on the source folder
    inside the build container with required ENV variable set.
    
    \# make DBGSH=1 target/debs/buster/hsflowd_2.0.26-4_amd64.deb
    
    Get into the build container and land on the bash shell.
    
    src/sflow/hsflowd $
    src/sflow/hsflowd $ make hsflowd_2.0.26-4_amd64.deb
    Kalimuthu-Velappan committed Jan 12, 2021
    Configuration menu
    Copy the full SHA
    71293df View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    909ffd8 View commit details
    Browse the repository at this point in the history