[XeTeX] Mac-specific: permissions for xdv2pdf_mergemarks

Bruno Voisin bvoisin at mac.com
Wed Mar 19 16:40:11 CET 2008


I've just run into the following error, when running XeLaTeX + xdv2pdf  
on the Mac with Leopard 10.5.2 (on a document using the hyperref  
package):

sh: /usr/local/texlive/2007/../texmf-local/scripts/xetex/perl/ 
xdv2pdf_mergemarks: Permission denied
*** failed to run xdv2pdf_mergemarks: status = 32256

That seems to be attributable to the script xdv2pdf_mergemarks, as  
installed in texmf-local when compiling xetex from source, not having  
the executable bit set:

theo8mc233:Engines bvoisin$ cd /usr/local/texlive/texmf-local/scripts/ 
xetex/perl
theo8mc233:perl bvoisin$ ls -al
total 16
drwxr-xr-x@ 4 bvoisin  bvoisin   136  5 déc  2006 .
drwxr-xr-x@ 3 bvoisin  bvoisin   102  5 déc  2006 ..
drwxr-xr-x@ 3 bvoisin  bvoisin   102  5 déc  2006 lib
-rw-r--r--@ 1 bvoisin  bvoisin  5185  5 déc  2006 xdv2pdf_mergemarks

Using "chmod a+x xdv2pdf_mergemarks" solves the problem.

However, xdv2pdf_mergemarks as installed by MacTeX/TeXLive-2007 does  
not have this problem:

theo8mc233:perl bvoisin$ cd /usr/local/texlive/2007/texmf-dist/scripts/ 
xetex/perl
theo8mc233:perl bvoisin$ ls -al
total 16
drwxr-xr-x  4 root     wheel   136 27 aoû  2007 .
drwxr-xr-x  3 root     wheel   102 27 aoû  2007 ..
drwxr-xr-x  3 root     wheel   102 27 aoû  2007 lib
-rwxr-xr-x  1 bvoisin  staff  5185  7 déc  2006 xdv2pdf_mergemarks

I checked on another Mac, problem is exactly the same, with slightly  
different ownership:

theo9mc182:~ bvoisin$ cd /usr/local/texlive/texmf-local/scripts/xetex/ 
perl
theo9mc182:perl bvoisin$ ls -al
total 16
drwxr-xr-x@ 4 bvoisin  wheel   136  5 déc  2006 .
drwxr-xr-x@ 3 bvoisin  wheel   102  5 déc  2006 ..
drwxr-xr-x@ 3 bvoisin  wheel   102  5 déc  2006 lib
-rw-r--r--@ 1 bvoisin  wheel  5185  5 déc  2006 xdv2pdf_mergemarks
theo9mc182:perl bvoisin$ cd /usr/local/texlive/2007/texmf-dist/scripts/ 
xetex/perl
theo9mc182:perl bvoisin$ ls -al
total 16
drwxr-xr-x  4 root     wheel   136 27 aoû  2007 .
drwxr-xr-x  3 root     wheel   102 27 aoû  2007 ..
drwxr-xr-x  3 root     wheel   102 27 aoû  2007 lib
-rwxr-xr-x  1 bvoisin  staff  5185  7 déc  2006 xdv2pdf_mergemarks

Looking more closely, the version in texmf-local, which results from  
downloading TRUNK.tar.gz from http://scripts.sil.org/svn-view/xetex/  
then compiling locally, has an "@" at the end of the permissions,  
indicating associated metadata if I'm not mistaken. Asking for these  
metadata, I get:

theo9mc182:perl bvoisin$ ls -al@
total 16
drwxr-xr-x@ 4 bvoisin  wheel   136  5 déc  2006 .
	com.apple.quarantine	  38
drwxr-xr-x@ 3 bvoisin  wheel   102  5 déc  2006 ..
	com.apple.quarantine	  38
drwxr-xr-x@ 3 bvoisin  wheel   102  5 déc  2006 lib
	com.apple.quarantine	  38
-rw-r--r--@ 1 bvoisin  wheel  5185  5 déc  2006 xdv2pdf_mergemarks
	com.apple.quarantine	  38

This seems to indicate the files have been quarantined automatically  
by OS X following their extraction from TRUNK.tar.gz. Could this also  
explain why xdv2pdf_mergemarks did not get the executable bit set?

Puzzled!

Bruno Voisin


More information about the XeTeX mailing list