mtree violation check: no files matched glob pattern "*"

Ryan Schmidt ryandesign at macports.org
Sat Aug 11 21:55:47 PDT 2007


I'd say installing into /Applications/MacPorts should not be  
considered an mtree violation. Check this out:


$ sudo port install minivmac
--->  Fetching minivmac
--->  Verifying checksum(s) for minivmac
--->  Extracting minivmac
--->  Configuring minivmac
--->  Building minivmac
--->  Staging minivmac into destroot
Error: Target org.macports.destroot returned: no files matched glob  
pattern "*"
Error: Status 1 encountered during processing.
$


That's a weird error message. Let's try it again.


$ sudo port install minivmac
--->  Staging minivmac into destroot
Error: Target org.macports.destroot returned: no files matched glob  
pattern "*"
Error: Status 1 encountered during processing.
$


Ok. One more time.


$ sudo port install minivmac
--->  Staging minivmac into destroot
Error: Target org.macports.destroot returned: error copying "/opt/ 
local/var/macports/build/ 
_Users_rschmidt_macports_dports_emulators_minivmac/work/projects/ 
bgcmachs/minivmac.app" to "/opt/local/var/macports/build/ 
_Users_rschmidt_macports_dports_emulators_minivmac/work/destroot/ 
Applications/MacPorts/Mini vMac.app/minivmac.app": file already exists
Error: Status 1 encountered during processing.
$


Whoa. Why do I now get a different error message?

Let's start over and see if debug info helps.


$ sudo port clean --work minivmac
--->  Cleaning minivmac
$ sudo port -d install minivmac
[snip]
DEBUG: Executing org.macports.destroot (minivmac)
xinstall: mkdir /opt/local/var/macports/build/ 
_Users_rschmidt_macports_dports_emulators_minivmac/work/destroot/ 
Applications/MacPorts
DEBUG: Executing destroot_finish
DEBUG: checking for mtree violations
Error: Target org.macports.destroot returned: no files matched glob  
pattern "*"
Warning: the following items did not execute (for minivmac):  
org.macports.activate org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
$


Well, not exactly.

Presumably the glob that's being tripped over is this one at line 233  
in src/port1.0/portdestroot.tcl:

		# test files in ${prefix}
		foreach f [glob -directory "${destroot}${prefix}" *] {

This port installs no files in ${prefix}; only one application into
/Applications/MacPorts. There are many other such ports (see the aqua  
category for example); they must all be experiencing this error now.I  
think we will need to fix this quickly and release a 1.511 soon.




More information about the macports-dev mailing list