[MacPorts] #20215: Universal build of fontconfig broken
#20215: Universal build of fontconfig broken -------------------------------------+-------------------------------------- Reporter: dbsgeo@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: libfontconfig,universal | Port: fontconfig -------------------------------------+-------------------------------------- With the latest Macports (1.7.1) on a fresh install, when trying to get a universal build of cairo/cairomm the build fails on fontconfig. First it failed due to odd inability to install in some deep /Applications folder then (after doing a clean and re-install) due to the inability to create the right arch libraries. First: {{{ $ sudo port -d install cairomm +universal [...snip..] Making install in test make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Nothing to be done for `install-exec-am'. test -z "/opt/local/etc/fonts" || /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/fontconfig-2.6.0-i386 /install-sh -d "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts" /usr/bin/install -c -m 644 'fonts.dtd' '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts/fonts.dtd' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/fontconfig-2.6.0-i386 /install-sh -d /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/var/cache/fontconfig if [ -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts/fonts.conf ]; then \ echo "backing up existing /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts/fonts.conf"; \ mv /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts/fonts.conf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts/fonts.conf.bak; \ fi backing up existing /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts/fonts.conf if [ -f ./fonts.conf ]; then \ echo " /usr/bin/install -c -m 644 ./fonts.conf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts/fonts.conf"; \ /usr/bin/install -c -m 644 ./fonts.conf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts/fonts.conf; \ else if [ -f fonts.conf ]; then \ echo " /usr/bin/install -c -m 644 fonts.conf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts/fonts.conf"; \ /usr/bin/install -c -m 644 fonts.conf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts/fonts.conf; \ fi; fi /usr/bin/install -c -m 644 ./fonts.conf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/etc/fonts/fonts.conf *** *** Warning: fonts.cache not built *** *** Generate this file manually on host system using fc-cache *** test -z "/opt/local/lib/pkgconfig" || /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/fontconfig-2.6.0-i386 /install-sh -d "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/lib/pkgconfig" /usr/bin/install -c -m 644 'fontconfig.pc' '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/opt/local/lib/pkgconfig/fontconfig.pc' DEBUG: delete: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot DEBUG: universal: merge: /Applications only exists in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work /destroot-ppc Error: Target org.macports.destroot returned: error copying "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work /destroot-ppc//Applications" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work /destroot-powerpc/Applications": file already exists Warning: the following items did not execute (for fontconfig): org.macports.activate org.macports.destroot org.macports.install Error: The following dependencies failed to build: cairo fontconfig libpixman libpng xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-xcmiscproto xorg- xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto libsigcxx2 Error: Status 1 encountered during processing. }}} Then after a clean and re-install: {{{ [...snip...] DEBUG: universal: merge: merging /opt/local/include/fontconfig/fontconfig.h from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-x86_64 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386//opt/local/include/fontconfig/fontconfig.h -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work /destroot-intel//opt/local/include/fontconfig/fontconfig.h DEBUG: universal: merge: /opt/local/include/fontconfig/fontconfig.h is identical in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-x86_64 DEBUG: universal: merge: merging /opt/local/lib from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-x86_64 xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work /destroot-intel//opt/local/lib DEBUG: universal: merge: merging /opt/local/lib/libfontconfig.1.3.0.dylib from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-x86_64 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386//opt/local/lib/libfontconfig.1.3.0.dylib -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work /destroot-intel//opt/local/lib/libfontconfig.1.3.0.dylib DEBUG: universal: merge: /opt/local/lib/libfontconfig.1.3.0.dylib is identical in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-x86_64 DEBUG: universal: merge: merging /opt/local/lib/libfontconfig.1.dylib from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-x86_64 DEBUG: universal: merge: /opt/local/lib/libfontconfig.1.dylib is a link DEBUG: universal: merge: merging /opt/local/lib/libfontconfig.a from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-x86_64 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386//opt/local/lib/libfontconfig.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-x86_64//opt/local/lib/libfontconfig.a differ: char 34, line 2 /usr/bin/lipo: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386//opt/local/lib/libfontconfig.a and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-x86_64//opt/local/lib/libfontconfig.a have the same architectures (i386) and can't be in the same fat output file DEBUG: delete: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work /destroot-intel//opt/local/lib/libfontconfig.a Error: Target org.macports.destroot returned: Can not create /opt/local/lib/libfontconfig.a from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-x86_64 Warning: the following items did not execute (for fontconfig): org.macports.activate org.macports.destroot org.macports.install Error: The following dependencies failed to build: cairo fontconfig libpixman libpng xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-xcmiscproto xorg- xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto libsigcxx2 Error: Status 1 encountered during processing. }}} -- Ticket URL: <http://trac.macports.org/ticket/20215> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20215: Universal build of fontconfig broken -------------------------------------+-------------------------------------- Reporter: dbsgeo@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: libfontconfig,universal | Port: fontconfig -------------------------------------+-------------------------------------- Changes (by blb@…): * owner: macports-tickets@… => ryandesign@… -- Ticket URL: <http://trac.macports.org/ticket/20215#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20215: Universal build of fontconfig broken -------------------------------------+-------------------------------------- Reporter: dbsgeo@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: libfontconfig,universal | Port: fontconfig -------------------------------------+-------------------------------------- Comment(by jmr@…): Attaching a patch that seemed to work for me, note however that I do not understand the reasons behind the original approach. -- Ticket URL: <http://trac.macports.org/ticket/20215#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20215: Universal build of fontconfig broken -------------------------------------+-------------------------------------- Reporter: dbsgeo@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: libfontconfig,universal | Port: fontconfig -------------------------------------+-------------------------------------- Changes (by ryandesign@…): * cc: mcalhoun@… (added) Comment: Cc'ing the author of [changeset:49116 the original approach]. Note also that the port [ticket:20192 will be updated to 2.7.0 soon] which might change things for universal again. -- Ticket URL: <http://trac.macports.org/ticket/20215#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20215: Universal build of fontconfig broken -------------------------------------+-------------------------------------- Reporter: dbsgeo@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: libfontconfig,universal | Port: fontconfig -------------------------------------+-------------------------------------- Comment(by dbsgeo@…): I just tried again after the update in #20192 but this did not seem to change anything: {{{ #!sh ---> Staging fontconfig into destroot ---> Staging fontconfig into destroot for architecture x86_64 ---> Staging fontconfig into destroot for architecture ppc ---> Staging fontconfig into destroot for architecture i386 Error: Target org.macports.destroot returned: Can not create /opt/local/lib/libfontconfig.a from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-x86_64 }}} -- Ticket URL: <http://trac.macports.org/ticket/20215#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20215: Universal build of fontconfig broken -------------------------------------+-------------------------------------- Reporter: dbsgeo@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: libfontconfig,universal | Port: fontconfig -------------------------------------+-------------------------------------- Comment(by lvcargnini@…): I getting the following error:[[BR]] sudo port install fontconfig[[BR]] Password:[[BR]] ---> Staging fontconfig into destroot[[BR]] ---> Staging fontconfig into destroot for architecture i386[[BR]] [[BR]] Error: Target org.macports.destroot returned: error copying [[BR]]"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot" to [[BR]]"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/destroot": file already exists[[BR]] Error: Status 1 encountered during processing.[[BR]] -- Ticket URL: <http://trac.macports.org/ticket/20215#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20215: Universal build of fontconfig broken -------------------------------------+-------------------------------------- Reporter: dbsgeo@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: libfontconfig,universal | Port: fontconfig -------------------------------------+-------------------------------------- Comment(by lvcargnini@…): I forgot to say my universal_architecture is i386 x86_64 [[BR]] Replying to [comment:5 lvcargnini@…]:[[BR]]
I getting the following error:[[BR]] sudo port install fontconfig[[BR]] Password:[[BR]] ---> Staging fontconfig into destroot[[BR]] ---> Staging fontconfig into destroot for architecture i386[[BR]] [[BR]] Error: Target org.macports.destroot returned: error copying
[[BR]]"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot" to [[BR]]"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/destroot-i386/destroot": file already exists[[BR]]
Error: Status 1 encountered during processing.[[BR]]
-- Ticket URL: <http://trac.macports.org/ticket/20215#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20215: Universal build of fontconfig broken -------------------------------------+-------------------------------------- Reporter: dbsgeo@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: libfontconfig,universal | Port: fontconfig -------------------------------------+-------------------------------------- Comment(by mcalhoun@…): The default behavior of the muniversal PortGroup was changed in r53389.[[BR]] The attached patch should fix the problem. -- Ticket URL: <http://trac.macports.org/ticket/20215#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20215: Universal build of fontconfig broken -------------------------------------+-------------------------------------- Reporter: dbsgeo@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: libfontconfig,universal | Port: fontconfig -------------------------------------+-------------------------------------- Comment(by lvcargnini@…): It seems to be working, for me with my two archs in the universal_arch :[[BR]] sudo port install fontconfig[[BR]] ---> Fetching fontconfig[[BR]] ---> Verifying checksum(s) for fontconfig ---> Extracting fontconfig[[BR]] ---> Applying patches to fontconfig[[BR]] ---> Configuring fontconfig[[BR]] ---> Configuring fontconfig for architecture i386[[BR]] ---> Configuring fontconfig for architecture x86_64[[BR]] ---> Building fontconfig[[BR]] ---> Building fontconfig for architecture i386[[BR]] ---> Building fontconfig for architecture x86_64[[BR]] ---> Staging fontconfig into destroot[[BR]] ---> Staging fontconfig into destroot for architecture i386[[BR]] ---> Staging fontconfig into destroot for architecture x86_64[[BR]] ---> Installing fontconfig @2.7.0_0+macosx+universal[[BR]] ---> Activating fontconfig @2.7.0_0+macosx+universal[[BR]] ---> Cleaning fontconfig[[BR]] -- Ticket URL: <http://trac.macports.org/ticket/20215#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20215: Universal build of fontconfig broken -------------------------------+-------------------------------------------- Reporter: dbsgeo@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: libfontconfig,universal Port: fontconfig | -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Replying to [comment:8 mcalhoun@…]:
The default behavior of the muniversal PortGroup was changed in r53389.
I figured it must have been one of those changes to the portgroup, since I haven't changed the fontconfig portfile, and I did have 2.6.0 installed 4-way universal before so it used to work.
The attached patch should fix the problem.
Works for me with 4-way universal on Leopard. Committed in r53607. -- Ticket URL: <http://trac.macports.org/ticket/20215#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts