From mboxrd@z Thu Jan  1 00:00:00 1970
From: Peter =?utf-8?q?M=C3=BCller?= <peter.mueller@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] iputils: update to 20210202
Date: Tue, 25 May 2021 21:43:37 +0200
Message-ID: <14fc4cde-22fb-286a-2af0-d63b01d9195c@ipfire.org>
In-Reply-To: <E41DFC34-84F8-45CF-968C-879B2BD3E15A@ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1295442745413761479=="
List-Id: <development.lists.ipfire.org>

--===============1295442745413761479==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Jup. At least it is not Rust or Go - although I am sure somebody on this plan=
et is already
working on porting /bin/ping to one of those languages.

The trick in IT security is to lower your expectations so far that reality ca=
nnot disappoint
you anymore, a colleague told me the other day. Well, well...

> Another one that migrated to meson? How sad...
>=20
>> On 23 May 2021, at 16:40, Peter M=C3=BCller <peter.mueller(a)ipfire.org> w=
rote:
>>
>> The changelog between version "s20160803" is too large to include it
>> here, please refer to https://github.com/iputils/iputils/releases for a
>> human-readable version.
>>
>> Due to build system changes, single binaries cannot be compiled by
>> running "make [program]" anymore, updated rootfiles to reflect that
>> change.
>>
>> 20210202's version of /usr/bin/ping is bug-compatible to s20160803's
>> one, hence does not cause trouble in ~/src/ppp/ip-up. Tested, works.
>>
>> Signed-off-by: Peter M=C3=BCller <peter.mueller(a)ipfire.org>
>> ---
>> config/rootfiles/common/iputils | 12 ++++++++++++
>> lfs/iputils                     | 10 +++++-----
>> 2 files changed, 17 insertions(+), 5 deletions(-)
>>
>> diff --git a/config/rootfiles/common/iputils b/config/rootfiles/common/ipu=
tils
>> index 3484cbb24..37e0cb603 100644
>> --- a/config/rootfiles/common/iputils
>> +++ b/config/rootfiles/common/iputils
>> @@ -1,3 +1,15 @@
>> bin/ping
>> +#etc/rc.d/init.d/ninfod.sh
>> +#usr/bin/arping
>> +#usr/bin/clockdiff
>> usr/bin/ping
>> usr/bin/tracepath
>> +#usr/sbin/ninfod
>> +#usr/sbin/rdisc
>> +#usr/share/locale/de/LC_MESSAGES/iputils.mo
>> +#usr/share/locale/fr/LC_MESSAGES/iputils.mo
>> +#usr/share/locale/ja/LC_MESSAGES/iputils.mo
>> +#usr/share/locale/pt_BR/LC_MESSAGES/iputils.mo
>> +#usr/share/locale/tr/LC_MESSAGES/iputils.mo
>> +#usr/share/locale/uk/LC_MESSAGES/iputils.mo
>> +#usr/share/locale/zh_CN/LC_MESSAGES/iputils.mo
>> diff --git a/lfs/iputils b/lfs/iputils
>> index ae692df7a..01ed1fccd 100644
>> --- a/lfs/iputils
>> +++ b/lfs/iputils
>> @@ -24,7 +24,7 @@
>>
>> include Config
>>
>> -VER        =3D s20160308
>> +VER        =3D 20210202
>>
>> THISAPP    =3D iputils-$(VER)
>> DL_FILE    =3D $(THISAPP).tar.gz
>> @@ -40,7 +40,7 @@ objects =3D $(DL_FILE)
>>
>> $(DL_FILE) =3D $(DL_FROM)/$(DL_FILE)
>>
>> -$(DL_FILE)_MD5 =3D a3ff521e21a383f562c2f06472c5bca0
>> +$(DL_FILE)_MD5 =3D ba8f64ba70ac4717a1ae6746d452b3da
>>
>> install : $(TARGET)
>>
>> @@ -70,9 +70,9 @@ $(subst %,%_MD5,$(objects)) :
>> $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
>> 	@$(PREBUILD)
>> 	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
>> -	cd $(DIR_APP) && make ping tracepath
>> -	cd $(DIR_APP) && install -m 0755 ping /usr/bin
>> -	cd $(DIR_APP) && install -m 0755 tracepath /usr/bin
>> +	cd $(DIR_APP) && meson builddir -Dprefix=3D/usr
>> +	cd $(DIR_APP) && make $(MAKETUNING)
>> +	cd $(DIR_APP) && make install
>>
>> 	# Allow execution of /usr/bin/ping by other users than "root"
>> 	setcap cap_net_raw+ep /usr/bin/ping
>> --=20
>> 2.26.2
>=20

--===============1295442745413761479==--