Skip Menu |
 

Subject: configure: chech for libncursesw, if libncurses is not found
From: Дилян Палаузов <dilyan.palauzov@aegee.org>
To: krb5-bugs@mit.edu
Date: Fri, 12 Apr 2019 16:12:17 +0000
Hello,

• krb5-1.16.3/src/configure.in searches for libncurses and if it cannot find it, gives up. It should also search for
libncursesw (in particular, when libreadlinfo is linked towards libtinfow.so).

• rename configure.in → configure.ac

Regards
Дилян
What platform does this problem apply to?

Ideally I'd like to use pkg-config here, but I don't think readline
provides a pkg-config file.

Alternatively, we could eliminate the -lncurses (and possibly -lhistory
since I think we don't use it directly) and just assume that the
platform has functional library dependencies and a shared libreadline.
Subject: Re: [krbdev.mit.edu #8795] configure: chech for libncursesw, if libncurses is not found
From: Дилян Палаузов <dilyan.palauzov@aegee.org>
To: rt-comment@krbdev.mit.edu
Date: Fri, 12 Apr 2019 18:08:25 +0000
RT-Send-Cc:
Hello,

it is a “Linux from Scratch”.

Regards
Дилян

On Fri, 2019-04-12 at 13:03 -0400, Greg Hudson via RT wrote:
Show quoted text
> What platform does this problem apply to?
>
> Ideally I'd like to use pkg-config here, but I don't think readline
> provides a pkg-config file.
>
> Alternatively, we could eliminate the -lncurses (and possibly -lhistory
> since I think we don't use it directly) and just assume that the
> platform has functional library dependencies and a shared libreadline.
Subject: Re: [krbdev.mit.edu #8795] configure: chech for libncursesw, if libncurses is not found
To: <krb5-bugs@mit.edu>
From: Pierre Labastie <pierre.labastie@neuf.fr>
Date: Fri, 12 Apr 2019 22:03:39 +0200
RT-Send-Cc:
On 12/04/2019 20:08, Дилян Палаузов via RT wrote:
Show quoted text
> Hello,
>
> it is a “Linux from Scratch”.
>
> Regards
> Дилян
>
> On Fri, 2019-04-12 at 13:03 -0400, Greg Hudson via RT wrote:
>> What platform does this problem apply to?
>>
>> Ideally I'd like to use pkg-config here, but I don't think readline
>> provides a pkg-config file.
>>
>> Alternatively, we could eliminate the -lncurses (and possibly -lhistory
>> since I think we don't use it directly) and just assume that the
>> platform has functional library dependencies and a shared libreadline.
>
>
sorry to jump in, but I think linux from scratch has libncurses.so pointing to
libncursesw.so. Exactly, they do:
for lib in ncurses form panel menu ; do
rm -vf /usr/lib/lib${lib}.so
echo "INPUT(-l${lib}w)" > /usr/lib/lib${lib}.so
ln -sfv ${lib}w.pc /usr/lib/pkgconfig/${lib}.pc
done
So libncurses.so is a linker script, and passing -lncurses is equivalent to
passing -lncursesw.

Now, whether krb5 configure should use a different method is another story.

Pierre Labastie
Subject: Re: [krbdev.mit.edu #8795] configure: chech for libncursesw, if libncurses is not found
From: Дилян Палаузов <dilyan.palauzov@aegee.org>
To: rt-comment@krbdev.mit.edu
Date: Fri, 12 Apr 2019 21:44:20 +0000
RT-Send-Cc:
Download (untitled) / with headers
text/plain 1.4KiB
Hello,

I think this statement for LFS was in the past (15 years ago) not valid.

Anyway, it does not matter which kind of system it is. If libncursesw is available and libncurses is missing,
./configure shall be happy.

Regards
Дилян // AEGEE Mail

On Fri, 2019-04-12 at 16:24 -0400, Pierre Labastie via RT wrote:
Show quoted text
> On 12/04/2019 20:08, Дилян Палаузов via RT wrote:
> > Hello,
> >
> > it is a “Linux from Scratch”.
> >
> > Regards
> > Дилян
> >
> > On Fri, 2019-04-12 at 13:03 -0400, Greg Hudson via RT wrote:
> > > What platform does this problem apply to?
> > >
> > > Ideally I'd like to use pkg-config here, but I don't think readline
> > > provides a pkg-config file.
> > >
> > > Alternatively, we could eliminate the -lncurses (and possibly -lhistory
> > > since I think we don't use it directly) and just assume that the
> > > platform has functional library dependencies and a shared libreadline.
> sorry to jump in, but I think linux from scratch has libncurses.so pointing to
> libncursesw.so. Exactly, they do:
> for lib in ncurses form panel menu ; do
> rm -vf /usr/lib/lib${lib}.so
> echo "INPUT(-l${lib}w)" > /usr/lib/lib${lib}.so
> ln -sfv ${lib}w.pc /usr/lib/pkgconfig/${lib}.pc
> done
> So libncurses.so is a linker script, and passing -lncurses is equivalent to
> passing -lncursesw.
>
> Now, whether krb5 configure should use a different method is another story.
>
> Pierre Labastie
>
From: ghudson@mit.edu
Subject: git commit

Simplify libreadline configure support

If configure is explicitly asked to build with libreadline, look for
and link against only -lreadline, relying on the platform to resolve
any dependencies.

https://github.com/krb5/krb5/commit/64e82a1da0e252df02894df22735236b9aa62f26
Author: Greg Hudson <ghudson@mit.edu>
Commit: 64e82a1da0e252df02894df22735236b9aa62f26
Branch: master
src/configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)