Bash comes with a bundled version if libreadline and compiled with. The general requirement of ports is to rely on port dependencies instead of bundled ones. Please either provide an option to supply --with-installed-readline or make it default. This will ont hinder static building because we still have: ls /usr/local/lib/libreadline.*
so the archive can be used.
Thank you for your analysis. Using libreadline from ports by default but providing an option to use the bundled one seems like the right thing to do. I'm not sure how this was missed for so long.
A commit references this bug:
Date: Wed Jul 15 06:11:46 UTC 2020
New revision: 542245
Bash comes with a bundled version of libreadline and compiled with. Start using
devel/readline by default but provide an option to keep using the bundled one.
PR: 247932 (based on)
Submitted by: Michael Osipov <firstname.lastname@example.org>
Suggestion implemented and committed, thank you.
bash includes even more bundled libs:
# ls lib
glob/ intl/ malloc/ readline/ sh/ termcap/ tilde/
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
--without-libiconv-prefix don't search for libiconv in includedir and libdir
--with-included-gettext use the GNU gettext library included here
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
--without-libintl-prefix don't search for libintl in includedir and libdir
It might be worthwhile to analyze them too. I guess at least libintl (gettext) can used from ports.