In article <[EMAIL PROTECTED]>
Eugene Grosbein <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 03, 2002 at 01:32:18PM +0700, Vadim Ostranitsyn wrote:
> 
>> > Recently I noted that 'cd /usr/ports; make search ...' cannot find anything.
>> > Is it just me or that's really broken? 
>>    May I guess? Your /usr/ports dir is a soft-link? Right?
> 
> Yes, you are absolutely right. It's lymlink.
> 
>> Something has
>> changed in behavior of /bin/sh. Or in behavior of /usr/bin/make.
>> Let's try to do:
>> 
>> /bin/sh
>> cd /usr/ports
>> pwd
>> 
>> /bin/csh
>> cd /usr/ports
>> pwd
>> 
>>    Feel the difference :)
> 
> Yeah, /bin/sh shows /usr/ports and /bin/csh shows realpath.
> 
> And what should I do?

        You can applay the next patch in the "/usr/ports/Mk"
directory:

Index: bsd.port.subdir.mk
===================================================================
RCS file: /home/CVS/ports/Mk/bsd.port.subdir.mk,v
retrieving revision 1.43
diff -b -u -r1.43 bsd.port.subdir.mk
--- bsd.port.subdir.mk  5 Jul 2002 09:14:53 -0000       1.43
+++ bsd.port.subdir.mk  27 Aug 2002 07:42:15 -0000
@@ -252,7 +252,7 @@
 search: ${PORTSDIR}/INDEX
        @here=`pwd`; \
        cd ${PORTSDIR}; \
-       top=`pwd`; \
+       top=`pwd -P`; \
        there=`echo "$$here/" | sed s%$$top%${PORTSDIR}%`; \
        if [ -n "$$key" ]; then \
          grep $$there ${PORTSDIR}/INDEX | grep -i "${key}" | awk -F\| '{ 
printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\n\n",
 $$1, $$2, $$4, $$6, $$7, $$8, $$9); }'; \

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to