diff --git a/dockers/docker-fpm-frr/Dockerfile.j2 b/dockers/docker-fpm-frr/Dockerfile.j2 index 6f046af6cf27..747ba3ec8a56 100644 --- a/dockers/docker-fpm-frr/Dockerfile.j2 +++ b/dockers/docker-fpm-frr/Dockerfile.j2 @@ -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 {% if docker_fpm_frr_debs.strip() -%} # Copy locally-built Debian package dependencies diff --git a/rules/config b/rules/config index 86139c71540f..f672bd3722d4 100644 --- a/rules/config +++ b/rules/config @@ -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 +FRR_USER_GID = 300 diff --git a/rules/frr.mk b/rules/frr.mk index 2b7cc1fa14e4..a5736452b1ab 100644 --- a/rules/frr.mk +++ b/rules/frr.mk @@ -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 diff --git a/src/sonic-frr/Makefile b/src/sonic-frr/Makefile index d5db7168bf11..22cd1897a1f5 100644 --- a/src/sonic-frr/Makefile +++ b/src/sonic-frr/Makefile @@ -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 diff --git a/src/sonic-frr/frr b/src/sonic-frr/frr index aaf54fda1378..5a35fd375978 160000 --- a/src/sonic-frr/frr +++ b/src/sonic-frr/frr @@ -1 +1 @@ -Subproject commit aaf54fda1378167d7ce317f5b4a16c3a61ef59eb +Subproject commit 5a35fd375978dd7fce99c4b8ba84b0cdd1f32ac3