Skip to content

Commit 4ed5cb4

Browse files
nikos-githublguohan
authored andcommitted
[docker-frr]: Move FRR from 4.0 to 6.0.2 and make the new frr version and debian package compile (#2454)
Signed-off-by: nikos <[email protected]>
1 parent 8542a29 commit 4ed5cb4

File tree

5 files changed

+11
-30
lines changed

5 files changed

+11
-30
lines changed

dockers/docker-fpm-frr/Dockerfile.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV DEBIAN_FRONTEND=noninteractive
1313
RUN apt-get update
1414

1515
# Install required packages
16-
RUN apt-get install -y libdbus-1-3 libdaemon0 libjansson4 libc-ares2 iproute libpython2.7
16+
RUN apt-get install -y libdbus-1-3 libdaemon0 libjansson4 libc-ares2 iproute libpython2.7 libjson-c2 logrotate
1717

1818
{% if docker_fpm_frr_debs.strip() -%}
1919
# Copy locally-built Debian package dependencies

rules/config

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ DEFAULT_KERNEL_PROCURE_METHOD = build
8282
# host, then either the appropriate account and group will need to be created on the host
8383
# manually or changes need to be made when the image is built to create the account and
8484
# group during installation.
85-
FRR_USER_UID = 1000
86-
FRR_USER_GID = 1000
85+
FRR_USER_UID = 300
86+
FRR_USER_GID = 300

rules/frr.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# FRRouting (frr) package
22

3-
FRR_VERSION = 4.0
3+
FRR_VERSION = 6.0.2
44
export FRR_VERSION
55

66
FRR = frr_$(FRR_VERSION)-1~sonic.debian8+1_amd64.deb

src/sonic-frr/Makefile

+6-25
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,13 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
99
# Build the package
1010
pushd ./frr
1111

12-
# clean up the previous build
13-
rm -rf debian
14-
rm -f frr*.tar.gz
15-
rm -f frr*.tar.xz
16-
rm -f frr*.dsc
17-
18-
# make a dist tarball
19-
./bootstrap.sh
20-
./configure
21-
make dist
22-
23-
# Create backports debian sources
24-
cp -a debianpkg debian
25-
make -f debian/rules backports
26-
27-
# new directory to build the package
28-
rm -rf frrpkg
29-
mkdir frrpkg
30-
cd frrpkg
31-
tar xf ../frr_*.orig.tar.gz
32-
cd frr*
33-
tar xf ../../frr_*sonic.debian8*.debian.tar.xz
34-
35-
# build package
36-
dpkg-buildpackage -rfakeroot -b -us -uc
12+
# This could very well be tools/tarsource.sh -V -e sonic
13+
tools/tarsource.sh -V
14+
# This is a no-op but here in case the changelog stops being a symlink
15+
debchange -b -v $(FRR_VERSION)-1~sonic.debian8+1 'SONiC FRR debian package build'
16+
dpkg-buildpackage -rfakeroot -b -us -uc -Ppkg.frr.nortrlib
3717
cd ..
18+
mv frr_$(FRR_VERSION)-*_amd64.deb frr_$(FRR_VERSION)-1~sonic.debian8+1_amd64.deb
3819
mv $* $(DEST)/
3920

4021
popd

src/sonic-frr/frr

Submodule frr updated from aaf54fd to 5a35fd3

0 commit comments

Comments
 (0)