NetBSD Problem Report #26861

Received: (qmail 24252 invoked by uid 605); 5 Sep 2004 23:21:23 -0000
Message-Id: <200409052319.i85NJvO16044@pepew.1st.de>
Date: Mon, 6 Sep 2004 01:19:57 +0200 (MEST)
From: mlelstv@serpens.de
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: mlelstv@serpens.de
To: gnats-bugs@gnats.netbsd.org
Subject: ssh-askpass installs into /usr/pkg
X-Send-Pr-Version: 3.95

>Number:         26861
>Category:       bin
>Synopsis:       base ssh does not find ssh-askpass in /usr/pkg
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 05 23:22:01 +0000 2004
>Closed-Date:    
>Last-Modified:  Tue Apr 24 07:25:00 +0000 2012
>Originator:     Michael van Elst
>Release:        NetBSD 1.6.2_STABLE
>Organization:
-- 
                                Michael van Elst
Internet: mlelstv@serpens.de
                                "A potential Snark may lurk in every tree."
>Environment:


System: NetBSD pepew 1.6.2_STABLE NetBSD 1.6.2_STABLE (PEPEW) #16: Sun Aug 29 02:03:43 MEST 2004 src@pepew:/amd/fud/d/0/src/sys/arch/i386/compile/PEPEW i386
Architecture: i386
Machine: i386
>Description:
ssh-askpass from pkgsrc now installs into /usr/pkg instead of
/usr/X11R6. As a result it is no longer found by the ssh-client
that uses the hardcoded path /usr/X11R6/bin/ssh-askpass.

>How-To-Repeat:
Build ssh-askpass from pkgsrc and try to use it.

>Fix:
Either restore the old location or fix the ssh-client from base source.

>Release-Note:
>Audit-Trail:

From: Soren Jacobsen <snj@NetBSD.org>
To: mlelstv@serpens.de
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/26861: ssh-askpass installs into /usr/pkg
Date: Sun, 5 Sep 2004 21:01:53 -0700

 To restore the old behavior, you can choose to not use xpkgwedge.  Also, I
 see there's the environment variable SSH_ASKPASS.  Does that do what you
 want?

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: mlelstv@serpens.de
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/26861: ssh-askpass installs into /usr/pkg
Date: Mon, 6 Sep 2004 08:55:32 -0700 (PDT)

 On Mon, 6 Sep 2004 mlelstv@serpens.de wrote:

 > >Description:
 > ssh-askpass from pkgsrc now installs into /usr/pkg instead of
 > /usr/X11R6. As a result it is no longer found by the ssh-client
 > that uses the hardcoded path /usr/X11R6/bin/ssh-askpass.
 >
 > >How-To-Repeat:
 > Build ssh-askpass from pkgsrc and try to use it.
 >
 > >Fix:
 > Either restore the old location or fix the ssh-client from base source.

 This doesn't seem like a pkgsrc bug.

 One workaround for you is to set the SSH_ASKPASS environment variable. See
 ssh and ssh-add man pages.

 Another fix would be to change that _PATH_SSH_ASKPASS_DEFAULT default in
 the /usr/src/crypto/dist/ssh/pathnames.h

 Should this category for this PR be changed?

  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links
 	  	 	 http://www.bsdnewsletter.com/


From: Michael van Elst <mlelstv@serpens.de>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/26861: ssh-askpass installs into /usr/pkg
Date: Mon, 6 Sep 2004 18:15:57 +0200

 On Mon, Sep 06, 2004 at 08:55:32AM -0700, Jeremy C. Reed wrote:
 > On Mon, 6 Sep 2004 mlelstv@serpens.de wrote:
 > 
 > > >Description:
 > > ssh-askpass from pkgsrc now installs into /usr/pkg instead of
 > > /usr/X11R6. As a result it is no longer found by the ssh-client
 > > that uses the hardcoded path /usr/X11R6/bin/ssh-askpass.
 > >
 > > >How-To-Repeat:
 > > Build ssh-askpass from pkgsrc and try to use it.
 > >
 > > >Fix:
 > > Either restore the old location or fix the ssh-client from base source.
 > 
 > This doesn't seem like a pkgsrc bug.
 > 
 > One workaround for you is to set the SSH_ASKPASS environment variable. See
 > ssh and ssh-add man pages.
 > 
 > Another fix would be to change that _PATH_SSH_ASKPASS_DEFAULT default in
 > the /usr/src/crypto/dist/ssh/pathnames.h
 > 
 > Should this category for this PR be changed?


 pkgsrc did change, the package ssh-askpass used to store
 the binary in /usr/X11R6/bin/ssh-askpass, and now it doesn't.

 Whoever made that decision should have an answer what is correct
 and how to deal with it.

 I guess for compatibility reasons it is better to restore the behaviour
 of the package, but there might be other reasons.


 Greetings,
 -- 
                                 Michael van Elst
 Internet: mlelstv@serpens.de
                                 "A potential Snark may lurk in every tree."
State-Changed-From-To: open->feedback
State-Changed-By: wiz@netbsd.org
State-Changed-When: Thu, 17 Mar 2005 15:52:41 +0000
State-Changed-Why:
The openssh package Makefile has a check for the existence of
X11BASE/bin/ssh-askpass, and if that does not exists, falls
back to X11PREFIX/bin/ssh-askpass, which should point to the
ssh-askpass package's binary file.
Does a part of this not work, or can we close this PR?


