Bug 216146 - [patch] ports-mgmt/pkg: Non-root make install botches UIDs with pkg-1.9.4
Summary: [patch] ports-mgmt/pkg: Non-root make install botches UIDs with pkg-1.9.4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-16 16:27 UTC by wjenkner
Modified: 2017-11-21 16:29 UTC (History)
3 users (show)

See Also:


Attachments
0001-Try-to-fix-UIDs-for-non-root-port-builds.patch (1.45 KB, patch)
2017-01-16 16:31 UTC, wjenkner
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description wjenkner 2017-01-16 16:27:37 UTC
Suppose INSTALL_AS_USER is not set but that /usr/ports is set up
so that you can build ports as non-root (say, adm) user belonging
to the wheel group, e.g., by `chown -R adm /usr/ports`.

Running `make` in a ports directory as adm user stages files owned
by adm, of course, but `make package` correctly creates files in
the resulting tarball which are owned by root or whatever the plist
specifies.

The point of this bug report is that `make install` used to behave
in the same way before 1.9.4 but now it install files owned by adm.

Perhaps, something like the attached patch is needed?
Comment 1 wjenkner 2017-01-16 16:31:42 UTC
Created attachment 178958 [details]
0001-Try-to-fix-UIDs-for-non-root-port-builds.patch

Suggestion for fixing non-root make install
Comment 2 Steve Wills freebsd_committer freebsd_triage 2017-11-21 16:29:47 UTC
This was committed:

https://github.com/freebsd/pkg/commit/517752a456d2ceaf05789afe39aee08d022e877e

Closing PR, thanks! Sorry the PR took so long to close.