Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Nov 2019 18:57:13 +0100
From:      Florian Smeets <flo@smeets.xyz>
To:        Jan Sucan <sucanjan@gmail.com>, Alan Somers <asomers@freebsd.org>, "Conrad E. Meyer" <cem@freebsd.org>
Cc:        svn-src-head <svn-src-head@freebsd.org>, Hiroki Sato <hrs@allbsd.org>, svn-src-all <svn-src-all@freebsd.org>, src-committers <src-committers@freebsd.org>
Subject:   Re: svn commit: r351423 - in head: . sbin/ping6 sbin/ping6/tests
Message-ID:  <8259e67b-2f02-c02e-8aae-cbc8da896559@smeets.xyz>
In-Reply-To: <379c3378-f9dd-4d6b-35ca-fa1ac7e6386b@gmail.com>
References:  <201908231522.x7NFMLuJ068037@repo.freebsd.org> <20190826.042056.1329861772202588895.hrs@allbsd.org> <CAOtMX2hLxx=SKvh1ZoiMAcagQJjPaRSvkML9J%2BBgpQsz5uNNbw@mail.gmail.com> <20190826.050922.1810654532466043358.hrs@allbsd.org> <CAOtMX2jhmV%2BqRH%2BU1jMzdXsnckAvkzJhQiU6H65jUjdpK%2BXU3Q@mail.gmail.com> <CAG6CVpUULfa9KYWWRLwDxVS6UJ-s3GRGAcjXPo4a5yJjYRG_7w@mail.gmail.com> <CAOtMX2hjaYq%2B8_S0yXeAJutF2gNy3wgivmvOd=OV-iTByUdYKA@mail.gmail.com> <379c3378-f9dd-4d6b-35ca-fa1ac7e6386b@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 26.08.19 06:28, Jan Sucan wrote:
> Hello,
> 
> I can implement it. I suppose that ping6's manual page should be kept it 
> this case.
> 
> I was also thinking about printing a warning for each option renamed to 
> lead a willing user to use the new unified option set of ping. It could 
> be either only with -v, or by default and suppressed with -q. Or should 
> the option translation be completely transparent?

Is there an update on this? I found out the hard way today, as I updated 
my icinga2 host from an revision before this change to a current 
revision. In this case it's not as easy as fixing a script e.g. 
net-mgmt/monitoring-plugins check_ping command calls /sbin/ping6 with -X.

Will we get a ping6 that is fully backward compatible, or should we 
start fixing ports?

Thanks,
Florian

> 
> -Jan
> 
> On 26. 8. 2019 1:58, Alan Somers wrote:
>> Jan (please keep him CCed on replies) has been musing about the same
>> thing.  That might satisfy everyone.  Jan, would it be straightforward
>> to implement?
>> -Alan
>>
>> On Sun, Aug 25, 2019 at 5:51 PM Conrad Meyer <cem@freebsd.org> wrote:
>>> Hi Alan, Hiroki,
>>>
>>> It would be pretty easy to install a `ping6` link to the `ping(8)`
>>> binary with different option parsing (conditional on argv[0]).  That
>>> removes most of the issues of code and space duplication, I think?
>>> And the goal would be for the 'ping6' name to retain option
>>> compatibility with historical ping6.
>>>
>>> It's not an uncommon pattern; for example, 'id', 'groups', and
>>> 'whoami' are all a single binary with multiple linked names.  Another
>>> example is Clang, which provides 'cc', 'c++', 'clang', 'clang-cpp',
>>> 'clang++' and 'cpp' links to the same inode — and those have very
>>> different behavior depending on argv[0].
>>>
>>> It's less work than forcing the ping6 compatibility crowd to create a
>>> port and doesn't hurt ping(8) much, AFAICT.  Is it an acceptable
>>> middle ground?
>>>
>>> Best,
>>> Conrad
>>>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8259e67b-2f02-c02e-8aae-cbc8da896559>