From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] iproute2: Update to version 6.5.0 Date: Wed, 13 Sep 2023 15:26:51 +0100 Message-ID: <2011C357-4634-4F85-9965-C13BF73FFB8A@ipfire.org> In-Reply-To: <6b969e4e-e919-4c7f-9271-c34860ac447e@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8388471184875147242==" List-Id: --===============8388471184875147242== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, I think keeping everything in /etc/iproute2 would work for us then. This does not allow users to edit those files, but that shouldn=E2=80=99t hap= pen anyways because we have scripts that rely on a certain format and edit th= e files. -Michael > On 13 Sep 2023, at 11:32, Adolf Belka wrote: >=20 > Hi All, >=20 > Realised that I forgot to mention in the commit about the addition of the C= ONF_USR_DIR=3D/etc/iproute2 >=20 > In previous versions of iproute2 they just had a single CONF_DIR which was = /etc/iproute2 >=20 > In version 6.5.0 they have split this into two CONF_ETC_DIR and CONF_USR_DIR >=20 > Here is a quote from the commit regarding this change:- >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Add support for the so called "stateless" configuration pattern (read > from /etc, fall back to /usr), giving system administrators a way to > define local configuration without changing any distro-provided files. >=20 > In practice this means that each configuration file FOO is loaded > from /usr/lib/iproute2/FOO unless /etc/iproute2/FOO exists. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > This resulted in the files that used to be in /etc/iproute2 not being there= and the directory also being missing. >=20 > I could have just created the directory and copied across all the files in = the LFS but it seemed that this would duplicate the files and we are not a ty= pical distro where the user might create customised conf files. >=20 > So I changed the lfs to set CONF_USR_DIR to /etc/iproute2 rather than the d= efault /usr/lib/iproute2 This basically keeps everything in the same place as= it used to be with the earlier versions. >=20 > If anyone thinks it should be done differently I can always change it at th= e next update. >=20 > Regards, >=20 > Adolf. >=20 > On 13/09/2023 12:14, Adolf Belka wrote: >> - Update from version 6.4.0 to 6.5.0 >> - Update of rootfile >> - Changelog is only available by reviewing the github commits >> https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/log/ >> Signed-off-by: Adolf Belka >> --- >> config/rootfiles/common/iproute2 | 1 + >> lfs/iproute2 | 13 +++++++++---- >> 2 files changed, 10 insertions(+), 4 deletions(-) >> diff --git a/config/rootfiles/common/iproute2 b/config/rootfiles/common/ip= route2 >> index 420a33c85..15bad27f7 100644 >> --- a/config/rootfiles/common/iproute2 >> +++ b/config/rootfiles/common/iproute2 >> @@ -50,6 +50,7 @@ usr/share/bash-completion/completions/tc >> #usr/share/man/man8/dcb-ets.8 >> #usr/share/man/man8/dcb-maxrate.8 >> #usr/share/man/man8/dcb-pfc.8 >> +#usr/share/man/man8/dcb-rewr.8 >> #usr/share/man/man8/dcb.8 >> #usr/share/man/man8/devlink-dev.8 >> #usr/share/man/man8/devlink-dpipe.8 >> diff --git a/lfs/iproute2 b/lfs/iproute2 >> index cfdb474cb..1a55a1bb8 100644 >> --- a/lfs/iproute2 >> +++ b/lfs/iproute2 >> @@ -24,7 +24,7 @@ >> include Config >> -VER =3D 6.4.0 >> +VER =3D 6.5.0 >> THISAPP =3D iproute2-$(VER) >> DL_FILE =3D $(THISAPP).tar.xz >> @@ -40,7 +40,7 @@ objects =3D $(DL_FILE) >> $(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) >> -$(DL_FILE)_BLAKE2 =3D 76369d2a794afd13dba1a34ee9a7425775bb7b43c221642747= 49c01b18d061669aa5abd51d32a15d68f48e75f4837a887dfc28ea41e34d8e4c36b2ab865628dd >> +$(DL_FILE)_BLAKE2 =3D 537a956c2fb59df25e90d7899a981e5408c5ee029df2bb87461= b899ecf8fe4424a1db5d1b1b67a67bdb2555f6cc4aaf099b0544a2c92ffc3843adc3d17defb96 >> install : $(TARGET) >> @@ -70,8 +70,13 @@ $(subst %,%_BLAKE2,$(objects)) : >> $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) >> @$(PREBUILD) >> @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) >> - cd $(DIR_APP) && make $(MAKETUNING) SBINDIR=3D/sbin >> - cd $(DIR_APP) && make SBINDIR=3D/sbin install >> + cd $(DIR_APP) && make $(MAKETUNING) \ >> + SBINDIR=3D/sbin \ >> + CONF_USR_DIR=3D/etc/iproute2 >> + cd $(DIR_APP) && make \ >> + SBINDIR=3D/sbin \ >> + CONF_USR_DIR=3D/etc/iproute2 \ >> + install >> cd $(DIR_APP) && mv -v /sbin/arpd /usr/sbin >> # Add table for static routing --===============8388471184875147242==--