Skip to contentSkip to conversation

Update the ncurses library package names

PATCH New Arvind Prasanna 2 participants 3 messages Aug 8, 2017 – Aug 11, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update the ncurses library package names

-- Should be libncurses-dev for Debian based distros and ncurses-devel for Redhat based distros. -- It saves time for the user to look up the actual package name.

---
 support/kconfig/lxdialog/check-lxdialog.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
support/kconfig/lxdialog/check-lxdialog.sh +3 -1
index 3ce0a23..5400aed 100755
@@ -54,7 +54,9 @@ EOF
 	    echo " *** required header files."                            1>&2
 	    echo " *** 'make menuconfig' requires the ncurses libraries." 1>&2
 	    echo " *** "                                                  1>&2
-	    echo " *** Install ncurses (ncurses-devel) and try again."    1>&2
+	    echo " *** Install ncurses (libncurses-dev for Debian based"  1>&2
+	    echo " distros and ncurses-devel for Redhat based distros)"   1>&2
+	    echo " and try again."    					  1>&2
 	    echo " *** "                                                  1>&2
 	    exit 1
 	fi
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 Update the ncurses library package names

Hi Arvind,

[I'm commenting on your v1, because as far as I can see, v2 only makes changes
that are not good, like removing your Sob).

Quoted 2 lines · Arvind Prasanna

-- Should be libncurses-dev for Debian based distros and ncurses-devel for Redhat based distros. -- It saves time for the user to look up the actual package name.

Don't start commit message lines with --, and wrap at 72 columns.

Quoted 11 lines
---
 support/kconfig/lxdialog/check-lxdialog.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
support/kconfig/lxdialog/check-lxdialog.sh +0 -0
index 3ce0a23..5400aed 100755

support/kconfig/lxdialog/check-lxdialog.sh EOF · line 59

Quoted 7 lines
support/kconfig/lxdialog/check-lxdialog.sh +3 -1
@@ -54,7 +54,9 @@ EOF
 	    echo " *** required header files."                            1>&2
 	    echo " *** 'make menuconfig' requires the ncurses libraries." 1>&2
 	    echo " *** "                                                  1>&2
-	    echo " *** Install ncurses (ncurses-devel) and try again."    1>&2
+	    echo " *** Install ncurses (libncurses-dev for Debian based"  1>&2
+	    echo " distros and ncurses-devel for Redhat based distros)"   1>&2
+	    echo " and try again."    					  1>&2

This is unfortunately a bit problematic. kconfig doesn't come from Buildroot,
it's copied from the Linux kernel. To be able to track the changes w.r.t. the kernel itself, we keep the differences in a set of patches, which you can find in support/kconfig/patches. So if you modify kconfig, you should also add a patch to that directory.

However, I wonder if it is really worth it. In fact, I'd much prefer that you
would push this patch to Linux itself, and then (if accepted) resync with the kernel. Send a mail to linux-kbuild [1] to get it upstream. And anyway, I think for us this is more relevant to put in docs/manual/prerequisite.txt rather than in this script.

Regards,
Arnout

[1] http://vger.kernel.org/vger-lists.html#linux-kbuild

Quoted 4 lines
support/kconfig/lxdialog/check-lxdialog.sh +0 -0
 	    echo " *** "                                                  1>&2
 	    exit 1
 	fi
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#2 lore raw

PATCH 1/1 Update the ncurses library package names

Hi Arnout:

Thank you for your reply. I am still learning the ropes contributing to open source projects and thank you for your guidance. I will have a look contributing this upstream.

Regards,

Arvind.

Quoted 71 lines · Arnout Vandecappelle

Hi Arvind,

[I'm commenting on your v1, because as far as I can see, v2 only makes
changes
that are not good, like removing your Sob).

Quoted 1 line · Arvind Prasanna

-- Should be libncurses-dev for Debian based distros and ncurses-devel

for Redhat based distros.

Quoted 1 line

-- It saves time for the user to look up the actual package name.

Don't start commit message lines with --, and wrap at 72 columns.

Review

Quoted 7 lines
---
 support/kconfig/lxdialog/check-lxdialog.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/support/kconfig/lxdialog/check-lxdialog.sh

support/kconfig/lxdialog/check-lxdialog.sh EOF · line 54

Quoted 5 lines

index 3ce0a23..5400aed 100755

support/kconfig/lxdialog/check-lxdialog.sh +0 -0
@@ -54,7 +54,9 @@ EOF
          echo " *** required header files."

1>&2

support/kconfig/lxdialog/check-lxdialog.sh EOF · line 55

Quoted 1 line
support/kconfig/lxdialog/check-lxdialog.sh +0 -0
          echo " *** 'make menuconfig' requires the ncurses libraries."

1>&2

support/kconfig/lxdialog/check-lxdialog.sh EOF · line 56

Quoted 1 line
support/kconfig/lxdialog/check-lxdialog.sh +0 -0
          echo " *** "

1>&2

support/kconfig/lxdialog/check-lxdialog.sh EOF · line 57

Quoted 1 line
support/kconfig/lxdialog/check-lxdialog.sh +0 -1
-         echo " *** Install ncurses (ncurses-devel) and try again."

1>&2

support/kconfig/lxdialog/check-lxdialog.sh EOF · line 57

Quoted 1 line
support/kconfig/lxdialog/check-lxdialog.sh +1 -0
+         echo " *** Install ncurses (libncurses-dev for Debian based"

1>&2

support/kconfig/lxdialog/check-lxdialog.sh EOF · line 58

Quoted 1 line
support/kconfig/lxdialog/check-lxdialog.sh +1 -0
+         echo " distros and ncurses-devel for Redhat based distros)"

1>&2

support/kconfig/lxdialog/check-lxdialog.sh EOF · line 59

Quoted 1 line
support/kconfig/lxdialog/check-lxdialog.sh +1 -0
+         echo " and try again."

1>&2

This is unfortunately a bit problematic. kconfig doesn't come from
Buildroot,
it's copied from the Linux kernel. To be able to track the changes w.r.t. the
kernel itself, we keep the differences in a set of patches, which you can find
in support/kconfig/patches. So if you modify kconfig, you should also add a patch to that directory.

However, I wonder if it is really worth it. In fact, I'd much prefer that
you
would push this patch to Linux itself, and then (if accepted) resync with the
kernel. Send a mail to linux-kbuild [1] to get it upstream. And anyway, I think
for us this is more relevant to put in docs/manual/prerequisite.txt rather than
in this script.

Regards,
Arnout

[1] http://vger.kernel.org/vger-lists.html#linux-kbuild

support/kconfig/lxdialog/check-lxdialog.sh EOF · line 60

Quoted 1 line
support/kconfig/lxdialog/check-lxdialog.sh +0 -0
          echo " *** "

1>&2

support/kconfig/lxdialog/check-lxdialog.sh EOF · line 62

Quoted 3 lines
support/kconfig/lxdialog/check-lxdialog.sh +0 -0
          exit 1
      fi
Quoted 8 lines

--

Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170811/fe8da151/attachment.html>