Re: Future of /usr/bin/which in Debian?

2021-09-27 Thread Jonathan Dowland
Michael Stone wrote: I think it doesn't matter how many which implementations are in debian. If you want something with specific portable semantics, just use command -v. The remaining consumers of which are either programs that (ipso facto) don't care about semantic corner cases or are humans

Re: Future of /usr/bin/which in Debian?

2021-09-22 Thread Fabrice Bauzac-Stehly
The Wanderer writes: > On 2021-09-21 at 16:16, Michael Stone wrote: >> On Tue, Sep 21, 2021 at 09:00:52AM +0100, Jonathan Dowland wrote: >> If you want something with specific portable semantics, just >> use command -v. > I think I've seen that suggested a lot as an alternative for

Re: Future of /usr/bin/which in Debian?

2021-09-21 Thread Russ Allbery
The Wanderer writes: > On 2021-09-21 at 16:16, Michael Stone wrote: >> I think it doesn't matter how many which implementations are in >> debian. If you want something with specific portable semantics, just >> use command -v. > I think I've seen that suggested a lot as an alternative for

Re: Future of /usr/bin/which in Debian?

2021-09-21 Thread The Wanderer
On 2021-09-21 at 16:16, Michael Stone wrote: > On Tue, Sep 21, 2021 at 09:00:52AM +0100, Jonathan Dowland wrote: > >> On Mon, Sep 20, 2021 at 11:02:49AM -0400, Michael Stone wrote: >> >>> It seems to install to /usr/bin/which.gnu, implying that you >>> could upload /usr/bin/which.bsd if you so

Re: Future of /usr/bin/which in Debian?

2021-09-21 Thread Nicholas D Steeves
Michael Stone writes: > On Tue, Sep 21, 2021 at 09:00:52AM +0100, Jonathan Dowland wrote: >>On Mon, Sep 20, 2021 at 11:02:49AM -0400, Michael Stone wrote: >>>It seems to install to /usr/bin/which.gnu, implying that you could >>>upload /usr/bin/which.bsd if you so desire; what's the issue? >>

Re: Future of /usr/bin/which in Debian?

2021-09-21 Thread Michael Stone
On Tue, Sep 21, 2021 at 09:00:52AM +0100, Jonathan Dowland wrote: On Mon, Sep 20, 2021 at 11:02:49AM -0400, Michael Stone wrote: It seems to install to /usr/bin/which.gnu, implying that you could upload /usr/bin/which.bsd if you so desire; what's the issue? I think we should have just one

Re: Future of /usr/bin/which in Debian?

2021-09-21 Thread Jonathan Dowland
On Mon, Sep 20, 2021 at 11:02:49AM -0400, Michael Stone wrote: It seems to install to /usr/bin/which.gnu, implying that you could upload /usr/bin/which.bsd if you so desire; what's the issue? I think we should have just one which implementation in the archive. We should (have) pick(ed) the

Re: Future of /usr/bin/which in Debian?

2021-09-20 Thread Michael Stone
On Mon, Sep 20, 2021 at 02:38:06PM +0100, Jonathan Dowland wrote: On Fri, Aug 20, 2021 at 11:03:50AM +0800, YunQiang Su wrote: For such a simple tool, do we really need such many versions? At least you've asked the question. I'd love to think that there was a proper evaluation of BSD which

Re: Future of /usr/bin/which in Debian?

2021-09-20 Thread Wookey
On 2021-09-20 04:48 +, Clint Adams wrote: > On Sun, Sep 19, 2021 at 05:32:04PM +0100, Wookey wrote: > > I must admit that I have no idea why replacing such a longstanding > > utility is deemed necessary. > > Maybe this riddle will help. > > Imagine that you are the product manager for

Re: Future of /usr/bin/which in Debian?

2021-09-20 Thread Jonathan Dowland
On Fri, Aug 20, 2021 at 11:03:50AM +0800, YunQiang Su wrote: For such a simple tool, do we really need such many versions? At least you've asked the question. I'd love to think that there was a proper evaluation of BSD which versus GNU which prior to the latter being uploaded to NEW, and

Re: Future of /usr/bin/which in Debian?

