Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#18681 closed defect (fixed)

mesa: non-root install fails trying to chown glxgears

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
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 (1)

mesa.diff (529 bytes) - added by ryandesign (Ryan Carsten Schmidt) 16 years ago.

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: mesa.diff added

comment:1 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

comment:2 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.