libreadline should be made optional in physfs. (USE flag). it should be made optional, because if it is disabled, it will compile in osx if it is enabled (default), it will not compile in osx. to my knowledge, physfs still works fine. (testing lincity-ng which uses physfs)
Created attachment 76211 [details, diff] this is my proposed ebuild patch to physfs should libreadline be added to DEPEND when the use flag is set?
For sure. If you depend on readline, you need to have it installed. And if you only depend on it with a USE-flag, then that depend should be conditional as well. Which version of physfs are you working with? The versions I see, don't have such dependency, hence I wonder why is this a problem at all? Doesn't configure figure out there is no (or insufficient) readline support on OSX? CC-ing games herd as they might have some input on this as well.
dev-games/physfs-1.0.1 configure detects a version of libreadline installed, but the installed version is insufficient. (linker errors with _add_history and _readline).
Its finding libedit....
I don't think the ebuild has to be fixed. Configure should do a more extensive test, but Apple was wrong by symlinking libedit to libreadline too, IMHO. So it's a bit of a nasty problem.
not really the only functions used are add_history() and readline(), both of which configure.in looks for in libreadline
in prefix this problem is non-existent.