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

Move FRR from 4.0 to 6.0.2 and make new frr version and pkg compile #2454

Merged
merged 1 commit into from
Jan 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dockers/docker-fpm-frr/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update

# Install required packages
RUN apt-get install -y libdbus-1-3 libdaemon0 libjansson4 libc-ares2 iproute libpython2.7
RUN apt-get install -y libdbus-1-3 libdaemon0 libjansson4 libc-ares2 iproute libpython2.7 libjson-c2 logrotate
nikos-github marked this conversation as resolved.
Show resolved Hide resolved

{% if docker_fpm_frr_debs.strip() -%}
# Copy locally-built Debian package dependencies
Expand Down
4 changes: 2 additions & 2 deletions rules/config
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ DEFAULT_KERNEL_PROCURE_METHOD = build
# host, then either the appropriate account and group will need to be created on the host
# manually or changes need to be made when the image is built to create the account and
# group during installation.
FRR_USER_UID = 1000
FRR_USER_GID = 1000
FRR_USER_UID = 300
nikos-github marked this conversation as resolved.
Show resolved Hide resolved
FRR_USER_GID = 300
2 changes: 1 addition & 1 deletion rules/frr.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FRRouting (frr) package

FRR_VERSION = 4.0
FRR_VERSION = 6.0.2
export FRR_VERSION

FRR = frr_$(FRR_VERSION)-1~sonic.debian8+1_amd64.deb
Expand Down
31 changes: 6 additions & 25 deletions src/sonic-frr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,13 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
# Build the package
pushd ./frr

# clean up the previous build
rm -rf debian
rm -f frr*.tar.gz
rm -f frr*.tar.xz
rm -f frr*.dsc

# make a dist tarball
./bootstrap.sh
./configure
make dist

# Create backports debian sources
cp -a debianpkg debian
make -f debian/rules backports

# new directory to build the package
rm -rf frrpkg
mkdir frrpkg
cd frrpkg
tar xf ../frr_*.orig.tar.gz
cd frr*
tar xf ../../frr_*sonic.debian8*.debian.tar.xz

# build package
dpkg-buildpackage -rfakeroot -b -us -uc
# This could very well be tools/tarsource.sh -V -e sonic
tools/tarsource.sh -V
# This is a no-op but here in case the changelog stops being a symlink
debchange -b -v $(FRR_VERSION)-1~sonic.debian8+1 'SONiC FRR debian package build'
dpkg-buildpackage -rfakeroot -b -us -uc -Ppkg.frr.nortrlib
cd ..
mv frr_$(FRR_VERSION)-*_amd64.deb frr_$(FRR_VERSION)-1~sonic.debian8+1_amd64.deb
mv $* $(DEST)/

popd
Expand Down
2 changes: 1 addition & 1 deletion src/sonic-frr/frr
Submodule frr updated from aaf54f to 5a35fd