Ticket #18681 (closed defect: fixed)
mesa: non-root install fails trying to chown glxgears
| Reported by: | ryandesign@… | Owned by: | jeremyhu@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.0 |
| Keywords: | Cc: | andrea.damore@… | |
| Port: | mesa |
Description
mesa install fails on a non-root installation of MacPorts:
$ port install mesa ---> Fetching mesa ---> Verifying checksum(s) for mesa ---> Extracting mesa ---> Applying patches to mesa ---> Configuring mesa ---> Building mesa ---> Staging mesa into destroot Error: Target org.macports.destroot returned: xinstall: chown/chgrp /mp/var/macports/build/_Users_rschmidt_macports_dports_x11_mesa/work/destroot//mp/bin/glxgears, Operation not permitted Error: Status 1 encountered during processing.
The problem lines in the portfile are these:
post-destroot {
xinstall -o root -m 755 -d "${destroot}${prefix}/bin"
xinstall -o root -m 755 "${worksrcpath}/progs/xdemos/glxgears" "${destroot}/${prefix}/bin"
xinstall -o root -m 755 "${worksrcpath}/progs/xdemos/glxinfo" "${destroot}/${prefix}/bin"
}
They were added in r47380. A proposed fix is attached.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

