Opened 15 years ago

Closed 15 years ago

#19837 closed defect (invalid)

Error installing font-adobe-utopia-type1

Reported by: mf2k (Frank Schima) Owned by: blb@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: font-adobe-utopia-type1

Description

Brand new Mac Pro. Mac OS X 10.5.7. Macports 1.7.1. Xcode 3.1.2. I see the following error:

--->  Fetching font-adobe-utopia-type1
--->  Verifying checksum(s) for font-adobe-utopia-type1
--->  Extracting font-adobe-utopia-type1
--->  Configuring font-adobe-utopia-type1
--->  Building font-adobe-utopia-type1
--->  Staging font-adobe-utopia-type1 into destroot
Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/font-adobe-utopia-type1-1.0.1" && make install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot " returned error 2
Command output: make[1]: Nothing to be done for `install-exec-am'.
/bin/sh ./mkinstalldirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1
mkdir -p -- /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1
 /usr/bin/install -c -m 644 UTB_____.afm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1/UTB_____.afm
 /usr/bin/install -c -m 644 UTBI____.afm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1/UTBI____.afm
 /usr/bin/install -c -m 644 UTBI____.pfa /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1/UTBI____.pfa
 /usr/bin/install -c -m 644 UTB_____.pfa /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1/UTB_____.pfa
 /usr/bin/install -c -m 644 UTI_____.afm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1/UTI_____.afm
 /usr/bin/install -c -m 644 UTI_____.pfa /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1/UTI_____.pfa
 /usr/bin/install -c -m 644 UTRG____.afm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1/UTRG____.afm
 /usr/bin/install -c -m 644 UTRG____.pfa /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1/UTRG____.pfa
make  install-data-hook
/opt/local/bin/mkfontscale /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1
/opt/local/bin/mkfontdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1
/usr/X11/bin/fc-cache /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_font-adobe-utopia-type1/work/destroot/opt/local/share/fonts/Type1
dyld: Library not loaded: /usr/X11/lib/libfontconfig.1.dylib
  Referenced from: /usr/X11/bin/fc-cache
  Reason: image not found
make[2]: *** [install-data-hook] Trace/BPT trap
make[1]: *** [install-data-am] Error 2
make: *** [install-am] Error 2

Error: The following dependencies failed to build: xorg-fonts font-adobe-utopia-type1 font-alias font-arabic-misc font-bh-100dpi font-bh-75dpi font-bh-lucidatypewriter-100dpi font-bh-lucidatypewriter-75dpi font-bh-ttf font-bh-type1 font-bitstream-100dpi font-bitstream-75dpi font-bitstream-speedo font-bitstream-type1 font-cronyx-cyrillic font-cursor-misc font-daewoo-misc font-dec-misc font-ibm-type1 font-isas-misc font-jis-misc font-micro-misc font-misc-cyrillic font-misc-ethiopic font-misc-meltho font-misc-misc font-mutt-misc font-schumacher-misc font-screen-cyrillic font-sony-misc font-sun-misc font-winitzki-cyrillic font-xfree86-type1 xorg-encodings xorg-fontsproto xorg-glproto xorg-libAppleWM xorg-libXext xorg-libXfixes xorg-libXfont xorg-fontcacheproto xorg-libXt xorg-libsm xorg-libice xorg-libxkbfile xorg-randrproto xorg-recordproto xorg-renderproto xorg-resourceproto xorg-scrnsaverproto xorg-trapproto xorg-videoproto xorg-xineramaproto
Error: Status 1 encountered during processing.

Attachments (1)

config.log (6.8 KB) - added by mf2k (Frank Schima) 15 years ago.
Here's the config.log file.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Cc: jeremyhu@… added

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

As far as MP is concerned, this should be fixed with r51724

But I'm now curious why you are missing /usr/X11/lib/libfontconfig.1.dylib ? Did you uninstall OSX's X11 to use MacPorts'? That doesn't seem the case because you have /usr/X11/bin/fc-cache present.

What's the output of: ls -l /usr/X11/lib/libfont*

comment:3 Changed 15 years ago by mf2k (Frank Schima)

$ ls -l /usr/X11/lib/libfont*
-rwxr-xr-x  1 root  wheel  1078864 Sep 23  2007 /usr/X11/lib/libfontconfig.1.1.0.dylib
lrwxr-xr-x  1 root  wheel       21 May 18 08:36 /usr/X11/lib/libfontconfig.1.3.0.dylib -> libfontconfig.1.dylib
-rwxr-xr-x  1 root  wheel   780624 May 17 19:04 /usr/X11/lib/libfontconfig.1.dylib
lrwxr-xr-x  1 root  wheel       21 May 18 08:36 /usr/X11/lib/libfontconfig.dylib -> libfontconfig.1.dylib
-rwxr-xr-x  1 root  wheel      931 May 17 19:04 /usr/X11/lib/libfontconfig.la
lrwxr-xr-x  1 root  wheel       18 May 18 08:36 /usr/X11/lib/libfontenc.1.0.0.dylib -> libfontenc.1.dylib
-rwxr-xr-x  1 root  wheel   119144 May 17 19:41 /usr/X11/lib/libfontenc.1.dylib
lrwxr-xr-x  1 root  wheel       18 May 18 08:36 /usr/X11/lib/libfontenc.dylib -> libfontenc.1.dylib
-rwxr-xr-x  1 root  wheel      820 May 17 19:41 /usr/X11/lib/libfontenc.la

It's a clean install of Mac OS X on the latest Mac Pro, then I updated to 10.5.7.

comment:4 Changed 15 years ago by mf2k (Frank Schima)

I'm sorry, ignore my last post. Here's the output from the machine in question:

$ ls -l /usr/X11/lib/libfont*
-rwxr-xr-x  1 root  wheel  1056752 Mar 19 00:38 /usr/X11/lib/libfontconfig.1.3.0.dylib
-rwxr-xr-x  1 root  wheel   152960 Mar 12 18:38 /usr/X11/lib/libfontenc.1.dylib

comment:5 Changed 15 years ago by blb@…

I think we need to also set FCCACHE in configure.env to make sure it uses MacPorts' fc-cache, since Frank says fontconfig was already installed when this failed. Though looking at configure it should be picking up MacPorts' anyway since it just goes through PATH. Possibly seeing config.log would help figure out why it picked the one in /usr/X11.

comment:6 Changed 15 years ago by mf2k (Frank Schima)

Yes, fontconfig is installed:

The following ports are currently installed:
  fontconfig @2.6.0_2+macosx (active)

Changed 15 years ago by mf2k (Frank Schima)

Attachment: config.log added

Here's the config.log file.

comment:7 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

So you obviously have: /usr/X11/lib/libfontconfig.1.dylib

I don't understand why you're seeing this: dyld: Library not loaded: /usr/X11/lib/libfontconfig.1.dylib

Referenced from: /usr/X11/bin/fc-cache Reason: image not found

Do you have any LD_* or DYLD_* environment variables set?

As for fc-cache... it looks like the configure script just prefers the system one over MP's ... but that's alright since we end up running it ourselves in post-activate now...

I really have no clue why you're seeing the /usr/X11/bin/fc-cache failure. Your data seems contradictory. Am I missing something? What is the output of:

file /usr/X11/lib/libfontconfig.1.dylib

perhaps it's missing your arch (yes, I'm grasping at straws here)

comment:8 Changed 15 years ago by blb@…

I can't seem to get it to prefer /usr/X11/bin/fc-cache here, configure definitely picked the MacPorts' one. Looking at your config.log, the PATH is right so it should have hit MacPorts' first; does /opt/local/bin/fc-cache exist? If so, does /opt/local/bin/fc-cache -h work or fail?

Note that using MacPorts' fc-cache in post-activate won't fix running the other one at destroot time if that one fails. Though

comment:9 in reply to:  7 Changed 15 years ago by mf2k (Frank Schima)

Replying to jeremyhu@…:

So you obviously have: /usr/X11/lib/libfontconfig.1.dylib

No, I don't. See my next comment. Sorry for the mistake.

comment:10 in reply to:  8 Changed 15 years ago by mf2k (Frank Schima)

Replying to blb@…:

I can't seem to get it to prefer /usr/X11/bin/fc-cache here, configure definitely picked the MacPorts' one. Looking at your config.log, the PATH is right so it should have hit MacPorts' first; does /opt/local/bin/fc-cache exist? If so, does /opt/local/bin/fc-cache -h work or fail?

Yes, it exists.

$ /opt/local/bin/fc-cache -?usage: /opt/local/bin/fc-cache [-frsvV?] [--force|--really-force] [--system-only] [--verbose] [--version] [--help] [dirs]
Build font information caches in [dirs]
(all directories in font configuration by default).

  -f, --force          scan directories with apparently valid caches
  -r, --really-force   erase all existing caches, then rescan
  -s, --system-only    scan system-wide directories only
  -v, --verbose        display status information while busy
  -V, --version        display font config version and exit
  -?, --help           display this help and exit

comment:11 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

configure.ac is doing:

AC_PATH_PROG(MKFONTDIR, mkfontdir)
AC_PATH_PROG(FCCACHE, fc-cache)

So it should find/use MP's fc-cache ...

comment:12 Changed 15 years ago by blb@…

Hmm, so fontconfig was available at the time, and fc-cache is in /opt/local/bin and should have been seen; binpath isn't putting /usr/X11/bin early according to the config.log, and other programs (like mkfontdir) which are in both locations worked properly. fc-cache doesn't appear to crash on simple usage, though I don't recall AC_PATH_PROG actually testing anything.

I can't see what would cause it to use a different fc-cache, skipping the MacPorts' one unless it was sunspots...

comment:13 Changed 15 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

So today I rebooted and run a selfupdate and the install worked. I'm not sure why it's working now, but I'm going to close this ticket.

Note: See TracTickets for help on using tickets.