[MacPorts] #66627: ghostscript fails to configure with universal variant

MacPorts noreply at macports.org
Thu Jan 5 04:29:53 UTC 2023


#66627: ghostscript fails to configure with universal variant
----------------------------+--------------------
  Reporter:  MichaelGDev48  |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.8.99
Resolution:                 |   Keywords:
      Port:  ghostscript    |
----------------------------+--------------------

Comment (by kencu):

 Yeah, me too -- and  I already have the non-universal Ghostscript
 installed...

 {{{
 % port -v installed ghostscript
 The following ports are currently installed:
   ghostscript @9.56.1_1+x11 (active) requested_variants=''
 platform='darwin 22' archs='arm64' date='2022-12-27T13:42:47-0800'
 }}}

 and it finds freetype just fine:

 {{{
 checking for local freetype library source... no
 checking for system freetype2 >= 2.4.2 with pkg-config... yes
 }}}

 but the universal version does not... a bit strange...


 I added the path the include file, and it got a little further:
 {{{
 configure:8926: checking for system freetype2 library >= 2.4.2
 configure:8951: /usr/bin/clang -c -pipe -Os -arch x86_64
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk
 -DHAVE_RESTRICT=1 -DUSE_LIBICONV_GNU -DUSE_LIBPAPER
 -isystem/opt/local/include -I/opt/local/include/freetype2
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk
 conftest.c >&5
 conftest.c:59:20: error: use of undeclared identifier 'FAIL'
                    FAIL
                    ^

 }}}

 but seems to want a newer version of freetype.

 Something odd is going on here.


 Oh, I think I might see the issue, perhaps. In the Ghostscript Portfile,
 there is this block:
 {{{
 post-extract {
     system -W ${workpath} "unzip
 '${distpath}/${mappingresources_commit}.zip'"

     foreach d {expat freetype jbig2dec jpeg lcms2mt libpng openjpeg tiff
 zlib} {
         move ${worksrcpath}/${d} ${worksrcpath}/${d}_local
     }

 ...
 }}}

 and that block does not appear to take into account universal builds. So
 this will need some digging.

-- 
Ticket URL: <https://trac.macports.org/ticket/66627#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list