On Sat, Dec 10, 2016 at 12:15:10PM -0500, Mike Frysinger wrote: > On 20 Oct 2016 17:19, Karel Zak wrote: > > On Thu, Oct 20, 2016 at 01:34:24PM +0200, Ruediger Meier wrote: > > > For me it looks like the even the ncurses authors do not like their own > > > pc files. Disabled by default and it's a pain to get them built with > > > correct names and installed in the right location. Even --prefix does > > > not work for their pc files. Plus the backward compatibility > > > problem ... > > > > OK, I have applied: > > https://github.com/karelzak/util-linux/commit/e5cc93b5a8854fce80537f86a244977df212dcb5 > > > > with ncurses-config and fallback to old good AC_CHECK_LIB. > > > > We can add fallback to pkg-config too, but it sounds like overkill if > > ncurses-config is everywhere. > > ugh, this change makes things worse. the point of using pkg-config > is also to get sane cross-compiling. by always running `xxx-config`, > it now breaks cross-compiling. Does it mean that you have system (build root) where is no ncurses-config{5,6}, but you have pkg-config only? The argument for ncurses-config has been that it seems it's preferred solution by ncurses upstream. It will be simple to extend UL_NCURSES_CHECK() function to support also pkg-config. > why can't we just tell distros to fix their ncurses install ? it's > not like 2.29, released a month ago, is getting rolled out to old > distros where people can't update their ncurses systems. Well, it's pretty common that people recompile any package on the current system. I think our goal is to support as much as possible scenarios (yes, nothing is unlimited including my patience with obscure installations ;-) > "it's hard" is a pretty weak argument for distro maintainers. That's true. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html