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)
Thu, Nov 14, 2:59 PM
Unknown Object (File)
Oct 22 2024, 4:42 PM
Unknown Object (File)
Oct 22 2024, 4:42 PM
Unknown Object (File)
Oct 22 2024, 4:42 PM
Unknown Object (File)
Oct 22 2024, 4:21 PM
Unknown Object (File)
Oct 8 2024, 1:09 PM
Unknown Object (File)
Oct 7 2024, 8:43 PM
Unknown Object (File)
Oct 4 2024, 8:04 PM
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.