2021-09-19 Thread Clint Adams
On Sun, Sep 19, 2021 at 05:32:04PM +0100, Wookey wrote: > I must admit that I have no idea why replacing such a longstanding > utility is deemed necessary. Maybe this riddle will help. Imagine that you are the product manager for Debian `which`. According to the hatemail in my inbox, this is

Re: Future of /usr/bin/which in Debian?

2021-09-19 Thread Wookey
On 2021-08-27 16:48 -0400, Boyuan Yang wrote: > Hi, > > The GNU which package is now in NEW queue: > https://ftp-master.debian.org/new/gnu-which_2.21-1.html Thanks for this. Missing which broke bazel (at least in tensorflow) and the implementation made it fiddly to replace with as recommended.

Re: Future of /usr/bin/which in Debian?

2021-08-27 Thread 肖盛文
在 2021/8/28 上午4:54, Sean Whitton 写道: I'd rather suggest the FreeBSD which, which I'm mirroring here: https://salsa.debian.org/andrewsh/freebsd-which/ I think it's much simpler than the GNU one. The GNU which package is now in NEW queue:

Re: Future of /usr/bin/which in Debian?

2021-08-27 Thread Sean Whitton
Hello Boyuan, On Fri 27 Aug 2021 at 04:48PM -04, Boyuan Yang wrote: > Hi, > > 在 2021-08-22星期日的 17:36 +0200,Andrej Shadura写道: >> Hi, >> >> On Thu, 19 Aug 2021, at 23:17, Boyuan Yang wrote: >> > 在 2021-08-18星期三的 22:59 +0200,Geert Stappers写道: >> > > > /usr/bin/which.debianutils 0 >> > > > >> > > >

Re: Future of /usr/bin/which in Debian?

2021-08-27 Thread Boyuan Yang
Hi, 在 2021-08-22星期日的 17:36 +0200,Andrej Shadura写道: > Hi, > > On Thu, 19 Aug 2021, at 23:17, Boyuan Yang wrote: > > 在 2021-08-18星期三的 22:59 +0200,Geert Stappers写道: > > > > /usr/bin/which.debianutils 0 > > > > > > > > in postinst and so on so that FreeBSD which and GNU which and friends > > > >

Re: Future of /usr/bin/which in Debian?

2021-08-19 Thread Calum McConnell
On Fri, 2021-08-20 at 11:03 +0800, YunQiang Su wrote: > Paul Wise 于2021年8月20日周五 上午10:50写道: > > > > On Thu, Aug 19, 2021 at 9:17 PM Boyuan Yang wrote: > > > > > So we will have https://salsa.debian.org/debian/which-gnu providing > > > a binary > > > package with name "which". I will upload it to

Re: Future of /usr/bin/which in Debian?

2021-08-19 Thread YunQiang Su
Paul Wise 于2021年8月20日周五 上午10:50写道: > > On Thu, Aug 19, 2021 at 9:17 PM Boyuan Yang wrote: > > > So we will have https://salsa.debian.org/debian/which-gnu providing a binary > > package with name "which". I will upload it to the NEW queue soon. > > Some folks on IRC wanted to package the FreeBSD

Re: Future of /usr/bin/which in Debian?

2021-08-19 Thread Paul Wise
On Thu, Aug 19, 2021 at 9:17 PM Boyuan Yang wrote: > So we will have https://salsa.debian.org/debian/which-gnu providing a binary > package with name "which". I will upload it to the NEW queue soon. Some folks on IRC wanted to package the FreeBSD which too, so I suggest using which-gnu as the

Re: Future of /usr/bin/which in Debian?

2021-08-19 Thread Boyuan Yang
在 2021-08-18星期三的 22:59 +0200,Geert Stappers写道: > On Wed, Aug 18, 2021 at 07:56:05PM +, Clint Adams wrote: > > On Wed, Aug 18, 2021 at 09:48:29PM +0200, Geert Stappers wrote: > > } } I'm happy to transition /usr/bin/which to alternatives > > > Which alternatives would that be? > > > > I meant

Re: Future of /usr/bin/which in Debian?

