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
F107993280: D13019.id35006.diff
Mon, Jan 20, 7:33 AM
Unknown Object (File)
Wed, Jan 1, 5:53 PM
Unknown Object (File)
Sun, Dec 29, 6:39 PM
Unknown Object (File)
Dec 13 2024, 6:49 PM
Unknown Object (File)
Nov 30 2024, 12:58 AM
Unknown Object (File)
Nov 30 2024, 12:54 AM
Unknown Object (File)
Nov 30 2024, 12:54 AM
Unknown Object (File)
Nov 30 2024, 12:39 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.