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)
Sat, Dec 6, 7:05 AM
Unknown Object (File)
Sat, Nov 29, 6:12 AM
Unknown Object (File)
Thu, Nov 27, 10:27 AM
Unknown Object (File)
Mon, Nov 24, 12:05 PM
Unknown Object (File)
Sun, Nov 23, 11:50 PM
Unknown Object (File)
Nov 2 2025, 11:21 AM
Unknown Object (File)
Oct 31 2025, 6:19 AM
Unknown Object (File)
Oct 25 2025, 1:04 AM
Subscribers

Details

Reviewers
mat
Group Reviewers
portmgr
O5: Ports Framework(Owns No Changed Paths)
Commits
rP443599: Add note, that WRKDIRPREFIX must not end in '/'.
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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 9784
Build 10221: arc lint + arc unit

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.