2021-08-18 Thread Colin Watson
On Wed, Aug 18, 2021 at 08:50:04PM +0200, Ben Hutchings wrote: > Debian's implementation started out in 1995 or 1996 as a shell script > calling 'type', and remains a shell script. Not very important historical note: it's true that Debian had a "which" command from 1995/1996 or so, but the

Re: Future of /usr/bin/which in Debian?

2021-08-18 Thread Clint Adams
On Wed, Aug 18, 2021 at 10:59:08PM +0200, Geert Stappers wrote: > Please do. Make such take over possible. > It is what > https://salsa.debian.org/debian/debianutils/-/merge_requests/6#note_242172 > is asking for. Okay, you have it in debianutils 5.1-2.

Re: Future of /usr/bin/which in Debian?

2021-08-18 Thread Geert Stappers
On Wed, Aug 18, 2021 at 07:56:05PM +, Clint Adams wrote: > On Wed, Aug 18, 2021 at 09:48:29PM +0200, Geert Stappers wrote: > } } I'm happy to transition /usr/bin/which to alternatives > > Which alternatives would that be? > > I meant > > update-alternatives --install /usr/bin/which which

Re: Future of /usr/bin/which in Debian?

2021-08-18 Thread Clint Adams
On Wed, Aug 18, 2021 at 09:48:29PM +0200, Geert Stappers wrote: > Which alternatives would that be? I meant update-alternatives --install /usr/bin/which which /usr/bin/which.debianutils 0 in postinst and so on so that FreeBSD which and GNU which and friends could take over.

Re: Future of /usr/bin/which in Debian?

2021-08-18 Thread Geert Stappers
On Wed, Aug 18, 2021 at 06:53:45PM +, Clint Adams wrote: > > I'm happy to transition /usr/bin/which to alternatives Which alternatives would that be? | $ apt show alternatives | N: Unable to locate package alternatives | $ > if people are interested in packaging all of these. >

Re: Future of /usr/bin/which in Debian?

2021-08-18 Thread Clint Adams
On Wed, Aug 18, 2021 at 08:50:04PM +0200, Ben Hutchings wrote: > 3BSD first implemented 'which': > > (1979). This was csh-specific and I think it later became built-into > csh. > > FreeBSD 2.1 introduced a new non-built-in

Re: Future of /usr/bin/which in Debian?

2021-08-18 Thread Ben Hutchings
On Wed, 2021-08-18 at 22:58 +0500, Andrey Rahmatullin wrote: > On Wed, Aug 18, 2021 at 12:36:43PM -0500, Gunnar Wolf wrote: > > I agree with you, maintainer scripts should not rely on 'which' > > anymore. However, what about users? 'which' is a standard Unix tool > > since forever, and I expect

Re: Future of /usr/bin/which in Debian?

2021-08-18 Thread Andrey Rahmatullin
On Wed, Aug 18, 2021 at 12:36:43PM -0500, Gunnar Wolf wrote: > I agree with you, maintainer scripts should not rely on 'which' > anymore. However, what about users? 'which' is a standard Unix tool > since forever, and I expect many users to experience head scratching > when told it's not cool to

Re: Future of /usr/bin/which in Debian?

2021-08-18 Thread Gunnar Wolf
Clint Adams dijo [Wed, Aug 18, 2021 at 04:20:02AM +]: > > Besides, will the new "which" tool be installed in Debian by default? Since > > debianutils is Essential:yes, not providing "which" tool by default could > > probably break some existing packages. > > My personal opinion is that no one

Re: Future of /usr/bin/which in Debian?

2021-08-17 Thread Clint Adams
On Tue, Aug 17, 2021 at 09:15:24PM -0400, Boyuan Yang wrote: > Besides, will the new "which" tool be installed in Debian by default? Since > debianutils is Essential:yes, not providing "which" tool by default could > probably break some existing packages. My personal opinion is that no one should

Future of /usr/bin/which in Debian?

2021-08-17 Thread Boyuan Yang
Hi all, I just noticed that the "which" command provided by debianutils has been declared as deprecated in Debian Sid: % /usr/bin/which test /usr/bin/which: this version of 'which' is deprecated and should not be used. /usr/bin/test Obviously it was caused by the upload of debianutils/5.0-1