summaryrefslogtreecommitdiffstats
path: root/package/ncurses
Commit message (Collapse)AuthorAgeFilesLines
* ncurses: disable terminfo database install for host-ncursesPeter Korsgaard2018-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit b35ad5d0b45e (ncurses: make host-ncurses use host terminfo), we are now pointing host-ncurses to the host terminfo (typically) located in /usr/share/terminfo. With this change we are reusing the existing host terminfo database, so there is no point in trying to install our own on top. The user running buildroot typically will have no write access to /usr/share/terminfo, but tic in that case falls back to writing the database to $HOME/.terminfo. Neither of which are desirable. In case $HOME/.terminfo also isn't writable, tic fails, breaking the install step for host-ncurses: ** Building terminfo database, please wait... Running sh ./shlib tic to install /usr/share/terminfo ... You may see messages regarding extended capabilities, e.g., AX. These are extended terminal capabilities which are compiled using tic -x If you have ncurses 4.2 applications, you should read the INSTALL document, and install the terminfo without the -x option. "terminfo.tmp", line 21272, terminal 'v3220': /home/peko/.terminfo: permission denied (errno 30) To fix all of this, simply disable the terminfo database install. Suggested-by: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Acked-by: Hollis Blanchard <hollis_blanchard@mentor.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* ncurses: make host-ncurses use host terminfoHollis Blanchard2018-07-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Host GDB suffers a serious problem: pressing backspace (or ^W ^U or any other "delete" key) results in a plain space being printed instead, making the command prompt almost completely unusable. That's because it's using host-ncurses, which embeds a path for the terminfo database into the library itself. That path ends up being something like /home/hollisb/buildroot.git/output/host/share/terminfo, which obviously doesn't generally exist other hosts. ('relocate-sdk.sh' cannot and does not edit binaries like libncurses.so.6, so doesn't resolve this problem.) /usr/share/terminfo is a far better path to use, since it almost certainly exists on the host. Theoretically, it could be from a different ncurses version with incompatible terminfo database format, but this doesn't seem to be a problem in practice. (Future patches could address the theoretical problem if it actually appears in real life.) This change allows buildroot's host gdb, which uses ncurses 6.x, to work on RHEL5, RHEL6, and RHEL7, which all provide terminfo from ncurses 5.x. Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package: remove Blackfin related codeThomas Petazzoni2018-04-151-2/+0
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* ncurses: fix build failure with ncurses 6.1Adam Duskett2018-02-081-0/+1
| | | | | | | | | | | | | | | Ncurses 6.1 introduced the config option --disable-stripping which is set to no by default. Set this option to ensure that ncurses doesn't try to strip the executables. Fixes: http://autobuild.buildroot.net/results/3a5ddfcf7cd3a5c2bc068e3e33c823d6bcd3e79b Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/ncurses: add option to install extra terminfo filesCam Hutchison2018-02-062-1/+12
| | | | | | | | | | | Add an option to ncurses to install extra user-configured terminfo files. By default, only a small number of vital terminfo files are installed on the target. This allows a build to specify the terminfo files it needs. Signed-off-by: Cam Hutchison <camh@xdna.net> [Thomas: qstrip the variable before using it.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* ncurses: bump to 6.1Adam Duskett2018-02-064-33/+5
| | | | | | | Remove 0002-recognise-uclinux.patch as it has been applies upstream. Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* ncurses: install 256 color terminfo files unconditionallyTrent Piepho2018-01-071-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | There are three 256 color terminfo files that buildroot only installs if ncurses is configured with wide character support, which also enables ext-color. There is a fourth 256 color terminfo file that does not depend on wchar suport and is always installed. This changes that to always install all four 256 color terminfo files. When ncurses has ext-colors enabled,it allows 256 fg and bg colors at the same time. Without ext-colors, it is still possible to use the 256 color terminfo files and one can get a combination of fb and bg colors that equals up to 256, e.g. 256 fg colors on one background or 16 fg and 16 bg colors. In short, the 256 color files work fine without wchar or ext-color support and support more colors than the normal xterm, etc. terminfo files. It's common today for the default terminal to use xterm-256color and it's nice if thinks like vim and top work out of the box. Signed-off-by: Trent Piepho <tpiepho@impinj.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/*/Config.in: fix help text check-package warningsThomas Petazzoni2017-12-181-2/+2
| | | | | | | | | | | | | This commit fixes the warnings reported by check-package on the help text of all package Config.in files, related to the formatting of the help text: should start with a tab, then 2 spaces, then at most 62 characters. The vast majority of warnings fixed were caused by too long lines. A few warnings were related to spaces being used instead of a tab to indent the help text. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: Copy terminfo for 'screen-256color' terminalAndrey Smirnov2017-06-041-0/+1
| | | | | | | | Tmux uses 256 color version of 'screen' terminfo by default, so copy corresponding file to support that usecase. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: Copy terminfo for 'dumb' terminalAndrey Smirnov2017-06-041-0/+1
| | | | | | | | Definition of 'dumb' terminal is required to be able to call 'top -b' from 'procps-ng'. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* busybox: preserve ncurses progs/toolsMatt Weber2017-04-141-5/+0
| | | | | | | | | | | | | | | | | The ncurses package installs a full version of clear and reset(tset) tools. Preserve these by disabling the options in the busybox config file. This removes the need for ncurses to depend on busybox for solely ordering of target install. This commit resolves the following python circular dependency with python. busybox -> libselinux -> python3 -> ncurses -> busybox Fixes: http://autobuild.buildroot.net/results/db1/db1e6f3054092fc5576ccab8e04a3b9d74ca9a8c/ Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> [Thomas: minor tweaks.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: drop unneeded trailing backslashesRodrigo Rebello2017-04-011-3/+2
| | | | | Signed-off-by: Rodrigo Rebello <rprebello@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: bump to 6.0Adam Duskett2017-04-016-129/+38
| | | | | | | | | | | | | | | | ncurses 6.0 has been out for a while now (August 8th 2015!), so this patch brings us up to the latest version. - The first patch is no longer needed as it was fixed in the new release. - The other two packages are still applicable, so they have been updated to apply properly on the new ncurses version. - A new option: --with-pkg-config-libdir has been added. Without it pkg files wouldn't install to the correct location. - NCURSES_ABI_VERSION is no longer needed, as there is only 6. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: remove BR2_PACKAGE_NCURSES_TARGET_{FORM, MENU, PANEL} optionsThomas Petazzoni2017-02-262-59/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ncurses sub-options BR2_PACKAGE_NCURSES_TARGET_{FORM,MENU,PANEL} are currently very badly broken: they only control whether the libform, libmenu and libpanel libraries are installed in $(TARGET_DIR), but do absolutely nothing about their installation in $(STAGING_DIR). This means that when one of those options is disabled, the corresponding library is indeed not installed in the target, but is available in staging. It can therefore be detected by the configure script of another package and used... even though the library will not be in the target, causing a runtime failure. Internally, ncurses.mk uses the "make install" logic of ncurses for the staging installation, but uses a completely hand-written logic for the target installation, which is the reason for this desynchronization between what's installed in staging and target. When BR2_PACKAGE_NCURSES_WCHAR=y, this also causes some build failures. Indeed, when BR2_PACKAGE_NCURSES_WCHAR=y, Buildroot creates some symbolic links lib<foo>.so -> lib<foo>w.so in staging and target, but only for the lib<foo> that have been enabled by BR2_PACKAGE_NCURSES_TARGET_{FORM,MENU,PANEL}. Due to this, a package that for example needed the libmenu library but forgot to select BR2_PACKAGE_NCURSES_TARGET_MENU was: - Building fine with BR2_PACKAGE_NCURSES_WCHAR disabled (because libmenu.so exists in staging), but would fail to run at runtime because libmenu.so is not in the target. - Fail to build with BR2_PACKAGE_NCURSES_WCHAR=y because only libmenuw.so exists, and not the libmenu.so symbolic link. Since those libraries are small (43K for libform, 21K for libmenu and 8.2K for libpanel), this commit takes the very simple approach of removing those options, and installing the libraries unconditionally. It therefore uses the "make install" logic for both the staging *and* target installation. In detail, this commit: - Removes the NCURSES_PROGS variable, not needed since --without-progs already allows to disable the build and installation of programs. - Removes the NCURSES_LIBS-y variable, and replaces it with a single unconditional assignement to NCURSES_LIBS, only used to create the lib<foo>w.so -> lib<foo>.so symbolic links when wchar support is enabled. - Removes NCURSES_INSTALL_TARGET_CMDS and the functions it was calling: NCURSES_INSTALL_TARGET_LIBS and NCURSES_INSTALL_TARGET_PROGS. - Adds a NCURSES_TARGET_SYMLINK_RESET hook to create the reset -> tset symbolic link, as was done before. - Adds a NCURSES_TARGET_CLEANUP_TERMINFO to cleanup the terminfo files in the target, so that we stay in the same situation in terms of installed terminfo files. - Removes the BR2_PACKAGE_NCURSES_TARGET_{FORM,MENU,PANEL} options from the Config.in files: both their definition and usage. - Simplifies all the symlink dance for lib<foo> -> lib<foo>w, because as Yann E. Morin suggested, this dance is only needed in staging, not in the target. Once binaries have been built, they refer to the SONAME of the library, which is the lib<foo>w variant (for shared linking). For static linking and .pc files, it's obvious that we don't care about them on the target. Therefore the NCURSES_LINK_LIBS_STATIC, NCURSES_LINK_LIBS_SHARED and NCURSES_LINK_PC functions no longer take any argument: they always apply to STAGING_DIR only. NCURSES_LINK_TARGET_LIBS is removed. It is worth mentioning that adding Config.in.legacy support is *NOT* necessary. Indeed: - If they were disabled before this patch, having them in Config.in.legacy would not trigger the legacy warning. - If they were enabled before this patch, then the behavior is unchanged: all libraries are now unconditionally installed. So there is no point in warning the user. We double-checked the installed size of a filesystem containing just ncurses before and after this patch, and the only folder that has its size changed is /usr/lib, growing from 852 KB to 932 KB in the wchar enabled case. That's a 80 KB system size increase. This commit fixes the sngrep build failure and potentially numerous runtime issues with ncurses. Fixes: http://autobuild.buildroot.net/results/7b5db21a6c568e6c6c8fe2b5d5a2f5ca24df510c/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: use $(HOST_MAKE_ENV) when calling $(MAKE)Gustavo Zacarias2016-10-221-2/+2
| | | | | | Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: use $(TARGET_MAKE_ENV) when calling $(MAKE)Gustavo Zacarias2016-10-151-2/+2
| | | | | | Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/ncurses: fix build on noMMU uclinux targetsYann E. MORIN2016-08-211-0/+30
| | | | | | | | | | | | | | | | | | | | | The ncurses buildsystem does not recognise 'uclinux' as being a 'linux', so it falls back to generic checks, especially when trying to decide what macros to define. So it misses defining absolutely required macros when doing widechar, which break the bui,d. But 'uclinux' is just a 'linux' like any other in this respect. We fix both aclocal.m4 and the generated ./configure script because ncurses does not autoreconf correctly (see comment in 0001-*.patch). Fixes: http://autobuild.buildroot.org/results/d5c/d5c787d34acbfc0c0c7bd8cc0e15b5bc2460d88a/ http://autobuild.buildroot.org/results/fc4/fc4b41fb955c390913a879e0202760347ce29987/ [...too many to list...] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: reinstall l/linux terminfo fileThomas Petazzoni2016-08-051-0/+1
| | | | | | | | | This file was installed prior to the refactoring done in commit 33ba5188351ece027455e460f6cba4245af49f3a ("ncurses: factorize terminfo files installation"). Reported-by: Benoît Allard <benoit.allard@greenbone.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: use foreach make loops instead of shell for loopsThomas Petazzoni2016-08-031-20/+18
| | | | | | | | | | | The main benefit of using make foreach loops is that they will abort if one of the iteration of the loop fails. The current for loops will continue, and only report a failure if the last iteration was a failure, but will silently ignore other errors. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* ncurses: factorize terminfo files installationThomas Petazzoni2016-08-031-25/+22
| | | | | | | | | | This long list of commands to copy the terminfo files from staging to target is really silly and can be factorized using a NCURSES_TERMINFO_FILES variable, which is then iterated through. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* ncurses: install PuTTY terminfo filesDavid Glessner2016-08-021-1/+6
| | | | | | Signed-off-by: David Glessner <david.glessner@rockwellcollins.com> Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: remove empty host dependencies definitionJulien Floret2016-07-031-1/+0
| | | | | Signed-off-by: Julien Floret <julien.floret@6wind.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: fix gcc 5 compile issue for realMikhail Peselnik2015-07-261-28/+38
| | | | | | | | | | | | | | | | | | | | The previous patch didn't work in all cases. The new patch is taken from upstream: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=commit;h=97bb4678dc03e753290b39bbff30ba2825df9517 Fetch from: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff;f=ncurses/base/MKlib_gen.sh;h=b91398c740a266f10edbbce19f19c52b9709556f;hp=d8cc3c9751faa157d0c8cb8e16fbe4217703966b;hb=97bb4678dc03e753290b39bbff30ba2825df9517;hpb=762520a7930d7f698d542628d3c04bc201f7dac2 [Thomas: - removed Signed-off-by in the Buildroot commit from the ncurses author: the ncurses author never submitted this patch to Buildroot. - fixed the Author of the Buildroot commit, it was still "kyak" - added a description + Signed-off-by in the patch itself.] Signed-off-by: Mikhail Peselnik <bas@bmail.ru> Acked-by: Jaap Crezee <jaap@jcz.nl> Tested-by: Jaap Crezee <jaap@jcz.nl> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/ncurses: Fix GCC 5.x preprocessor failureDoug Kehn2015-05-311-0/+33
| | | | | | | | | | | | | | | Building ncurses 5.9 with GCC 5.x fails with a syntax error, caused by earlier preprocessing. This failure is more likely when building for host (e.g. host-ncurses) that recently updated to GCC 5.x. This patch is taken from the following link (more information is also available here): https://groups.google.com/forum/#!topic/sage-trac/U31shviuqzk Signed-off-by: Doug Kehn <rdkehn@yahoo.com> Acked-by: Jaap Crezee <jaap@jcz.nl> Tested-by: Jaap Crezee <jaap@jcz.nl> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: indentation cleanupJerzy Grzegorek2015-03-311-2/+3
| | | | | | | This commit doesn't touch infra packages. Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: add support for 256 colorsThierry Bultel2015-02-031-2/+12
| | | | | | | | | [Thomas: fixup nano to use $(NCURSES_CONFIG_SCRIPTS) now that the ncurses config script can have a different name depending on the configuration.] Signed-off-by: Thierry Bultel <tbultel@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/*: rename patches according to the new policyPeter Korsgaard2015-02-031-0/+0
| | | | | | | Autogenerated from rename-patch.py (http://patchwork.ozlabs.org/patch/403345) Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/ncurses: fix builds with both shared and static libsYann E. MORIN2014-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When both shared and static libs are enabled, we have two shell constructs to run, but they are not properly separated, leading to build failures like: ln -sf libncursesw.a /home/idnc_sk/IOLINUX/builds/micro-x86_64-corei7/ output/host/usr/x86_64-buildroot-linux-uclibc/sysroot/usr/lib/libcurse s.a for lib in libncurses libmenu libpanel libform; do ln -sf ${lib}w. so /home/idnc_sk/IOLINUX/builds/micro-x86_64-corei7/output/host/usr/x8 6_64-buildroot-linux-uclibc/sysroot/usr/lib/${lib}.so; done /bin/bash: -c: line 0: syntax error near unexpected token `do' /bin/bash: -c: line 0: `ln -sf libncursesw.a /home/idnc_sk/IOLINUX/bui lds/micro-x86_64-corei7/output/host/usr/x86_64-buildroot-linux-uclibc/ sysroot/usr/lib/libcurses.a for lib in libncurses libmenu libpanel lib form; do ln -sf ${lib}w.so /home/idnc_sk/IOLINUX/builds/micro-x86_64-c orei7/output/host/usr/x86_64-buildroot-linux-uclibc/sysroot/usr/lib/${ lib}.so; done' As can be seen, there is a missing semi-colon ';' between the symlink command and the for loop: ln -sf libncursesw.a [...]/libcurses.a for lib in [...] Fix that by adding a semi-colon after each first shell constructs, to properly separate the two. If the second one is not enabled (i.e. for a static-only build), there is a trailing semi-colon, but that's perfectly valid shell syntax. Reported-by: idnc_sk on IRC Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: add hash fileGustavo Zacarias2014-12-151-0/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* ncurses: fix gpm supportGustavo Zacarias2014-12-151-0/+8
| | | | | | | | | | | The CF_LIB_SONAME macro doesn't work when cross compiling so we need to specify the lib name for libgpm explicitly. While at it make gpm support explicit in the form of --without-gpm when it's not selected and adding it to dependencies when it is. Fixes: http://autobuild.buildroot.net/results/32a/32a5ba3905772a3f2f2ec9d1b290a109fe22d9f9/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* pckage/ncurses: fix pkg-config files for ncurseswYann E. MORIN2014-12-151-0/+10
| | | | | | | | | | | | | | | | Currently, ncurses creates symlinks from the non-'w' variants to the equivalent 'w' variant, but forgets to do so for pkg-config files. Do that for the pkg-config files too. Should fix numerous autobuild failures: http://autobuild.buildroot.net/results/3c4/3c44dfc6e3f151bef751f39cac336fef3d6a0099/ http://autobuild.buildroot.net/results/38c/38c81407bb8d0677e87b3a01f9a1fc1372ab4738/ ... Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/ncurses: trim leading 'lib' from definition of libs to installYann E. MORIN2014-12-151-7/+7
| | | | | | | | | | | | | Currently, ncurses creates symlinks from the non-'w' variants to the equivalent 'w' variant, but forgets to do so for pkg-config files. To be able to share the same list between the libraries and the pkg-config files to symlink, just trim the 'lib' prefix of libraries in the definition, and just add it back at the time we need it. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/ncurses: slight code re-arrangementYann E. MORIN2014-12-151-5/+5
| | | | | | | | | | | Move the definition of libraries to install before it is actually used. Also, in a coming changeset, it will also be used to know which pkg-config files to symlink. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/ncurses: fix shared-only libsYann E. MORIN2014-12-151-11/+9
| | | | | | | | | | For a shared-only build, do not create the symlinks to the static libraries, since they do not exist. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* ncurses: better handling for shared/static libraryThomas Petazzoni2014-12-121-1/+8
| | | | | | | | | Now that we have clear options for the three cases of shared only, static only and shared+static, let's use them in ncurses to pass the appropriate --{with,without}-{shared,normal} options. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* ncurses: speed up host build by disabling static library buildingThomas Petazzoni2014-12-111-1/+2
| | | | | | | | | | | | | | For the host variant of packages, we normally only build the shared libraries. However, ncurses uses non-standard options to select between shared/static and therefore the host variant was building both of them, even though the static libraries were unused. By passing --without-normal, we disable the build of static libraries. It saves a bit of disk space, and on my laptop, host-ncurses takes 26 seconds to build instead of 40 seconds. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* Rename BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBSThomas Petazzoni2014-12-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | Since a while, the semantic of BR2_PREFER_STATIC_LIB has been changed from "prefer static libraries when possible" to "use only static libraries". The former semantic didn't make much sense, since the user had absolutely no control/idea of which package would use static libraries, and which packages would not. Therefore, for quite some time, we have been starting to enforce that BR2_PREFER_STATIC_LIB should really build everything with static libraries. As a consequence, this patch renames BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBS, and adjust the Config.in option accordingly. This also helps preparing the addition of other options to select shared, shared+static or just static. Note that we have verified that this commit can be reproduced by simply doing a global rename of BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBS plus adding BR2_PREFER_STATIC_LIB to Config.in.legacy. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* ncurses: fix typo 'target'Sebastien Bourdelin2014-10-191-1/+1
| | | | | | Signed-off-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: rename FOO_CONF_OPT into FOO_CONF_OPTSThomas De Schampheleire2014-10-041-4/+4
| | | | | | | | | | | | To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_CONF_OPT. Sed command used: find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* ncurses: Add libcurses symlink to libncursesVicente Olivert Riera2014-09-251-0/+6
| | | | | | | | | | | | | | | | | | Some packages use -lcurses when they are linking, so they try to link to a library called libcurses. The library provided by our ncurses package is called libncurses, so those packages fail to link with a message like this one: /bin/ld: cannot find -lcurses Installing a libcurses symlink to libncurses fixes the problem. Fixes: http://autobuild.buildroot.net/results/466/466995f9534447a4f54327a14c44ef9e16dd1123/ Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Reviewed-by: Markos Chandras <Markos.Chandras@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/ncurses: fixup library symlinksGustavo Zacarias2014-09-172-2/+15
| | | | | | | | | | | | As stated on the list we need to copy static libraries when doing static targets so add the logic for that. Also exclude the wide option for blackfin flat since there seem to be toolchain issues with that combination - since it's a new feature option someone interested might look into it later. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/ncurses: Allow building wide char supportJeremy Kerr2014-09-172-2/+28
| | | | | | | | | | | Allow ncurses to be configured with wide char support; this causes the libraries to be built with the 'w' suffix (eg libncursesw.so, libmenuw.so, etc), so we need to create a few symlinks. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Tested-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* ncurses: enable parallel buildGustavo Zacarias2014-06-011-1/+5
| | | | | | | | | | | Using a trick taken from gentoo enable parallel build when building for the target to reduce the build time for my test case from about 54s to 32s on a dual-core laptop. [Peter: add comment explaining why] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/ncurses: Remove duplicated library install codeJeremy Kerr2014-03-231-22/+10
| | | | | | | | | | | | | | | | Currently, the ncurses package conditionally defines macros to install the panel, form and menu libraries. This means we duplicate the install step for each library type. Rather than defining a set of macros, this change introduces a variable for the set of installed libraries, $(NCURSES_LIBS-y). We use this in a single macro to perform the library installation in one place. Based on a change suggested by Thomas Petazzoni <thomas.petazzoni@free-electrons.com>. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: remove support for documentation on targetThomas De Schampheleire2014-02-081-1/+1
| | | | | | | | This patch removes deprecated symbol BR2_HAVE_DOCUMENTATION and all its usage. Additionally, it removes the now unused BR2_DEPRECATED_SINCE_2012_11. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* ncurses: add target progs optionGustavo Zacarias2013-12-042-5/+28
| | | | | | | | Closes bug #5072 Based on work from Stefan Meißner, thanks! Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Remove BR2_HAVE_DEVFILESThomas Petazzoni2013-07-041-20/+0
| | | | | | | | | | | | This finally removes the BR2_HAVE_DEVFILES option, that was used to install/keep development files on target. With the recent migration of the internal backend to the package infrastructure, we had anyway lost the ability to build gcc for the target, and install the uClibc development files on the target. [Peter: also remove support/scripts/copy.sh] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Normalize separator size to 80Alexandre Belloni2013-06-061-2/+2
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Remove description and url from headerAlexandre Belloni2013-06-062-1/+2
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* ncurses: enable shared library build on the hostThomas Petazzoni2013-03-241-1/+1
| | | | | | | | | | | | On the host, we generally build and install a shared library rather than a static version of libraries. In this specific case, we will want to build host-gettext, which builds a shared library that depends on ncurses. And this doesn't work well if ncurses is static because it hasn't been built with -fPIC. Therefore, let's build ncurses as shared on the host. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
OpenPOWER on IntegriCloud