Opened 11 years ago

Closed 11 years ago

#40503 closed defect (fixed)

gettext @0.18.3.1_0: using autoconf creates circular dependency chain

Reported by: ksee.zelgadis@… Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: ksee.zelgadis@…, Serge3leo (Serguei E. Leontiev), cooljeanius (Eric Gallager), larryv (Lawrence Velázquez), ryandesign (Ryan Carsten Schmidt), skymoo (Adam Mercer)
Port: gettext

Description

Hello! I am trying to install fontconfig on my clean MacPorts installation.

Install command failed with the following message:

$ port install fontconfig
--->  Computing dependencies for fontconfig
--->  Dependencies to be installed: expat freetype bzip2 libpng xz gettext autoconf help2man libiconv gperf p5.12-locale-gettext perl5.12 gdbm m4 perl5 automake libtool ncurses zlib pkgconfig
--->  Fetching distfiles for expat
--->  Attempting to fetch expat-2.1.0.tar.gz from http://lil.fr.distfiles.macports.org/expat
--->  Verifying checksums for expat
--->  Extracting expat
--->  Configuring expat
--->  Building expat
--->  Staging expat into destroot
--->  Installing expat @2.1.0_0
--->  Activating expat @2.1.0_0
--->  Cleaning expat
--->  Fetching distfiles for bzip2
--->  Attempting to fetch bzip2-1.0.6.tar.gz from http://lil.fr.distfiles.macports.org/bzip2
--->  Verifying checksums for bzip2
--->  Extracting bzip2
--->  Applying patches to bzip2
--->  Configuring bzip2
--->  Building bzip2
--->  Staging bzip2 into destroot
--->  Installing bzip2 @1.0.6_0
--->  Activating bzip2 @1.0.6_0
--->  Cleaning bzip2
--->  Fetching distfiles for gperf
--->  Attempting to fetch gperf-3.0.4.tar.gz from http://lil.fr.distfiles.macports.org/gperf
--->  Verifying checksums for gperf
--->  Extracting gperf
--->  Applying patches to gperf
--->  Configuring gperf
--->  Building gperf
--->  Staging gperf into destroot
--->  Installing gperf @3.0.4_2
--->  Activating gperf @3.0.4_2
--->  Cleaning gperf
--->  Fetching distfiles for libiconv
--->  Attempting to fetch libiconv-1.14.tar.gz from http://lil.fr.distfiles.macports.org/libiconv
--->  Verifying checksums for libiconv
--->  Extracting libiconv
--->  Applying patches to libiconv
--->  Configuring libiconv
--->  Building libiconv
--->  Staging libiconv into destroot
--->  Installing libiconv @1.14_0
--->  Activating libiconv @1.14_0
--->  Cleaning libiconv
--->  Fetching distfiles for m4
--->  Attempting to fetch m4-1.4.16.tar.bz2 from http://lil.fr.distfiles.macports.org/m4
--->  Verifying checksums for m4
--->  Extracting m4
--->  Configuring m4
--->  Building m4
--->  Staging m4 into destroot
--->  Installing m4 @1.4.16_0
--->  Activating m4 @1.4.16_0
--->  Cleaning m4
--->  Fetching distfiles for ncurses
--->  Attempting to fetch ncurses-5.9.tar.gz from http://lil.fr.distfiles.macports.org/ncurses
--->  Verifying checksums for ncurses
--->  Extracting ncurses
--->  Applying patches to ncurses
--->  Configuring ncurses
--->  Building ncurses
--->  Staging ncurses into destroot
--->  Installing ncurses @5.9_2
--->  Activating ncurses @5.9_2
--->  Cleaning ncurses
--->  Fetching distfiles for pkgconfig
--->  Attempting to fetch pkg-config-0.28.tar.gz from http://lil.fr.distfiles.macports.org/pkgconfig
--->  Verifying checksums for pkgconfig
--->  Extracting pkgconfig
--->  Applying patches to pkgconfig
--->  Configuring pkgconfig
--->  Building pkgconfig
--->  Staging pkgconfig into destroot
--->  Installing pkgconfig @0.28_0
--->  Activating pkgconfig @0.28_0
--->  Cleaning pkgconfig
Error: The following dependencies were not installed: freetype libpng xz gettext autoconf help2man p5.12-locale-gettext perl5.12 gdbm perl5 automake libtool zlib
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port fontconfig failed
$

Tested on OSX 10.6 (32bit) and OSX 10.7 (64bit).

Attachments (1)

main-1.log (294.7 KB) - added by ksee.zelgadis@… 11 years ago.

Download all attachments as: .zip

Change History (18)

comment:1 Changed 11 years ago by ksee.zelgadis@…

Cc: ksee.zelgadis@… added

Cc Me!

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

I am wondering if the recent circular dependency problem (introduced r111056, resolved r111090 r111108) is to blame for this. Please run "sudo port selfupdate" and try again.

comment:3 Changed 11 years ago by ksee.zelgadis@…

Thank you for the prompt reply. I did tried again, looks like result is the same:

$ port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.2.0 installed,
MacPorts base version 2.2.0 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
$ port install fontconfig
--->  Computing dependencies for fontconfig
--->  Dependencies to be installed: freetype libpng xz gettext autoconf help2man p5.12-locale-gettext perl5.12 gdbm perl5 automake libtool zlib
Error: The following dependencies were not installed: freetype libpng xz gettext autoconf help2man p5.12-locale-gettext perl5.12 gdbm perl5 automake libtool zlib
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port fontconfig failed
$

