New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #18681 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

mesa.diff (529 bytes) - added by ryandesign@… 4 years ago.

Change History

Changed 4 years ago by ryandesign@…

comment:1 Changed 4 years ago by jeremyhu@…

  • Status changed from new to closed
  • Resolution set to fixed

comment:2 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.