Responsible-Changed-From-To: pkg-manager->bin-bug-people
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Thu, 17 Mar 2005 22:44:25 +0000
Responsible-Changed-Why:
base system problem.


State-Changed-From-To: feedback->open
State-Changed-By: wiz@netbsd.org
State-Changed-When: Thu, 17 Mar 2005 22:44:25 +0000
State-Changed-Why:
ssh-askpass from pkgsrc isn't going to go back to /usr/X11R6,
so the ssh client in the base system will have to be enhanced
somehow.


From: Thomas Klausner <wiz@netbsd.org>
To: Michael van Elst <mlelstv@serpens.de>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/26861
Date: Thu, 17 Mar 2005 23:42:28 +0100

 On Thu, Mar 17, 2005 at 11:38:53PM +0100, Michael van Elst wrote:
 > The openssh package tries to be smart, but the base source openssh
 > doesn't.
 > 
 > % strings /usr/bin/ssh | grep ssh-askpass
 > /usr/X11R6/bin/ssh-askpass

 Ok, so I'll refile as a base system PR.
  Thomas

From: Michael van Elst <mlelstv@serpens.de>
To: wiz@netbsd.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,
	gnats-admin@netbsd.org
Subject: Re: pkg/26861
Date: Thu, 17 Mar 2005 23:38:53 +0100

 On Thu, Mar 17, 2005 at 03:52:42PM +0000, wiz@netbsd.org wrote:

 > The openssh package Makefile has a check for the existence of
 > X11BASE/bin/ssh-askpass, and if that does not exists, falls
 > back to X11PREFIX/bin/ssh-askpass, which should point to the
 > ssh-askpass package's binary file.
 > Does a part of this not work, or can we close this PR?

 The openssh package tries to be smart, but the base source openssh
 doesn't.

 % strings /usr/bin/ssh | grep ssh-askpass
 /usr/X11R6/bin/ssh-askpass

 -- 
                                 Michael van Elst
 Internet: mlelstv@serpens.de
                                 "A potential Snark may lurk in every tree."

From: Martin Husemann <martin@duskware.de>
To: wiz@netbsd.org
Cc: gnats-bugs@NetBSD.org
Subject: Re: bin/26861
Date: Fri, 18 Mar 2005 09:07:58 +0100

 On Thu, Mar 17, 2005 at 10:44:26PM +0000, wiz@netbsd.org wrote:
 > Responsible-Changed-Why:
 > base system problem.

 One could argue there is no problem with the base system in itself here ;-)

 Martin

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 24 Apr 2012 03:43:00 +0000
State-Changed-Why:
Is this still a problem?
(I just updated the synopsis from the discussion in the PR)


From: Michael van Elst <mlelstv@serpens.de>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org, dholland@NetBSD.org
Subject: Re: bin/26861 (base ssh does not find ssh-askpass in /usr/pkg)
Date: Tue, 24 Apr 2012 08:34:02 +0200

 On Tue, Apr 24, 2012 at 03:43:01AM +0000, dholland@NetBSD.org wrote:
 > Synopsis: base ssh does not find ssh-askpass in /usr/pkg
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Tue, 24 Apr 2012 03:43:00 +0000
 > State-Changed-Why:
 > Is this still a problem?
 > (I just updated the synopsis from the discussion in the PR)

 The problem is the same, the solution (using SSH_ASKPASS) is the same.
 A similar problem exists for xauth where the solution is to configure
 the sshd accordingly for a pkgsrc based X11.

 I don't see how the problem could be solved without such manual
 configuration. ssh prefers to have a single hard coded default,
 a search path is probably considered a security issue.


 Greetings,
 -- 
                                 Michael van Elst
 Internet: mlelstv@serpens.de
                                 "A potential Snark may lurk in every tree."

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 24 Apr 2012 07:14:52 +0000
State-Changed-Why:
still broken.


From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/26861 (base ssh does not find ssh-askpass in /usr/pkg)
Date: Tue, 24 Apr 2012 07:24:39 +0000

 On Tue, Apr 24, 2012 at 06:35:03AM +0000, Michael van Elst wrote:
  >  > Synopsis: base ssh does not find ssh-askpass in /usr/pkg
  >  > 
  >  > State-Changed-From-To: open->feedback
  >  > State-Changed-By: dholland@NetBSD.org
  >  > State-Changed-When: Tue, 24 Apr 2012 03:43:00 +0000
  >  > State-Changed-Why:
  >  > Is this still a problem?
  >  > (I just updated the synopsis from the discussion in the PR)
  >  
  >  The problem is the same, the solution (using SSH_ASKPASS) is the same.
  >  A similar problem exists for xauth where the solution is to configure
  >  the sshd accordingly for a pkgsrc based X11.
  >  
  >  I don't see how the problem could be solved without such manual
  >  configuration. ssh prefers to have a single hard coded default,
  >  a search path is probably considered a security issue.

 At some point we're probably going to have to come up with a
 reasonable way to tell things in base where pkgsrc LOCALBASE is.

 Until then, ISTM that the right thing to do is make it possible to
 specify the path in /etc/ssh and default to /usr/pkg.

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.