[MacPorts] #57955: gawk: Library not loaded: /opt/local/lib/libreadline.7.dylib

MacPorts noreply at macports.org
Sun Jan 27 14:59:18 UTC 2019

#57955: gawk:  Library not loaded: /opt/local/lib/libreadline.7.dylib
  Reporter:  similate  |      Owner:  (none)
      Type:  defect    |     Status:  closed
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.5.4
Resolution:  wontfix   |   Keywords:
      Port:  gawk      |
Changes (by ryandesign):

 * cc: Schamschula (added)


 Replying to [comment:11 kencu]:
 > It always seems to be gawk that craps everyone out when readlne is
 bumped, tho.

 Certainly. gawk depends on readline; gsed, grep and perl don't, but they
 have other dependencies, and they would experience the same problem if
 those other dependencies were bumped to a new library version.

 > Havok for everyone until they work through it.

 Fortunately library version increases in those dependencies are rare. And
 many users who get binaries, and many users who build from source and
 happen to upgrade ports in the right order, won't experience any problems.

 > Is there no method by which this can be avoided? I wonder what the other
 50 linux pkg mgrs do about this--must be just the same for them...

 I don't know what Linux package managers do. But they are not in the same
 situation that MacPorts is in on macOS. macOS comes with an implementation
 of awk, grep, sed, and perl. We rely on that. Linux package managers
 manage all the software included with Linux; there is no non-package-
 managed copy of awk, grep, sed or perl that could be used, so I imagine
 they do declare all required dependencies.

 If we are specifically concerned about the breakage when readline's major
 version changes about once a year (or similar breakage when ncurses' major
 version changes) we could change the gawk port not to use readline. I
 would expect gawk is not used in interactive mode very frequently, which
 is the only circumstance where readline support would be useful. Users who
 still want readline support could use `rlwrap`.

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

More information about the macports-tickets mailing list