Turns out that gawk's dependency on readline is an option, but enabled by default: # cd /usr/pkgsrc/lang/gawk # ls CVS DESCR Makefile PLIST distinfo options.mk patches # make show-options Any of the following general options may be selected: portals Enable BSD Portals support readline Enable use of GNU readline library. These options are enabled by default: readline These options are currently enabled: readline You can select which build options to use by setting PKG_DEFAULT_OPTIONS or PKG_OPTIONS.gawk. # make show-depends readline>=6.0:../../devel/readline gmp>=5.0.1:../../devel/gmp mpfr>=4.0.0:../../math/mpfr So an alternative would be to just disable the option for readline and rebuild gawk without it. Since things are working now I'll let it go, but given what I think of including something like readline in a non-interactive command I may disable it in the future. Does a package formally depend on another if that dependency is an option that's enabled? The output from make show-depends would suggest the answer is yes but there may be more going on behind the scenes that i don't know about. - Dave V. On Sun, 14 Apr 2019 15:24:09 -0400 Greg Troxel <gdt%lexort.com@localhost> wrote: > David Vollenweider <dvollen%gmail.com@localhost> writes: > > > Rebuilding gawk after removing the symlink libreadline.so.7 to > > libreadline.so.8.0.0 worked. After that I rebuilt libtool-base > > using make replace and the issue with ltmain.sh went away, too. I > > didn't see anything involving unsafe_depends in the pkg_info -B > > gawk output before I did the rebuild or after, but I ran pkg_admin > > rebuild-tree anyway. > > rebuild-tree will not fix unsafe_depends. The problem it fixes, that > you are likely to have, is a dependency registered on two versions of > something, when only the latest is installed. That breaks updating, > but it doesn't cause what you experienced. > > It seems likely that the underlying cause is a failure of gawk to > depend formally on readline when it actually does. It's hard to go > back and figure that out if you can't reproduce it (not a criticism; > just how it is).
Attachment:
pgpv4xjIOYMn_.pgp
Description: OpenPGP digital signature