[Bug 216146] [patch] ports-mgmt/pkg: Non-root make install botches UIDs with pkg-1.9.4

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 16 16:27:37 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216146

            Bug ID: 216146
           Summary: [patch] ports-mgmt/pkg: Non-root make install botches
                    UIDs with pkg-1.9.4
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: wjenkner at inode.at
                CC: bapt at FreeBSD.org

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?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list