[build]: Polish protobuf build (#16119)
- Use dget to download the protobuf source code - Add official link in sonic-mgmt Dockerfile for protobuf Signed-off-by: Ze Gan <ganze718@gmail.com>
This commit is contained in:
parent
456a90e1ab
commit
83d67d4c8a
@ -210,7 +210,7 @@ RUN dpkg -i \
|
|||||||
debs/{{ deb }}{{' '}}
|
debs/{{ deb }}{{' '}}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
# Install protobuf 3.21.12
|
# Install protobuf 3.21.12 which is from https://deb.debian.org/debian/pool/main/p/protobuf/protobuf_3.21.12-3.dsc
|
||||||
RUN mkdir -p /tmp/protobuf \
|
RUN mkdir -p /tmp/protobuf \
|
||||||
&& cd /tmp/protobuf \
|
&& cd /tmp/protobuf \
|
||||||
&& wget https://sonicstorage.blob.core.windows.net/public/ubuntu/20.04/libprotobuf-dev_3.21.12-3_amd64.deb \
|
&& wget https://sonicstorage.blob.core.windows.net/public/ubuntu/20.04/libprotobuf-dev_3.21.12-3_amd64.deb \
|
||||||
|
@ -13,10 +13,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
|||||||
# Remove any stale files
|
# Remove any stale files
|
||||||
rm -rf protobuf-$(PROTOBUF_VERSION)
|
rm -rf protobuf-$(PROTOBUF_VERSION)
|
||||||
|
|
||||||
wget -O protobuf_$(PROTOBUF_VERSION).orig.tar.gz http://deb.debian.org/debian/pool/main/p/protobuf/protobuf_$(PROTOBUF_VERSION).orig.tar.gz
|
dget protobuf_$(PROTOBUF_VERSION_FULL).dsc http://deb.debian.org/debian/pool/main/p/protobuf/protobuf_$(PROTOBUF_VERSION_FULL).dsc
|
||||||
wget -O protobuf_$(PROTOBUF_VERSION_FULL).dsc http://deb.debian.org/debian/pool/main/p/protobuf/protobuf_$(PROTOBUF_VERSION_FULL).dsc
|
|
||||||
wget -O protobuf_$(PROTOBUF_VERSION_FULL).debian.tar.xz http://deb.debian.org/debian/pool/main/p/protobuf/protobuf_$(PROTOBUF_VERSION_FULL).debian.tar.xz
|
|
||||||
dpkg-source -x protobuf_$(PROTOBUF_VERSION_FULL).dsc
|
|
||||||
|
|
||||||
pushd protobuf-$(PROTOBUF_VERSION)
|
pushd protobuf-$(PROTOBUF_VERSION)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user