From chopra@opiate.soulwax.net  Fri Jan  9 11:27:50 2004
Return-Path: <chopra@opiate.soulwax.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 36EDE16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  9 Jan 2004 11:27:50 -0800 (PST)
Received: from opiate.soulwax.net (i216-58-30-170.avalonworks.net [216.58.30.170])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 402F143D2D
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  9 Jan 2004 11:27:49 -0800 (PST)
	(envelope-from chopra@opiate.soulwax.net)
Received: by opiate.soulwax.net (Postfix, from userid 1001)
	id 7034D405B; Fri,  9 Jan 2004 14:20:20 -0500 (EST)
Message-Id: <20040109192020.7034D405B@opiate.soulwax.net>
Date: Fri,  9 Jan 2004 14:20:20 -0500 (EST)
From: Munish Chopra <chopra@soulwax.net>
Reply-To: Munish Chopra <chopra@soulwax.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: eugos@gmx.net
Subject: net/psi Makefile errors 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         61139
>Category:       ports
>Synopsis:       net/psi Makefile errors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 09 11:30:10 PST 2004
>Closed-Date:    Sun Jan 11 11:52:27 CST 2004
>Last-Modified:  Sun Jan 11 11:52:27 CST 2004
>Originator:     Munish Chopra
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD opiate.soulwax.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Mon Jan 5 18:23:06 EST 2004 chopra@opiate.soulwax.net:/usr/obj/usr/src/sys/OPIATE i386


	
>Description:
	This builds on top of ports/61138.
	The post-install attempts to strip the wrong binary. It's looking to 
	strip /usr/X11R6/bin/psi, but psi is installed into /usr/local/.
	Fixing CONFIGURE_ARGS to --prefix=${X11BASE} instead of 
	--prefix=${PREFIX} should probably fix it, though I don't have time 
	to test. Hope this is enough to run with.
	Maintainer cc'ed. 
	
>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:

From: Eugene Ossintsev <eugos@gmx.net>
To: freebsd-gnats-submit@FreeBSD.org, chopra@soulwax.net
Cc:  
Subject: Re: ports/61139: net/psi Makefile errors
Date: Fri, 09 Jan 2004 21:45:47 +0100

 Hello,
 
 psi might not be installed under /usr/local/bin . Could you check it again 
 please? E.g. so: "which psi".
 
 "--prefix=${PREFIX}" is used quite correctly. See "USE_X_PREFIX=yes" in 
 net/psi's Makefile .
 
 -- 
 Eugene Ossintsev
 

From: Munish Chopra <chopra@soulwax.net>
To: Eugene Ossintsev <eugos@gmx.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/61139: net/psi Makefile errors
Date: Fri, 9 Jan 2004 16:05:58 -0500

 On 2004-01-09 21:45 +0000, Eugene Ossintsev wrote:
 > Hello,
 > 
 > psi might not be installed under /usr/local/bin . Could you check it again 
 > please? E.g. so: "which psi".
 >
 
 It's in /usr/local/bin/psi. I'm under the impression that since it's an
 X program though, it should be going into /usr/X11R6/bin.
  
 > "--prefix=${PREFIX}" is used quite correctly. See "USE_X_PREFIX=yes" in 
 > net/psi's Makefile .
 > 
 
 Yeah I figured that would cover it, but that still doesn't explain this:
 
 ...
 /usr/bin/strip /usr/X11R6/bin/psi
 /usr/bin/strip: /usr/X11R6/bin/psi: No such file or directory
 *** Error code 1
 
 Thanks for the quick responses!
 
 -- 
 Munish Chopra

From: Eugene Ossintsev <eugos@gmx.net>
To: Munish Chopra <chopra@soulwax.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/61139: net/psi Makefile errors
Date: Fri, 09 Jan 2004 22:37:58 +0100

 > It's in /usr/local/bin/psi. I'm under the impression that since it's an X
 > program though, it should be going into /usr/X11R6/bin.
 
 It's strange. It definitely must be under /usr/X11R6/bin . Hmm... I don't
 understand why it is not so on you machine. :-/
 
 >> "--prefix=${PREFIX}" is used quite correctly. See "USE_X_PREFIX=yes" in 
 >> net/psi's Makefile .
 
 > Yeah I figured that would cover it, but that still doesn't explain this:
 > 
 > ... /usr/bin/strip /usr/X11R6/bin/psi /usr/bin/strip: /usr/X11R6/bin/psi: No
 > such file or directory *** Error code 1
 
 Some lines from net/psi's Makefile:
 
 USE_X_PREFIX=	yes
 
 CONFIGURE_ARGS=	--prefix=${PREFIX}
 
 post-install:
          ${STRIP_CMD} ${PREFIX}/bin/psi
 
 So, it is installed to ${PREFIX} and stripped there, too.
 
 > Thanks for the quick responses!
 
 You're welcome!
 
 -- 
 Eugene Ossintsev
 

From: Munish Chopra <chopra@soulwax.net>
To: Eugene Ossintsev <eugos@gmx.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/61139: net/psi Makefile errors
Date: Fri, 9 Jan 2004 18:45:38 -0500

 On 2004-01-09 22:37 +0000, Eugene Ossintsev wrote:
 > >It's in /usr/local/bin/psi. I'm under the impression that since it's an X
 > >program though, it should be going into /usr/X11R6/bin.
 > 
 > It's strange. It definitely must be under /usr/X11R6/bin . Hmm... I don't
 > understand why it is not so on you machine. :-/
 > 
 
 I don't understand how it can be that on anyone's machine at all. I've
 had several friends attempt this just in case I was on crack, all
 experienced the same thing.
 
 You need to create patches for some of the psi Makefiles. Check out
 src/Makefile especially, that seems to be the main culprit. All kinds of
 garbage is hardcoded there. If you're lukcy all you need to do is add a
 bunch of arguments to the configure script.
 
 > >>"--prefix=${PREFIX}" is used quite correctly. See "USE_X_PREFIX=yes" in 
 > >>net/psi's Makefile .
 > 
 > >Yeah I figured that would cover it, but that still doesn't explain this:
 > >
 > >... /usr/bin/strip /usr/X11R6/bin/psi /usr/bin/strip: /usr/X11R6/bin/psi: 
 > >No
 > >such file or directory *** Error code 1
 > 
 > Some lines from net/psi's Makefile:
 > 
 > USE_X_PREFIX=	yes
 > 
 > CONFIGURE_ARGS=	--prefix=${PREFIX}
 > 
 > post-install:
 >         ${STRIP_CMD} ${PREFIX}/bin/psi
 > 
 > So, it is installed to ${PREFIX} and stripped there, too.
 
 Well, it would be if the rest of the Makefiles play along. I suggest
 playing with the configure arguments, that should do it from what I can
 tell. I'd be rather surprised if it didn't, the psi folks seem quite
 competent.
 
 -- 
 Munish Chopra

From: Eugene Ossintsev <eugos@gmx.net>
To: freebsd-gnats-submit@FreeBSD.org, chopra@soulwax.net,
	valeks@novel-il.ru
Cc:  
Subject: Re: ports/61139: net/psi Makefile errors
Date: Sat, 10 Jan 2004 12:36:30 +0100

 As I see, looking at PR http://www.freebsd.org/cgi/query-pr.cgi?pr=37046 the 
 problem is really in expr.
 
 Your thoughts about it?
 
 
 -- 
 Eugene Ossintsev
 
State-Changed-From-To: open->closed 
State-Changed-By: petef 
State-Changed-When: Sun Jan 11 11:52:25 CST 2004 
State-Changed-Why:  
This is fixed after committing ports/61175, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=61139 
>Unformatted:
