sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
743 stars 1.43k forks source link

[Makefile] make-list builds non-built pkgs instead listing targets #5143

Open antony-rheneus opened 4 years ago

antony-rheneus commented 4 years ago

Description

make list and even make clean will start to build a non-built packages when it is not supposed to do. It is seen after buster migration

Steps to reproduce the issue:

  1. Enable ENABLE_SYNCD_RPC in rules/config
  2. Do make list

sonic-buildimage$ NOJESSIE=1 make list +++ --- Making list --- +++ EXTRA_DOCKER_TARGETS=list BLDENV=stretch make -f Makefile.work stretch make[1]: Entering directory '/sonic-buildimage' SONiC Build System

Build Configuration "CONFIGURED_PLATFORM" : "marvell" "CONFIGURED_ARCH" : "amd64" "SONIC_CONFIG_PRINT_DEPENDENCIES" : "" "SONIC_BUILD_JOBS" : "1" "SONIC_CONFIG_MAKE_JOBS" : "16" "SONIC_USE_DOCKER_BUILDKIT" : "" "USERNAME" : "admin" "PASSWORD" : "YourPaSsWoRd" "ENABLE_DHCP_GRAPH_SERVICE" : "" "SHUTDOWN_BGP_ON_START" : "" "INSTALL_KUBERNETES" : "n" "ENABLE_PFCWD_ON_START" : "" "INSTALL_DEBUG_TOOLS" : "" "ROUTING_STACK" : "frr" "FRR_USER_UID" : "300" "FRR_USER_GID" : "300" "ENABLE_SYNCD_RPC" : "y" "ENABLE_ORGANIZATION_EXTENSIONS" : "y" "HTTP_PROXY" : "" "HTTPS_PROXY" : "" "ENABLE_SYSTEM_TELEMETRY" : "N" "ENABLE_RESTAPI" : "n" "ENABLE_ZTP" : "" "SONIC_DEBUGGING_ON" : "" "SONIC_PROFILING_ON" : "" "KERNEL_PROCURE_METHOD" : "build" "BUILD_TIMESTAMP" : "20200811.092009" "BUILD_LOG_TIMESTAMP" : "none" "BLDENV" : "stretch" "VS_PREPARE_MEM" : "yes" "ENABLE_SFLOW" : "y" "ENABLE_NAT" : "y" "TELEMETRY_WRITABLE" : ""

fatal: Not a git repository (or any of the parent directories): .git "SONIC_DPKG_CACHE_METHOD" : "none"

[ 01 ] [ target/debs/stretch/libthrift-0.11.0_0.11.0-4_amd64.deb ]

Describe the results you received: Started compiling packages

Describe the results you expected: Just to list the target available

aparkhomenko-xsight commented 2 years ago

Try to use this commands BLDENV=buster make -f Makefile.work list BLDENV=bullseye make -f Makefile.work list