Bug 190233 - Ownership macros in pkg-plist broken for old pkg_* tools under certain circumstances
Summary: Ownership macros in pkg-plist broken for old pkg_* tools under certain circum...
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-26 07:00 UTC by Thomas Zander
Modified: 2014-08-04 11:57 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Zander freebsd_committer freebsd_triage 2014-05-26 07:00:00 UTC
Consider a pkg-plist that contains the following section to create empty dirs under /var/.../:

        @owner freevo
        @group freevo
        @unexec rmdir /var/log/freevo 2>/dev/null || true
        @exec mkdir /var/log/freevo
        @unexec rmdir /var/run/freevo 2>/dev/null || true
        @exec mkdir /var/run/freevo
        @owner
        @group

This works as desired on pkgng-enabled systems. It does NOT work on old pkg_* tools based systems. On these, both @owner and @group are simply ignored.

How-To-Repeat: Test the plist above or something comparable under systems not yet migrated to pkgng.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-06-02 01:38:39 UTC
Infrastructure PR.
Comment 2 Antoine Brodin freebsd_committer freebsd_triage 2014-06-02 07:56:19 UTC
I think it affects also pkgng, see:
https://github.com/freebsd/pkg/issues/730
Using explicit @owner root/@group wheel seems to be the best way
Comment 3 Antoine Brodin freebsd_committer freebsd_triage 2014-06-04 16:16:20 UTC
Assign to portmgr
Comment 4 Baptiste Daroussin freebsd_committer freebsd_triage 2014-08-04 11:57:57 UTC
This is by design, while we will change that in pkg(8) anyway