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
F142313451: D11032.id29164.diff
Sun, Jan 18, 11:43 AM
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
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.