From: Justin <jlec@gentoo.org>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Use config scripts to detect ncurses libs for, menuconfig/nconfig dialogs
Date: Mon, 25 Feb 2013 21:32:54 +0100 [thread overview]
Message-ID: <512BCA76.6080601@gentoo.org> (raw)
In-Reply-To: <201302251930.22293.yann.morin.1998@free.fr>
[-- Attachment #1: Type: text/plain, Size: 1518 bytes --]
On 25.02.2013 19:30, Yann E. MORIN wrote:
> Justin, All,
>
> On Sunday 24 February 2013 Justin wrote:
>> when ncurses is build with --with-termlib several symbols are moved to a
>> seperate terminfo library (libtinfo.so). Current Kernel buildsystem
>> results in a build error with menuconfig and nconfig dialogs.
>
> Do you know of a distribution where this is the case, so I can test?
This is using Gentoo Linux testing with ld.gold. But I assume you will
get the same result using any distro with gold.
>
> I think I would prefer spearate patches, one for mconf, one for nconf.
I will send new patches in a separate mail, so that we can do the review
there.
>>
>> -HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses
>> +HOSTLOADLIBES_nconf = `pkg-config --libs menu panel ncurses`
>
> On my distro (Debian stable) ncurses has no pkg-config file installed, so
> this fails.
I already feared that. Will convert it to ncurses5-config which should
be available on any recent distro.
>> - fi
>> + if type -p ncurses5-config &> /dev/null ; then
> ^^
> This is a bashism, and will not work on purely POSIX shells.
> Please use: >/dev/null 2>&1
Thanks for noting this.
>> + exit 0
>
> (nit-picking) I'd prefer you be consistent with existing code which just
> calls 'exit' without a number.
I added it to be more precise on the return value. But I don't care as
simple exit should result in the same.
Thanks for the review.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]
next prev parent reply other threads:[~2013-02-25 20:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-24 15:50 [PATCH] Use config scripts to detect ncurses libs for, menuconfig/nconfig dialogs Justin
2013-02-25 18:30 ` Yann E. MORIN
2013-02-25 20:32 ` Justin [this message]
2013-02-25 20:53 ` Yann E. MORIN
2013-02-26 6:59 ` justin
2013-02-27 14:30 ` justin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=512BCA76.6080601@gentoo.org \
--to=jlec@gentoo.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yann.morin.1998@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).