[MacPorts] #61563: ghostscript @9.53.3 does not configure on PPC Tiger, Mac OS X 10.4.11, because of a pkg-config malfunction?

MacPorts noreply at macports.org
Thu Nov 19 16:39:59 UTC 2020


#61563: ghostscript @9.53.3 does not configure on PPC Tiger, Mac OS X 10.4.11,
because of a pkg-config malfunction?
-----------------------+-------------------------
 Reporter:  ballapete  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.6.4
 Keywords:  tiger ppc  |       Port:  ghostscript
-----------------------+-------------------------
 {{{
 checking for fontconfig with pkg-config... no
 checking for FcInitLoadConfigAndFonts in -lfontconfig... yes
 checking fontconfig/fontconfig.h usability... yes
 checking fontconfig/fontconfig.h presence... yes
 checking for fontconfig/fontconfig.h... yes
 checking for local freetype library source... no
 checking for system freetype2 >= 2.4.2 with pkg-config... no
 configure: error: No usable Freetype source or library found
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostpdl-9.53.3"
 && ./configure --prefix=/opt/local --enable-gpdl --disable-compile-inits
 --disable-cups --disable-dbus --disable-gtk --without-pcl --without-xps
 --without-gpdl --with-x --without-luratech --with-system-libtiff
 Exit code: 1
 Error: Failed to configure ghostscript, consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostpdl-9.53.3/config.log
 Error: Failed to configure ghostscript: configure failure: command
 execution failed
 DEBUG: Error code: NONE
 DEBUG: Backtrace: configure failure: command execution failed
 }}}

 `Config.log` contains:

 {{{
 configure:7748: checking fontconfig/fontconfig.h usability
 configure:7748: /opt/local/bin/gcc-apple-4.2 -c -pipe -Os -arch ppc
 -DHAVE_RESTRICT=1 -DUSE_LIBICONV_GNU -DUSE_LIBPAPER
 -isystem/opt/local/include conftest.c >&5
 configure:7748: $? = 0
 configure:7748: result: yes
 configure:7748: checking fontconfig/fontconfig.h presence
 configure:7748: /opt/local/bin/gcc-apple-4.2 -E -isystem/opt/local/include
 conftest.c
 configure:7748: $? = 0
 configure:7748: result: yes
 configure:7748: checking for fontconfig/fontconfig.h
 configure:7748: result: yes
 configure:7952: checking for local freetype library source
 configure:7967: result: no
 configure:7970: checking for system freetype2 >= 2.4.2 with pkg-config
 configure:7989: result: no
 configure:8090: error: No usable Freetype source or library found

 ## ---------------- ##
 ## Cache variables. ##
 ## ---------------- ##
 }}}

 `Configure` has:

 {{{
  7977         if test x"$PKGCONFIG" != x""; then
  7978           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for
 system freetype2 >= 2.4.2 with pkg-config" >&5
  7979   $as_echo_n "checking for system freetype2 >= 2.4.2 with pkg-
 config... " >&6; }
  7980               # pkg-config needs the libtool version, which != the
 freetype2 version <sigh!>
  7981               # There is a table of corresponding ft2<->libtool
 numbers in freetype/docs/VERSION.DLL
  7982               if $PKGCONFIG --atleast-version=12.0.6 freetype2; then
  7983                   { $as_echo "$as_me:${as_lineno-$LINENO}: result:
 yes" >&5
  7984   $as_echo "yes" >&6; }
  7985                   if test "x$FT_CFLAGS" = "x"; then
  7986                     FT_CFLAGS="$CFLAGS `$PKGCONFIG --cflags
 freetype2`"
  7987                   fi
  7988                   if test "x$FT_LIBS" = "x"; then
  7989                     FT_LIBS="`$PKGCONFIG --libs-only-l freetype2`"
  7990                   fi
  7991                   if test "x$FT_LIB_PATH" = "x"; then
  7992                     FT_LIB_PATH="`$PKGCONFIG --libs-only-L
 freetype2`"
  7993                   fi
  7994                   FT_BRIDGE=1
  7995                   SHARE_FT=1
  7996               else
  7997                   { $as_echo "$as_me:${as_lineno-$LINENO}: result:
 no" >&5
  7998   $as_echo "no" >&6; }
  7999                   AFS=1
  8000               fi
 }}}

 and `/opt/local/lib/pkgconfig/freetype2.pc` has:

 {{{
 pete 233 /\ cat /opt/local/lib/pkgconfig/freetype2.pc
 prefix=/opt/local
 exec_prefix=/opt/local
 libdir=/opt/local/lib
 includedir=/opt/local/include

 Name: FreeType 2
 URL: https://freetype.org
 Description: A free, high-quality, and portable font engine.
 Version: 23.4.17
 Requires:
 Requires.private: zlib, bzip2, libpng, libbrotlidec
 Libs: -L${libdir} -lfreetype
 Libs.private: -Wl,-framework,CoreServices
 -Wl,-framework,ApplicationServices
 Cflags: -I${includedir}/freetype2
 }}}


 Installed are:

 {{{
   fontconfig @2.13.1_0 (active) platform='darwin 8' archs='ppc'
 date='2018-09-08T01:50:30+0200'
   freetype @2.10.4_0 (active) platform='darwin 8' archs='ppc'
 date='2020-10-22T15:34:03+0200'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61563>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list