mirror of
https://github.com/Telecominfraproject/ols-nos.git
synced 2025-11-24 18:24:56 +00:00
Build python-click Debian package from version 6.7-4 source to fix CLI autocomplete/suggest (#1824)
This commit is contained in:
26
src/python-click/Makefile
Normal file
26
src/python-click/Makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
.ONESHELL:
|
||||
SHELL = /bin/bash
|
||||
.SHELLFLAGS += -e
|
||||
|
||||
MAIN_TARGET = python-click_$(PYTHON_CLICK_VERSION)_all.deb
|
||||
|
||||
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
||||
# Remove any stale files
|
||||
rm -rf ./python-click
|
||||
|
||||
# Clone python-click Debian repo
|
||||
git clone https://salsa.debian.org/debian/python-click
|
||||
|
||||
pushd ./python-click
|
||||
|
||||
# Reset HEAD to the commit of the proper tag
|
||||
# NOTE: Using "git checkout <tag_name>" here detaches our HEAD,
|
||||
# which stg doesn't like, so we use this method instead
|
||||
git reset --hard debian/$(PYTHON_CLICK_VERSION)
|
||||
|
||||
# Build source and Debian packages
|
||||
dpkg-buildpackage -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS)
|
||||
popd
|
||||
|
||||
# Move the newly-built .deb package to the destination directory
|
||||
mv $* $(DEST)/
|
||||
Reference in New Issue
Block a user