aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/ncurses
AgeCommit message (Collapse)Author
2018-03-28ncurses: change SRC_URI from Debian anonscm to salsaMikko Rapeli
Debian anonscm service in Alioth is shutdown and thus fetching ncurses sources fails. https://wiki.debian.org/Alioth "Alioth is broken, and there is nobody around to fix it. Don't ask the remaining people who give it life support to implement fixes and changes. It is being replaced by a cocktail of ?GitLab (see Salsa), read-only repos and keep-alive mechanisms. See below for more information." Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de> Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-03-25ncurses: Abstract out termlibKhem Raj
termlib needs to be disabled on some targets e.g. mingw this change paves the way for doing that. Functionally it does not change anything for other platforms Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-03-15ncurses: fix deletion of /usr/lib/terminfoKoen Kooi
Ncurses doesn't honour ${libdir} for terminfo, so try more options to remove it. Signed-off-by: Koen Kooi <koen.kooi@linaro.org> Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-03-15ncurses: fix do_install failure when base_libdir has more than one levelKoen Kooi
Other sections of the .inc already use mkdir -p, so use it here as well. Signed-off-by: Koen Kooi <koen.kooi@linaro.org> Signed-off-by: Ross Burton <ross.burton@intel.com>
2018-02-06ncurses: 6.0+20170715 -> 6.0+20171125Hongxu Jia
- Drop backported CVE fix Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-09-21ncurses: CVE-2017-13732, CVE-2017-13734, CVE-2017-13730, CVE-2017-13729, ↵Ovidiu Panait
CVE-2017-13728, CVE-2017-13731 There is an illegal address access in the function dump_uses() in progs/dump_entry.c in ncurses 6.0 that might lead to a remote denial of service attack. There is an illegal address access in the _nc_safe_strcat function in strings.c in ncurses 6.0 that will lead to a remote denial of service attack. There is an illegal address access in the function _nc_read_entry_source() in progs/tic.c in ncurses 6.0 that might lead to a remote denial of service attack. There is an illegal address access in the _nc_save_str function in alloc_entry.c in ncurses 6.0. It will lead to a remote denial of service attack. There is an infinite loop in the next_char function in comp_scan.c in ncurses 6.0, related to libtic. A crafted input will lead to a remote denial of service attack. There is an illegal address access in the function postprocess_termcap() in parse_entry.c in ncurses 6.0 that will lead to a remote denial of service attack. References: https://nvd.nist.gov/vuln/detail/CVE-2017-13734 https://nvd.nist.gov/vuln/detail/CVE-2017-13732 https://nvd.nist.gov/vuln/detail/CVE-2017-13731 https://nvd.nist.gov/vuln/detail/CVE-2017-13730 https://nvd.nist.gov/vuln/detail/CVE-2017-13729 https://nvd.nist.gov/vuln/detail/CVE-2017-13728 Upstream patch: https://anonscm.debian.org/cgit/collab-maint/ncurses.git/commit/?id=129aac80802d997b86ab0663836b7fdafb8e3926 Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2017-08-18ncurses: 6.0+20161126 -> 6.0+20170715Hongxu Jia
Rebase patches: - tic-hang.patch -> 0001 - configure-reproducible.patch -> 0002 Drop fix-cflags-mangle.patch, which accepted by upstream ... commit 1b74f120ab7be89011408a6ad0f1c748a314bae8 Author: Sven Joachim <svenjoac@gmx.de> Date: Sun Feb 26 09:01:34 2017 +0100 Import upstream patch 20170225 20170225 + fixes for CF_CC_ENV_FLAGS (report by Ross Burton). ... Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-30ncurses: add SYSROOT_DESTDIR for siteconfig_gencacheJackie Huang
After switching to Recipe Specific Sysroots, ncurses will not be populated in its own sysroots, then siteconfig_gencache fails to find some headers, so add ${SYSROOT_DESTDIR}/${includedir} into the search list to fix the issue. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-08ncurses: Drop incorrect optionRichard Purdie
The --disable-static option doesn't exist in ncurses. Its equivalent is --without-normal so remove the option which does nothing. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-01ncurses_6.0: Improve reproducibilityJuro Bystricky
Build static libraries without the binutils "ar" -U option. This option deliberately breaks deterministic mode. The option seems to be a relic from 2015, intended as a workaround for some unspecified build problems. [YOCTO#11247] Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-02-23ncurses: 6.0+20160625 -> 6.0+20161126Hongxu Jia
Add a patch to fix the CC/CFLAGS mangling that broke builds. [RB] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-12-22ncurses.inc: add v6 binconfig-disabled entriesTrevor Woerner
Newer host distributions are moving to ncurses6, therefore add entries so the host's ncurses{w}6-config scripts aren't picked up. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-08-17ncurses: upgrade to 6.0+20160625Hongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-06-14ncurses: upgrade to 6.0+20160319Hongxu Jia
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-04-05ncurses: reorder PACKAGESPatrick Ohly
Having ncurses-terminfo-base before ncurses-terminfo is currently irrelevant because the current file lists are completely disjunct. However, when building "stateless" via a .bbappend, the content of curses-terminfo-base also needs to live under /usr/share and then it becomes important that files belonging to ncurses-terminfo-base are checked first. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-03-20ncurses_6: Improve installationJuro Bystricky
As "install.libs" also installs header files, it is redundant to also call "install.includes". In fact, doing so can lead to a race, as both targets could try to install the header files at the same time if running parallel make. Obviously, with only calling "install.libs", there is no race with "install.includes". If there is no race, then the patch fix-include-files-race.patch is no longer needed. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-03-12ncurses_6: Fix an install race conditionJuro Bystricky
Both targets install.libs and install.includes install the same files, resulting in a race condition when running parallel make. This race is addressed in a patch file, making sure only one of the targets (install.includes) installes the include files. This will work properly (i.e.ncurses will install as intended by the recipe) as long as we always install both targets. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-28ncurses: update to revision 20160213Alexander Kanavin
Also, put the revision into PV, so that a meaningful upstream version check can be performed. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-02-04ncurses: use closing curly brackets in FILES_${PN}-tools variableMarkus Lehtonen
This patch removes a workaround (needed for bitbake python parser) where closing curly brackets were replaced by ascii code '\x7d'. This commit requires a bitbake version with the "data_smart: simple bracket matching inside python expressions" patch applied. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-19ncurses: fix upstream version checkAlexander Kanavin
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-16ncurses: 5.9 0 -> 6.0Dengke Du
To be compatible with ncurses 5, add option '--with-abi-version=5' to EXTRA_OECONF Signed-off-by: Dengke Du <dengke.du@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-12-27ncurses: fixes wrong paths in BINCONFIGMing Liu
* Removes ncurses-config from BINCONFIG, that file does not exist at all. * Adds in ncurses5-config and ncursesw5-config to BINCONFIG. This fixed following warnings during SDK install: warning: Removing ncurses-dev-5.9-r15.1@lib32_x86 due to file /usr/bin/ncurses5-config conflicting with ncurses-dev-5.9-r15.1@core2_64 warning: Removing ncurses-dev-5.9-r15.1@lib32_x86 due to file /usr/bin/ncursesw5-config conflicting with ncurses-dev-5.9-r15.1@core2_64 [YOCTO #8801] Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-12-01ncurses: update SRC_URIMaxin B. John
ncurses source tarball from "current" directory in ftp://invisible-island.net gets updated/deleted during the release cycle. We can't depend on that FTP server to fetch source as the maintainer doesn't guarantee the presence of all patched versions in the server. ftp://invisible-island.net/ncurses/5.9/README Fetch sources from debian git server as it is comparatively reliable. [YOCTO #8713] Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-07-22ncurses-terminfo-base: include screen-256colorRichard Tollerton
Nominally tmux sets TERM=screen which we are including in ncurses-terminfo-base. However, if tmux detects that it's running in a terminal capable of 256-color output (e.g. xterm-256color), it will instead use TERM=screen-256color. We aren't including that, and we ought to be. Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-05-14ncurses: inherit pkgconfigChristophe Guillon
Without pkgconfig being present at build time it's possible for the .pc files to not be installed correctly. Signed-off-by: Christophe Guillon <christophe.guillon@st.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-04-09ncurses: Upgrade 4.9 stable to latest patchlevel 20150329Khem Raj
gcc5 barfs on older release Change-Id: Ib1ad9b1cf7f16eb454da21fd61dc56fe1d9f6783 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-10-10ncurses: enable-pc-files requires PKG_CONFIG_LIBDIR existedRobert Yang
Fixed ncurses.do_configure: configure: WARNING: did not find library /path/to/tmp/sysroots/qemuarm/usr/lib/pkgconfig And then anyone requires ncurses.pc will fail. The configure.in checks: [snip] if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then [snip] Create PKG_CONFIG_LIBDIR in do_configure will fix the problem. We can reproduce the problem by: Set SSTATE_DIR=/path/to/sstate-cache 1) In build1, make sure everything is ready in SSTATE_DIR $ bitbake ncurses 2) In build2, rebuild ncurses only: $ bitbake ncurses -ccleansstate && bitbake ncurses Then we will see the warning in log.do_configure. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-16binconfig-disabled: Add class and useRichard Purdie
This adds a binconfig-disabled class which can be used by recipes where a -config file is installed but we wish to disable it and just rely on the .pc files instead. Rather than simply deleting it, we make the script "exit 1" so that it can be found in PATH and raise a build error rather than something silently falling back to the build system for example. Rather than randomly finding -config files, this adds in the specification of a list of binconfig scripts which is more deterministic and maintainable moving forward. This patch converts various users in OE-Core to use this, a world build of OE-Core tests out ok with this change. There will likely be issues in other layers however, hence this being a RFT. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-03-07ncurses: use lnr instead of python codeRoss Burton
Drop the use of custom Python code and instead use the new lnr script to generate relative symlinks. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2014-03-03Revert "ncurses: use ln -r to generate relative symlink"Richard Purdie
ln -r isn't available in older versions of coreutils such as those present in Ubuntu 12.04. We'll find an alternative solution. This reverts commit 65c2439ab6dcbd4c52439cdc96acb8ba222c196b.
2014-03-01ncurses: use ln -r to generate relative symlinkRoss Burton
Instead of using a Python do_install() and calling oe.path.make_relative_symlink, just pass -r to ln to generate a relative symlink directly. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-02-12meta/recipes: Remove virtclass referencesRichard Purdie
The virtclass overrides will go away at some point (apart from the multilib one). Change them all to class-xxx instead since people enjoy copy and pasting them. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-10-30ncurses-terminfo: Remove bashism from basic terminfo installationSeth Bollinger
The vtX terminfo files aren't being copied on systems where bash isn't the default shell (debian, etc.). I removed the bash specific syntax so the files are properly copied on these systems. Signed-off-by: Seth Bollinger <seth.boll@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-07-12ncurses: add xterm-256color to terminfo-baseSaul Wold
This is to address the buildtools-tarball still having problems with certain xterms [YOCTO #4835] Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-30ncurses: Fix problems expanding ncurses-libtinfo when in IMAGE_INSTALLJason Wessel
The ncurses package was generating the following error as a result of not specifing the PACKAGES_DYNAMIC correctly. This error only appear when using the IMAGE_INSTALL list that has been expanded by the hob or from the pkgdata. ERROR: Nothing RPROVIDES 'ncurses-libtinfo' The dynamic packages are named using "${PN}-lib%s". So we check for ${PN}-lib* Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-18ncurses: Fix case where ${B} != ${S}Richard Purdie
This change allows ${B} != ${S} builds to work as otherwise gnu-configize is executed in the incorrect directory. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-02Help ncurses-native find terminfo on RHEL 6Jeffrey C Honig
[ CQID: WIND00405305 ] When using ncurses from sstate cache it is not able to find terminfo for screen on RHEL 6. While RHEL 6 has /lib/terminfo, it is not complete, the complete terminfo database is in /usr/share/terminfo. This results failure of programs linked to ncurses, such as menuconfig. Signed-off-by: Jeffrey C Honig <jeffrey.honig@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-11ncurses.inc: Fix display corruption and add fallback for sstate compiled pathsJason Wessel
CQID: WIND00402979 Display corruption was occurring on 64 bit hosts using menuconfig for the kernel and busybox with the ncurses-native or ncurses-nativesdk because the configure arguments were not sufficient vs the expected use from the upstream source. Also changed in this commit is to provide a fallback to the hard compiled paths for the terminfo and termcap. Eventually this needs to be fixed another way if we want a truly portable SDK because any SDK that is relocated or native binaries pulled out of the sstate can end up referencing terminfo files that no longer are in the same location. Because the host system has terminfo files that ncurses will happily use we might as well have a fall back to buy some time for a better fix, vs having thing just not work occasionally when using sstate. Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-19ncurses: update gnu-config files in do_configure()Marcin Juszkiewicz
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-02recipes-core: replace virtclass-native(sdk) with class-native(sdk)Robert Yang
The overrides virtclass-native and virtclass-nativesdk are deprecated, which should be replaced by class-native and class-nativesdk. [YOCTO #3297] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-10-24nativesdk-ncurses 5.9: files were installed but not shippedRobert Yang
There is an warning: $ bitbake nativesdk-ncurses WARNING: QA Issue: nativesdk-ncurses: Files/directories were installed but not shipped /opt/poky/1.3+snapshot/sysroots/i686-pokysdk-linux/usr/bin/clear.ncurses /opt/poky/1.3+snapshot/sysroots/i686-pokysdk-linux/usr/bin/reset.ncurses NOTE: Tasks Summary: Attempted 533 tasks of which 521 didn't need to be rerun and all succeeded. And there is no clear or reset tool in the SDK. This is caused by: ALTERNATIVE_ncurses-tools = "clear reset" It creates clear.ncurses and reset.ncurses which are used for avoiding the conflicts with the target busybox, but SDK doesn't need them since there is no nativesdk-busybox (then no conflicts), so: ALTERNATIVE_ncurses-tools_class-target = "clear reset" will fix the problem. [YOCTO #3325] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-10-02Cleanup: fix PN == BPN casesMark Hatle
When building target packages, it used to be enought to check for PN == BPN, however with the multilib configurations, this can lead to subtle errors. Change instances of PN == BPN, to ${CLASSOVERRIDE} == 'class-target'. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-19ncurses: fix file names for update -alternativesSaul Wold
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-07-19Convert tab indentation in python functions into four-spaceRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-09ncurses: fix packaging issue in multilib buildSaul Wold
ERROR: QA Issue: lib32-ncurses: Files/directories were installed but not shipped /usr/bin/clear.ncurses /usr/bin/reset.ncurses Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-05-30ncurses: use new update-alternativesMark Hatle
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2012-05-24ncurses: Avoid occasional builling failure when having parallel processable taskXiaofeng Yan
ncurses failure non-gplv3 build (race issue) like the following \ error information: | tic: error while loading shared libraries: /srv/home/pokybuild \ /yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/\ work/x86_64-linux/ncurses-native-5.9-r8.1/ncurses-5.9/narrowc/lib\ /libtinfo.so.5: file too short | ? tic could not build /srv/home/pokybuild/yocto-autobuilder/\ yocto-slave/nightly-non-gpl3/build/build/tmp/work/x86_64-linux/\ ncurses-native-5.9-r8.1/image/srv/home/pokybuild/yocto-autobuilder\ /yocto-slave/nightly-non-gpl3/build/build/tmp/sysroots/x86_64-linux\ /usr/share/terminfo | make[1]: *** [install.data] Error 1 This is a race issue which is caused by install.libs and install.data: 1) install.data needs run tic 2) tic needs libtinfo.so 3) install.libs would regenerate libtinfo.so 4) but install.data doesn't depend on install.libs, and they can run parallelly So there would be errors in a very critical condition: tic is begining to run at the same time when install.libs is generating libtinfo.so, and this libtinfo.so is not integrity, then there would be the above error. Let task install.libs run before install.data for fixing this bug. [YOCTO #2298] Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
2012-03-23ncurses: ship clear/reset in package.Lianhao Lu
Fixed not shipped packaging warnings. WARNING: For recipe ncurses-nativesdk, the following files/directories were installed but not shipped in any package: WARNING: /opt/poky/1.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/reset WARNING: /opt/poky/1.1+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/clear Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-15ncurses: fix install errorNitin A Kamble
Fix this issue: | rm: cannot remove `/srv/home/nitin/builds/build-multilib/tmp/work/x86_64-poky-linux/ncurses-5.9-r6.1/image/usr/lib64/terminfo': No such file or directory NOTE: package ncurses-5.9-r6.1: task do_install: Failed PR not bumped as there is no change in the packages output. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-14ncurses: fix packaging of moved librariesScott Garman
This ensures packaging of the ncurses libraries moved to base_libdir is done correctly. Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>