Opened 12 years ago

Closed 10 years ago

#36298 closed defect (fixed)

HandBrake: mkdir: /usr/X11/var: Permission denied

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: bgrupe27, martinezino@…, whcordis@…, cooljeanius (Eric Gallager)
Port: HandBrake

Description

Building HandBrake on my OS X Mountain Lion 10.8.2 system with Xcode 4.5 fails with:

/bin/sh /opt/local/var/macports/build/_Users_rschmidt_macports_dports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.8/build/contrib/fontconfig/fontconfig-2.8.0/install-sh -d /opt/local/var/macports/build/_Users_rschmidt_macports_dports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.8/build/contrib/etc/fonts /usr/X11/var/cache/fontconfig
mkdir: /usr/X11/var: Permission denied
mkdir: /usr/X11/var: No such file or directory
mkdir: /usr/X11/var/cache: No such file or directory
make[4]: *** [install-data-local] Error 1
make[3]: *** [install-am] Error 2
make[2]: *** [install-recursive] Error 1
make[1]: *** [contrib/fontconfig/.stamp.install] Error 2
make[1]: *** Waiting for unfinished jobs....

There is no /usr/X11/var on my system. I do not have Xquartz installed. (I have the xorg-server port installed.)

Attachments (1)

main.log (132.4 KB) - added by martinezino@… 12 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 12 years ago by bgrupe27

Cc: bgrupe@… added

Cc Me!

comment:2 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

./contrib/fontconfig/module.defs:    --with-fcpath=/usr/X11/lib/X11/fontconfig \
./contrib/fontconfig/module.defs:    --with-cache-dir=/usr/X11/var/cache/fontconfig

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #37040.

Changed 12 years ago by martinezino@…

Attachment: main.log added

comment:4 Changed 12 years ago by martinezino@…

sys: ProductName: Mac OS X, ProductVersion: 10.8.2, BuildVersion: 12C3012
app: Xcode.app 4.5.2
command: sudo port install Handbrake
building Handbrake terminates with attached main.log

Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 in reply to:  4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to martinezino@…:

building Handbrake terminates with attached main.log

That's #37434.

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: martinezino@… added

comment:7 Changed 12 years ago by martinezino@…

After reading #37434 - here more informations.

compile/configuration with:

port installed |grep -E 'auto|libto'
  autoconf @2.69_0 (active)
  automake @1.13.1_0 (active)
  libtool @2.4.2_3 (active)
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:8 Changed 12 years ago by whcordis@…

Cc: whcordis@… added

Cc Me!

comment:9 Changed 12 years ago by whcordis@…

Cc: whcordis@… removed

Cc Me!

comment:10 Changed 12 years ago by whcordis@…

Cc: whcordis@… added

Cc Me!

comment:11 Changed 11 years ago by Chris.Purcell.39@…

I fixed this on my machine by running the following commands (you will need to be in an administrator account):

sudo mkdir -m755 /usr/X11/var
sudo mkdir -m777 /usr/X11/var/cache

This just creates the missing directories with the correct permissions.

comment:12 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:13 Changed 10 years ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: newclosed

I’ve patched the bundled Fontconfig build to use the fontconfig port’s resources, so this shouldn’t be a problem anymore. r132827

Note: See TracTickets for help on using tickets.