Page MenuHomeFreeBSD

Fix QT_PREFIX removal fallout: use LOCALBASE instead of PREFIX
Needs ReviewPublic

Authored by AMDmi3 on Mar 15 2017, 9:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 17 2024, 2:58 PM
Unknown Object (File)
Oct 12 2024, 7:23 PM
Unknown Object (File)
Oct 2 2024, 9:36 PM
Unknown Object (File)
Sep 26 2024, 10:23 PM
Unknown Object (File)
Sep 26 2024, 10:23 PM
Unknown Object (File)
Sep 26 2024, 9:25 PM
Unknown Object (File)
Sep 23 2024, 12:09 AM
Unknown Object (File)
Sep 18 2024, 4:05 PM
Subscribers

Details

Reviewers
tcberner
rakuco
Group Reviewers
O5: Ports Framework(Owns No Changed Paths)
portmgr
Summary

In D8825 which removed QT_PREFIX it was incorrectly replaced with PREFIX, while it should've been LOCALBASE in most places. Fix this.

First version of this is a raw mechanical patch, not yet properly tested.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 8056
Build 8247: arc lint + arc unit

Event Timeline

Can you explain what the issue with using PREFIX over LOCALBASE is?

Can you explain what the issue with using PREFIX over LOCALBASE is?

When you refer to what current port installs, you must use PREFIX.
When you refer to files installed by other ports, you must use LOCALBASE.

It's a bit more complex when port wants to install files to QT owned dirs, and looking at plist changes I suspect this happens somehere. If that's the case, plist should use full paths.

Looks sane to me, though as you said it might be tricky for ports installing things into Qt-owned directories. Is there an easy way to test this in, say, Poudriere?

Mk/bsd.qt.mk
273

If you really want to be thorough here, this likely needs to be ${PREFIX} for ports setting QT_DIST (since they're Qt ports installing into Qt directories), and ${LOCALBASE} for others.