comment:4 in reply to:  2 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to ryandesign@…:

I am wondering if the recent circular dependency problem (introduced r111056, resolved r111090 r111108) is to blame for this.

Argh, there was another circular dependency:

gettext → autoconf → perl5 → perl5.12 → gdbm → gettext

Unless one of those library dependencies is unnecessary, we can’t wiggle out of this one. I removed the autoconf dependency from gettext in r111227; I’ll just have to solve the -stdlib problem some other way.

ksee.zelgadis, can you selfupdate and try again in about half an hour?

comment:5 Changed 11 years ago by ksee.zelgadis@…

I did selfupdate just now and got different error:

$ port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.2.0 installed,
MacPorts base version 2.2.0 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
$ port install fontconfig
--->  Computing dependencies for fontconfig
--->  Dependencies to be installed: freetype libpng xz gettext zlib
--->  Fetching distfiles for gettext
--->  Attempting to fetch gettext-0.18.3.1.tar.gz from http://lil.fr.distfiles.macports.org/gettext
--->  Verifying checksums for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext
--->  Building gettext
Error: org.macports.build for port gettext returned: command execution failed
Error: Failed to install gettext
Please see the log file for port gettext for details:
    /tmp/skl/SynfigStudio.app/Contents/Resources/var/macports/logs/_Users_konstantin_src_macports_SynfigStudio-app_Contents_Resources_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log
Error: The following dependencies were not installed: freetype libpng xz gettext zlib
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port fontconfig failed
$ 

Looks like it complains about missing automake. I'll attach the log file.

Changed 11 years ago by ksee.zelgadis@…

Attachment: main-1.log added

comment:6 Changed 11 years ago by Serge3leo (Serguei E. Leontiev)

Cc: leo@… added

Cc Me!

comment:7 Changed 11 years ago by Serge3leo (Serguei E. Leontiev)

gettext-0.18.3.1.tar.gz created using automake-1.13, but in MacPorts only have automake-1.14.

Workaround:

$ sudo port edit gettext
<delete or comment line 'patch files patch-gettext-tools-Makefile.am.diff'>

Probably, this fix is required for gettext-0.14/0.15. This patch created in a version r19673 seven years ago.

-- Sorry for my best English

Last edited 11 years ago by Serge3leo (Serguei E. Leontiev) (previous) (diff)

comment:8 Changed 11 years ago by ksee.zelgadis@…

@leo: I'm sure "port install fontconfig" command worked fine for me several months ago (on fresh MacPorts install of course). So this issue was introduced quite recently.

comment:9 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:10 in reply to:  8 Changed 11 years ago by Serge3leo (Serguei E. Leontiev)

Replying to ksee.zelgadis@…:

@leo: I'm sure "port install fontconfig" command worked fine for me several months ago (on fresh MacPorts install of course). So this issue was introduced quite recently.

IMHO, after r107382, which upgraded version of automake from 1.13.3 to 1.14, needed, or run `autoreconf --force', or no changes in Makefile.am.

Probably, patch-gettext-tools-Makefile.am.diff don't needed now.

comment:11 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: larryv@… ryandesign@… added

Larry, can I leave this to you to resolve?

comment:12 in reply to:  11 ; Changed 11 years ago by larryv (Lawrence Velázquez)

Owner: changed from macports-tickets@… to larryv@…
Port: gettext added
Status: newassigned
Summary: fontconfig @ Failed to install (clean MacPorts installation)gettext @0.18.3.1_0: using autoconf creates circular dependency chain

Replying to ryandesign@…:

Larry, can I leave this to you to resolve?

Yeah, I’ll take care of it.

I don’t suppose you know why the gettext-tools/Makefile.in patch was created? Doesn’t seem like it does anything important. I’d rather get rid of the patch altogether, if possible.

comment:13 in reply to:  12 ; Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to larryv@…:

I don’t suppose you know why the gettext-tools/Makefile.in patch was created? Doesn’t seem like it does anything important. I’d rather get rid of the patch altogether, if possible.

I think it prevents gettext from building the tests and examples? Presumably this was done to save time, since I guess the tests and examples don't end up getting used. Or maybe 7 years ago when the patch was added there was an error building the tests and examples. If it doesn't increase the build time significantly you can remove the patch.

comment:14 Changed 11 years ago by skymoo (Adam Mercer)

Cc: ram@… added

Cc Me!

comment:15 in reply to:  13 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to ryandesign@…:

I think it prevents gettext from building the tests and examples? Presumably this was done to save time, since I guess the tests and examples don't end up getting used. Or maybe 7 years ago when the patch was added there was an error building the tests and examples. If it doesn't increase the build time significantly you can remove the patch.

Building the examples didn’t seem to make much of a difference, so I removed the patch in r111242.

OP, try again? :)

Last edited 11 years ago by larryv (Lawrence Velázquez) (previous) (diff)

comment:16 Changed 11 years ago by ksee.zelgadis@…

Works perfectly now. Thank you!

comment:17 in reply to:  16 Changed 11 years ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: assignedclosed

Replying to ksee.zelgadis@…:

Works perfectly now. Thank you!

Whew. Sorry for the trouble.

Note: See TracTickets for help on using tickets.