Page MenuHomeFreeBSD

Sanitize WRKSRC by replacing mulitple occurences of '//' by '/'.
ClosedPublic

Authored by tcberner on Jun 2 2017, 11:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 14, 10:27 PM
Unknown Object (File)
Sun, Jan 4, 11:11 AM
Unknown Object (File)
Wed, Dec 31, 2:47 PM
Unknown Object (File)
Dec 6 2025, 7:05 AM
Unknown Object (File)
Nov 29 2025, 6:12 AM
Unknown Object (File)
Nov 27 2025, 10:27 AM
Unknown Object (File)
Nov 24 2025, 12:05 PM
Unknown Object (File)
Nov 23 2025, 11:50 PM
Subscribers

Details

Summary

If WRKDIRPREFIX contains a trailing slash there are issues, as seen in
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199297

I assume this fix is a little bit too simple...

devel/qt5-qmake  %  make -VWRKSRC WRKDIRPREFIX=/tmp
/tmp/usr/ports/devel/qt5-qmake/work/qtbase-opensource-src-5.7.1
devel/qt5-qmake  %  make -VWRKSRC WRKDIRPREFIX=/tmp/
/tmp/usr/ports/devel/qt5-qmake/work/qtbase-opensource-src-5.7.1
devel/qt5-qmake  %  make -VWRKSRC WRKDIRPREFIX=/tmp//
/tmp/usr/ports/devel/qt5-qmake/work/qtbase-opensource-src-5.7.1

Diff Detail

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

Event Timeline

I would rather the WRKDIRPREFIX documentation at the top of the file be changed to say MUST NOT INCLUDE A TRAINLING SLASH

Does the reinplacement of // -> / impose too much of a computational hazard for it to be practical?

Add comment in the documentation, rather than sedding it.

I like that one better :-)

This revision is now accepted and ready to land.Jun 12 2017, 11:54 AM
This revision was automatically updated to reflect the committed changes.