Date: Tue, 3 Sep 2002 14:25:07 +0700 (NOVST) From: nnd@mail.nsk.ru (Nickolay Dudorov) To: stable@freebsd.org Subject: Re: make search cannot find anything Message-ID: <200209030725.g837P7bv029000@nnd.itfs.nsk.su> In-Reply-To: <20020903150343.B4078@svzserv.kemerovo.su>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <20020903150343.B4078@svzserv.kemerovo.su>
Eugene Grosbein <eugen@www.svzserv.kemerovo.su> 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209030725.g837P7bv029000>
