[MacPorts] #25049: Upgrading glib2 to universal fails (poorly) on zlib

MacPorts noreply at macports.org
Thu May 27 12:22:58 PDT 2010


#25049: Upgrading glib2 to universal fails (poorly) on zlib
------------------------------------+---------------------------------------
 Reporter:  marco@…                 |       Owner:  ryandesign@…           
     Type:  defect                  |      Status:  assigned               
 Priority:  Low                     |   Milestone:                         
Component:  ports                   |     Version:  1.8.2                  
 Keywords:  glib2, zlib, universal  |        Port:  glib2, glib2-devel     
------------------------------------+---------------------------------------
Changes (by ryandesign@…):

  * status:  new => assigned
  * owner:  macports-tickets@… => ryandesign@…
  * port:  glib2 => glib2, glib2-devel


Old description:

> I was upgrading my glib2 port to a universal variant, and ran into a
> problem with zlib. To resolve this issue I had to upgrade my zlib port to
> universal as well.
>
> Other ports warn nicely about having to upgrade to the universal variant.
> It would be pleasant if this one would as well, as my fix was just a wild
> guess at the problem.
>
> [marco at eva ~/dev]$ sudo port upgrade -d --enforce-variants glib2
> +universal
> --->  Computing dependencies for glib2
> --->  Configuring glib2
> Error: Target org.macports.configure returned: configure failure: shell
> command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_glib2/work/glib-2.24.1"
> && ./configure --prefix=/opt/local --disable-dependency-tracking
> --enable-static " returned error 1
> Command output: checking for _FILE_OFFSET_BITS value needed for large
> files... no
> checking for pkg-config... /opt/local/bin/pkg-config
> checking for gawk... (cached) gawk
> checking for perl5... /opt/local/bin/perl
> checking for indent... indent
> checking for /opt/local/bin/perl... /opt/local/bin/perl
> checking for a Python interpreter with version >= 2.4... python
> checking for python... /usr/bin/python
> checking for python version... 2.6
> checking for python platform... darwin
> checking for python script directory... ${prefix}/lib/python2.6/site-
> packages
> checking for python extension module directory...
> ${exec_prefix}/lib/python2.6/site-packages
> checking for iconv_open... no
> checking for libiconv_open in -liconv... yes
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking whether we are using the GNU C Library 2.1 or newer... no
> checking Whether to cache iconv descriptors... yes
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for inflate in -lz... no
> configure: error: *** Working zlib library and headers not found ***
>
> Error: Unable to upgrade port: 1
>
> This fixes it:
>
> [marco at eva ~/dev]$ sudo port upgrade --enforce-variants zlib +universal
> --->  Computing dependencies for zlib
> --->  Fetching zlib
> --->  Verifying checksum(s) for zlib
> --->  Extracting zlib
> --->  Applying patches to zlib
> --->  Configuring zlib
> --->  Building zlib
> --->  Staging zlib into destroot
> --->  Deactivating zlib @1.2.5_0
> --->  Computing dependencies for zlib
> --->  Installing zlib @1.2.5_0+universal
> --->  Activating zlib @1.2.5_0+universal
> --->  Cleaning zlib
> [marco at eva ~/dev/]$ sudo port upgrade -d --enforce-variants glib2
> +universal
> --->  Computing dependencies for glib2
> --->  Configuring glib2
> --->  Building glib2
> --->  Staging glib2 into destroot
> --->  Deactivating glib2 @2.24.1_0+darwin
> --->  Computing dependencies for glib2
> --->  Installing glib2 @2.24.1_0+darwin+universal
> --->  Activating glib2 @2.24.1_0+darwin+universal
> --->  Cleaning glib2

New description:

 I was upgrading my glib2 port to a universal variant, and ran into a
 problem with zlib. To resolve this issue I had to upgrade my zlib port to
 universal as well.

 Other ports warn nicely about having to upgrade to the universal variant.
 It would be pleasant if this one would as well, as my fix was just a wild
 guess at the problem.

 {{{
 [marco at eva ~/dev]$ sudo port upgrade -d --enforce-variants glib2
 +universal
 --->  Computing dependencies for glib2
 --->  Configuring glib2
 Error: Target org.macports.configure returned: configure failure: shell
 command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_glib2/work/glib-2.24.1"
 && ./configure --prefix=/opt/local --disable-dependency-tracking --enable-
 static " returned error 1
 Command output: checking for _FILE_OFFSET_BITS value needed for large
 files... no
 checking for pkg-config... /opt/local/bin/pkg-config
 checking for gawk... (cached) gawk
 checking for perl5... /opt/local/bin/perl
 checking for indent... indent
 checking for /opt/local/bin/perl... /opt/local/bin/perl
 checking for a Python interpreter with version >= 2.4... python
 checking for python... /usr/bin/python
 checking for python version... 2.6
 checking for python platform... darwin
 checking for python script directory... ${prefix}/lib/python2.6/site-
 packages
 checking for python extension module directory...
 ${exec_prefix}/lib/python2.6/site-packages
 checking for iconv_open... no
 checking for libiconv_open in -liconv... yes
 checking for grep that handles long lines and -e... /usr/bin/grep
 checking for egrep... /usr/bin/grep -E
 checking whether we are using the GNU C Library 2.1 or newer... no
 checking Whether to cache iconv descriptors... yes
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking for inflate in -lz... no
 configure: error: *** Working zlib library and headers not found ***

 Error: Unable to upgrade port: 1
 }}}

 This fixes it:

 {{{
 [marco at eva ~/dev]$ sudo port upgrade --enforce-variants zlib +universal
 --->  Computing dependencies for zlib
 --->  Fetching zlib
 --->  Verifying checksum(s) for zlib
 --->  Extracting zlib
 --->  Applying patches to zlib
 --->  Configuring zlib
 --->  Building zlib
 --->  Staging zlib into destroot
 --->  Deactivating zlib @1.2.5_0
 --->  Computing dependencies for zlib
 --->  Installing zlib @1.2.5_0+universal
 --->  Activating zlib @1.2.5_0+universal
 --->  Cleaning zlib
 [marco at eva ~/dev/]$ sudo port upgrade -d --enforce-variants glib2
 +universal
 --->  Computing dependencies for glib2
 --->  Configuring glib2
 --->  Building glib2
 --->  Staging glib2 into destroot
 --->  Deactivating glib2 @2.24.1_0+darwin
 --->  Computing dependencies for glib2
 --->  Installing glib2 @2.24.1_0+darwin+universal
 --->  Activating glib2 @2.24.1_0+darwin+universal
 --->  Cleaning glib2
 }}}

--

Comment:

 Don't forget to preview before submitting, and to use WikiFormatting.

-- 
Ticket URL: <http://trac.macports.org/ticket/25049#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list