Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#30308 closed defect (fixed)

libiconv pulls in gawk

Reported by: danielluke (Daniel J. Luke) Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: Cc: ioweurwioe@…, ksze (Kal Sze)
Port: libiconv

Description

libiconv's configure script pulls in gawk (which isn't set as a dependency).

I discoved this when doing an uninstall/reinstall of libiconv, as gawk didn't run when libiconv had been uninstalled, yet libiconv wanted to run gawk.

This can probably be fixed similarly to how we handle it with apr (set an environment variable so that the configure script uses 'awk' instead of 'gawk')

Change History (9)

comment:1 Changed 9 years ago by ryandesign (Ryan Schmidt)

Ok, but there are probably thousands of other ports that do the same, and not just with awk but with sed and grep too. I'm not sure it's worth finding and fixing this everywhere. Doesn't it generally work fine?

comment:2 Changed 9 years ago by danielluke (Daniel J. Luke)

It's probably not worth finding and fixing everywhere, but I think it would be worthwhile to fix for libiconv - since gawk depends on it.

This sequence causes problems:

  1. Install libiconv
  2. Install gawk
  3. force uninstall libiconv
  4. realize you want libiconv and try to install it -> this will fail because libiconv's configure will try to use the now broken gawk

To fix it, you have to uninstall or deactivate gawk (and then libiconv can be installed and gawk can be reinstalled or reactivated).

If libiconv uses awk instead, 4 works without having to deal with anything extra.

comment:4 in reply to:  2 Changed 9 years ago by ryandesign (Ryan Schmidt)

Status: newassigned

Replying to dluke@…:

It's probably not worth finding and fixing everywhere, but I think it would be worthwhile to fix for libiconv - since gawk depends on it.

You're right, that sounds like a good reason to me.

comment:5 Changed 9 years ago by ioweurwioe@…

Possibly related: upgrade on Lion fails because of gawk incompatibility (gawk and autoconf uninstall fixes the problem)

:info:configure configure: creating ./config.status
:info:configure config.status: creating Makefile
:info:configure dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
:info:configure   Referenced from: /opt/local/bin/gawk
:info:configure   Reason: Incompatible library version: gawk requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
:info:configure ./config.status: line 1617: 38917 Done                    eval sed \"\$ac_sed_extra\" "$ac_file_inputs"
:info:configure      38918 Trace/BPT trap: 5       | $AWK -f "$tmp/subs.awk" > $tmp/out
:info:configure config.status: error: could not create Makefile
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_libiconv/libiconv/work/libiconv-1.13.1-x86_64" && ./configure --prefix=/opt/local --disable-dependency-tracking --enable-static --docdir=/opt/local/share/doc/libiconv --without-libiconv-prefix --without-libintl-prefix --disable-nls --enable-extra-encodings --disable-dependency-tracking " returned error 1

comment:6 in reply to:  5 Changed 9 years ago by ryandesign (Ryan Schmidt)

Replying to ioweurwioe@…:

Possibly related:

Yes, that is exactly the problem described above.

comment:7 Changed 9 years ago by ryandesign (Ryan Schmidt)

Cc: swordangel@… added

Has duplicate #30382.

comment:8 Changed 9 years ago by ryandesign (Ryan Schmidt)

Cc: ioweurwioe@… added

comment:9 Changed 9 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: assignedclosed

Fixed libiconv in r81155.

comment:10 Changed 9 years ago by ryandesign (Ryan Schmidt)

Fixed gettext in r81158 for good measure.

Note: See TracTickets for help on using tickets.