Page MenuHomeFreeBSD

Fix problem with "make -C /usr/ports/ search name=text"
ClosedPublic

Authored by rum1cro_yandex.ru on Nov 9 2017, 5:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 11 2024, 1:02 PM
Unknown Object (File)
Dec 28 2023, 3:35 AM
Unknown Object (File)
Dec 25 2023, 9:22 AM
Unknown Object (File)
Dec 25 2023, 9:22 AM
Unknown Object (File)
Dec 25 2023, 9:10 AM
Unknown Object (File)
Oct 15 2023, 10:06 AM
Unknown Object (File)
Oct 12 2023, 9:43 AM
Unknown Object (File)
Sep 17 2023, 11:23 AM
Subscribers

Details

Summary

https://lists.freebsd.org/pipermail/freebsd-current/2017-November/067386.html
[tiger at laptop]:/>make -C /usr/ports/ search name=teeworlds display=name,path,info
[tiger at laptop]:/>
but
[tiger at laptop]:/>cd /usr/ports/
[tiger at laptop]:/usr/ports>make search name=teeworlds display=name,path,info
Port: teeworlds-0.6.4_4
Path: /usr/ports/games/teeworlds
Info: Platform game featuring buggers equipped with weapons

Test Plan

Should work:
make -C /usr/ports/ search name=teeworlds

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

[/usr/src] # make -C bin/sh/ -V .CURDIR
/usr/src/bin/sh
[/usr/src] # fmake -C bin/sh/ -V .CURDIR
/usr/src/bin/sh
[/usr/src] # fmake -C bin/sh//// -V .CURDIR
/usr/src/bin/sh
[/usr/src] # bmake -C bin/sh//// -V .CURDIR
/usr/src/bin/sh

I can't seem to find any .CURDIR case that isn't right regarding ///.

[/tmp/src/bin/sh] # make -V .CURDIR
/usr/src/bin/sh
[/tmp/src/bin/sh] # cd /tmp/src/bin/sh////
[/tmp/src/bin/sh] # make -V .CURDIR
/usr/src/bin/sh
[/tmp/src/bin/sh] # bmake -V .CURDIR
/tmp/src/bin/sh

Aha here is a bad case through a symlink with a really old bmake...

[/tmp/src/bin/sh] # bmake -V MAKE_VERSION
20141111

The bmake in head doesn't have the problem.

~/git/freebsd3/bin/sh # make -V .CURDIR
/root/git/freebsd2/bin/sh
~/git/freebsd3/bin/sh # make -V MAKE_VERSION
20170720
This revision is now accepted and ready to land.Nov 9 2017, 8:53 PM
This revision was automatically updated to reflect the committed changes.