summaryrefslogtreecommitdiffstats
path: root/package/util-linux
Commit message (Collapse)AuthorAgeFilesLines
* util-linux: disable useless programs in the host packageCarlos Santos2018-01-261-2/+31
| | | | | | | | | | | | | Disable all programs that depend on ncurses, as well as utilities that are useless on the host: agetty, chfn-chsh, chmem, login, lslogins, mesg, more, newgrp, nologin, nsenter, pg, rfkill, schedutils, setpriv, setterm, su, sulogin, tunelp, ul, unshare, uuidd, vipw, wall, wdctl, write, zramctl. Also add dependency on host-zlib if host cramfs utils are to be built. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* util-linux: add ISC licence, used by rfkillCarlos Santos2018-01-183-2/+40
| | | | | | | | Pull a patch from upstream that adds Documentation/licenses/COPYING.ISC instead of distributing the whole rfkill.c file. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: bump to version 2.31.1Carlos Santos2017-12-313-46/+3
| | | | | | | | | | | | | Changes in this version: - Small improvement and bug fixes. - Install rfkill at /usr/sbin (thus overriding the one eventually installed by BusyBox). Drop the md5 patch, already applyed upstream. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: explicitly use /usr/{bin, sbin, lib}, with merged usrCarlos Santos2017-11-221-0/+7
| | | | | | | | | | | | | Prevent the installation from attempting to move shared libraries from ${usrlib_execdir} to ${libdir} if both paths are the same, which leads to error messages like this: mv: '$(TARGET_DIR)/usr/lib/libfoo.so.1' and '$(TARGET_DIR)/lib/libfoo.so.1' are the same file That error is not fatal but let's avoid possible future problems. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: fix link failures due to name clashLuca Ceresoli2017-11-111-0/+44
| | | | | | | | | | | | | | | | Several packages have a similar md5.c file, and each has a function named byteReverse(). This generates link errors when building statically ("multiple definition of `byteReverse'"). Fix by applying a patch from upstream. Fixes: http://autobuild.buildroot.net/results/419ab2c0e034cc68991281c51caa8271b0fadbab/ Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Cc: Adam Duskett <aduskett@gmail.com> Tested-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/util-linux: add license hashSamuel Martin2017-11-051-0/+7
| | | | | Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* util-linux: security bump to version 2.31Carlos Santos2017-10-314-73/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix CVE-2016-2779: runuser in util-linux allows local users to escape to the parent session via a crafted TIOCSTI ioctl call, which pushes characters to the terminal's input buffer. The new experimental "su --pty" feature has been implemented to fix this issue. The feature is not enabled by default and the new command line option --pty is necessary. Add rfkill, a command for enabling and disabling wireless devices. This implementation is based upon, and backward compatible with, the original rfkill from Johannes Berg and Marcel Holtmann, currently provided by the standalone "rfkill" package. Add uuidparse, a command to analyze and print information about UUID's. The "reset" script is not part of utill-linux anymore. Add a legacy config telling the user to use either BusyBox or the ncurses program. Drop the ncursesw patch, allready applied upstream. AUTORECONF is not required anymore. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/util-linux: drop _VERSION_MINOR variableJerzy Grzegorek2017-10-281-2/+1
| | | | | Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* util-linux: bump to v2.30.2Carlos Santos2017-09-212-2/+2
| | | | | | | | Release notes: https://www.kernel.org/pub/linux/utils/util-linux/v2.30/v2.30.2-ReleaseNotes Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* util-linux: add missing dynamic library dependencyBaruch Siach2017-09-191-0/+1
| | | | | | | | | | | | | | | | Commit f52af619185 (util-linux: add menu items for login utilities) forgot to propagate the !BR2_STATIC_LIBS dependency of linux-pam to BR2_PACKAGE_UTIL_LINUX_LOGIN. Fix this. Fixes: http://autobuild.buildroot.net/results/e47/e472891a656e40f33081d9a5db1b1b6d71c1389f/ http://autobuild.buildroot.net/results/9e4/9e443720ca247292ea612851962c611a9bcd3450/ http://autobuild.buildroot.net/results/88f/88f4cecd7e2844701b0e75279c112e37283fc7f9/ Cc: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* util-linux: linux-pam is needed for suBernd Kuhls2017-09-031-1/+9
| | | | | | | | | | | With linux-pam, the configure script bails out with: configure: error: su selected, but required PAM header file not available Fixes: http://autobuild.buildroot.net/results/338/3381a49d17aa0d4b9711cbb36a5d7b563a8ae08f/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: linux-pam is needed for runuserThomas Petazzoni2017-09-021-1/+9
| | | | | | | | | | | | With linux-pam, the configure script bails out with: configure: error: runuser selected, but required PAM header file not available Fixes: http://autobuild.buildroot.net/results/ea7430012f1d8e2ae3ceb8fe5d41630ea1eaa3af/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: add menu items for login utilitiesCarlos Santos2017-09-022-17/+38
| | | | | | | | | | | | | | This change extends to the login utilities the current policy of having a selection item in the configuration menu for each utility that has an --enable/--disable knob in the "configure" script: - add selection items for login, runuser, su and sulogin (there was already an item for "last") - move "login utilities" to Config.in.legacy - make "login utilities" select last, login, runuser, su and sulogin Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: use a patch from upstream to fix ncursesw supportCarlos Santos2017-08-242-191/+58
| | | | | | | | This patch is much smaller the the previous one and will unlikely cause a conflict with some forthcoming 2.30.x release. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: bump to v2.30.1Marcus Hoffmann2017-07-293-55/+3
| | | | | | | | | | | - Drop patch 0002-column-fix-compilation-when-libc-lacks-wide-characte.patch as it has been applied upstream - Patch 0001-Revert-build-sys-ncurses-headers-cleanup.patch is still required to fix ncursesw support. Signed-off-by: Marcus Hoffmann <m.hoffmann@cartelsol.com> Cc: "Carlos Santos" <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: remove leftover commentArnout Vandecappelle2017-07-081-1/+0
| | | | | | | | | We no longer have automatic derivation of DEPENDENCIES for host packages, so the comment that we don't want a host-busybox dependency is no longer valid. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* util-linux: remove libintl static linking handlingThomas Petazzoni2017-07-051-8/+0
| | | | | | | | We no longer support building the full-blown libintl in static linking scenarios, as it causes too many problems. Therefore, remove the special code that was handling this. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: use the new gettext logicThomas Petazzoni2017-07-052-7/+2
| | | | | | | | | | | | | | This commit switches to use the new gettext logic, which involves: - using TARGET_NLS_DEPENDENCIES instead of hand-encoded dependencies on gettext/host-gettext - using TARGET_NLS_LIBS to force linking against libintl - dropping BR2_PACKAGE_GETTEXT selection Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Carlos Santos <casantos@datacom.ind.br>
* util-linux: fix compilation when libc lacks wide-character supportCarlos Santos2017-06-281-0/+53
| | | | | | | | | | | | | | | | | A recent change in util-linux left calls to wcstok and wcspbrk not guarded by "#ifdef HAVE_WIDECHAR". This causes build failures when libc does not have the wide-character functions, like some uClibc builds. Solve the problem by means of a patch already sent upstream. Fixes: http://autobuild.buildroot.net/results/fd8a1a8e0cef3aeed9588540e8e663664f6b43aa http://autobuild.buildroot.net/results/5ad73ea8b471321988c50d80a5e50d4504151dd6 http://autobuild.buildroot.net/results/04411b7280dc51ecd51236967981a42352bbeb3e Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* util-linux: bump to version 2.30Carlos Santos2017-06-235-43/+218
| | | | | | | | | | | | | | | | - Update the "basic set" description to include fincore, which is built by default, and remove tailf, which was removed in this version. - Add configuration options for the new utilities "chmem" and "lsmem". - Add a patch to revert the assumption that ncursesw headers are under /usr/include/ncursesw/ only. That's necessary to have both versions for ABI/API compatibility but does not make sense on embedded systems. - Drop autoreconf, since the patch on term-utils/Makemodule.am is gone. The patch is a bit drastic but it solves the problem of using ncursews while we discuss a better solution in the util-linux mailing list. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Revert "util-linux: bump to version 2.30"Carlos Santos2017-06-194-24/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 088292cfc16359b966882f66b6e94dbc2c9813cb to prevent breaking the build while we search for the root cause of the problem. Fixes: http://autobuild.buildroot.net/results/7b0b1d8ba0015308724a9677f890e6e63f77e0ad http://autobuild.buildroot.net/results/11476388b8b774dc5ca7c9ceb34ea9ad1a4314b9 http://autobuild.buildroot.net/results/9730d0c4a4001314351a0a116164ba854272db4d http://autobuild.buildroot.net/results/4d1440360bddfd0ddbbdddf6077bca0e796f2949 http://autobuild.buildroot.net/results/f3089d8b8727a526eeb553964711e0066287422e http://autobuild.buildroot.net/results/ace6aaad6bee0f4bed44126fea57a090ff2541f9 http://autobuild.buildroot.net/results/ff460fff5da05d38776eb04e8ada947290248f42 http://autobuild.buildroot.net/results/a4979169d78938e0cc06e6a69eaac0ab13dc3084 http://autobuild.buildroot.net/results/84e8c23ecb77a99f9bb70fca9de4a5062414037d http://autobuild.buildroot.net/results/d3433ef125b5cfbf8a4b8824c256dbd0ea34b6bb http://autobuild.buildroot.net/results/92bc3ae63709dae8cdb8860bd997f72c92ede442 http://autobuild.buildroot.net/results/d9122512b0d0802c19184eccb5056bf985f74e5b http://autobuild.buildroot.net/results/dad980abe5dc72df436b21270797b32435b55392 http://autobuild.buildroot.net/results/7def156b29011b90a20579b4bad436a7acde498c http://autobuild.buildroot.net/results/0bb97b8edc5cea657992cdb083ce9ae79c969f03 http://autobuild.buildroot.net/results/8f76af2caf7dd08919a20cc1fd848c920512e988 http://autobuild.buildroot.net/results/3a8ecda0ce63dd67a73d66fbd238072ddb079900 http://autobuild.buildroot.net/results/8d43e6f00be41fde7163868c5fbc3235097629ed http://autobuild.buildroot.net/results/5049aab863707aae09bde540d98ea8063c017e7e http://autobuild.buildroot.net/results/e227393a29590b298112dfd8efa4aebe2ffa9294 http://autobuild.buildroot.net/results/8ad4455dcdfcd991dff728910bdbcfa57f5774a4 http://autobuild.buildroot.net/results/27947db73e4875df1dbeee35a6ea8ad6a31af0b5 http://autobuild.buildroot.net/results/5a9cc647e648a61e3c24f929987df356abcdc104 http://autobuild.buildroot.net/results/eb01bb21f6c942cf8cf067450f016fd3893cc7cd http://autobuild.buildroot.net/results/6f7e3f6b4acc93ce695c07199cf6bf643db4386e Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: bump to version 2.30Carlos Santos2017-06-184-43/+24
| | | | | | | | | | | - Update the "basic set" description to include fincore, which is built by default, and remove tailf, which was removed in this version. - Add configuration options for the new utilities "chmem" and "lsmem". - Remove patch already applied upstream. - Drop autoreconf, since the patch on term-utils/Makemodule.am is gone. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: wrap help text at column 72Carlos Santos2017-06-081-1/+2
| | | | | | | Respect the <tab><2 spaces><62 chars> rule. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: use SPDX short identifier for license string in commentsRahul Bedarkar2017-04-171-2/+2
| | | | | | | | | | | We have started using SPDX short identifier for license string in <PKG>_LICENSE variable. But license strings in comments are still using old strings. For consistency, use SPDX short identifier in comments as well. Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: use SPDX short identifier for BSD-4cRahul Bedarkar2017-04-011-1/+1
| | | | | | | | | | | We want to use SPDX identifier for license string as much as possible. SPDX short identifier for BSD-4c is BSD-4-Clause. This change is done using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/BSD-4c/BSD-4-Clause/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boot, package: use SPDX short identifier for BSD-3cRahul Bedarkar2017-04-011-1/+1
| | | | | | | | | | | We want to use SPDX identifier for license string as much as possible. SPDX short identifier for BSD-3c is BSD-3-Clause. This change is done using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/BSD-3c/BSD-3-Clause/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boot, package: use SPDX short identifier for LGPLv2.1/LGPLv2.1+Rahul Bedarkar2017-04-011-1/+1
| | | | | | | | | | | We want to use SPDX identifier for license string as much as possible. SPDX short identifier for LGPLv2.1/LGPLv2.1+ is LGPL-2.1/LGPL-2.1+. This change is done using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/LGPLv2.1(\+)?/LGPL-2.1\1/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boot, linux, package: use SPDX short identifier for GPLv2/GPLv2+Rahul Bedarkar2017-04-011-1/+1
| | | | | | | | | | | We want to use SPDX identifier for license strings as much as possible. SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+. This change is done by using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: re-add <pkg>_AUTORECONF = YESThomas Petazzoni2017-02-241-0/+3
| | | | | | | | | | | | | | | | | | | Commit a5015f1025a1aee173c2c2ab39ccac5ce38f30c3 ("util-linux: security bump to version 2.29.2") incorrectly removed <pkg>_AUTORECONF = YES. While the patches touching configure.ac have indeed been removed, there is still a patch touching a Makemodule.am file, which triggers an autoreconf a build time, which itself fails because autoconf/automake are not available. So re-add <pkg>_AUTORECONF, with a comment pointing specifically at the patch that makes it necessary. Fixes: http://autobuild.buildroot.net/results/309127a532eed00e406bbaf0b1a51b7241a10505/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: security bump to version 2.29.2Gustavo Zacarias2017-02-234-141/+2
| | | | | | | | | | | | | | | | | | From https://www.kernel.org/pub/linux/utils/util-linux/v2.29/v2.29.2-ReleaseNotes This release fixes su(1) security issue CVE-2017-2616: It is possible for any local user to send SIGKILL to other processes with root privileges. To exploit this, the user must be able to perform su with a successful login. SIGKILL can only be sent to processes which were executed after the su process. It is not possible to send SIGKILL to processes which were already running. Drop upstream patches and autoreconf since it's no longer required. [Peter: extend commit message with CVE info / description] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* util-linux: build schedutils without enabling basic binariesCarlos Santos2017-02-202-2/+101
| | | | | | | | | | | | | | Pull an upstream fix to allow building schedutils (ionice, taskset, chrt) when util-linux is configured with $ configure --disable-all-programs --enable-schedutils Fixes: https://bugs.busybox.net/show_bug.cgi?id=9656 Reported-by: Aaron Holtzman <aholtzma@gmail.com> Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: enable AUTORECONFRahul Bedarkar2017-02-111-0/+3
| | | | | | | | | | | | | | | | | | | | Commit 55a9737895cb ("util-linux: link scriptreplay with libm (for isnan)") added two patches that touch configure.ac and Makemodule.am. But forgot to enable AUTORECONF. When AUTORECONF is disabled and configure.ac is patched, it looks like make will detect change in timestamps and trigger reconfig. But it later fails because of missing dependencies. To fix this, explicitly enable AUTORECONF. Fixes: http://autobuild.buildroot.net/results/544/544e8da290d40424ea3d1bffad7e0b8a566de495 Fixes: 55a9737895cb ("util-linux: link scriptreplay with libm (for isnan)") Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com> Cc: Carlos Santos <casantos@datacom.ind.br> Acked-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: link scriptreplay with libm (for isnan)Carlos Santos2017-02-092-0/+67
| | | | | | | | | | | | | | | - Cherry-pick a patch from upstream to link scriptreplay to libm (for "isnam"). - Add a patch that improves the detection of isnan when using uClibc. This patch is for util-linux v2.29.1 and must be adapted to their master branch to be submitted upstream. Fixes: http://autobuild.buildroot.net/results/2c2/2c29a78ed81ca844a87dcd076ab3e14ea080296d http://autobuild.buildroot.net/results/404/404b10f359b2ae8a7216729fa1bab37fed2d3d4c Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: add selinux supportMatt Weber2017-01-252-0/+16
| | | | | | | | | | | | | | | | | | This patch adds optional libselinux support to the util-linux package, and also tweaks the PAM files instealled by util-linux to work properly in an SELinux context. Like was done for linux-pam, the tweak is done by having the SELinux related lines commented out in the original PAM file, and uncommented when SELinux support is enabled. Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Niranjan Reddy <niranjan.reddy@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Bryce Ferguson <bryce.ferguson@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: bump version to 2.29.1Vicente Olivert Riera2017-01-245-271/+2
| | | | | | | | | | | | | 0001-build-sys-prefer-pkg-config-for-ncurses.patch already included: http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=3f7429fd2d539c7f948f72bd829404b55ac19d9f 0002-build-sys-cleanup-UL_NCURSES_CHECK.patch already included: http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=862326451184bb0fe9c2b2b110fcfc986f9b1734 0003-build-sys-fix-compilation-with-ncurses-and-uClibc-or.patch already included: http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=9ea8ded37b648bbd538cbf9c4d144b8b1a93c1b5 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* util-linux: fix ncurses/wchar handling (again)Carlos Santos2017-01-221-0/+92
| | | | | | | | | | | | | | | | | | | Since commit 006a328ad6bed214ec3c4d92120510ea37329dd1 ("util-linux: fix build with ncurses"), we have a build failure that occurs with musl and uClibc-ng toolchains when wide-char support is not enabled in ncurses. The problem occurs because util-linux #defines its own wchar_t (as char) when configured without widechar support. It was fixed upstream, so pull the corresponding patch from the util-linux git repository. Fixes: http://autobuild.buildroot.net/results/3a2f228e0fa7b5cc28a13d49f48f1a6aef8d9d7a http://autobuild.buildroot.net/results/99e96069f652d511c6212a5bb6be29e68fb1747c http://autobuild.buildroot.net/results/2dc5721aef93b7b410153bafad78248fac3db941 http://autobuild.buildroot.net/results/8a9e197ba7a292b18f8c0c36dca974685556a38a Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Revert "util-linux: fix ncurses/wchar handling"Carlos Santos2017-01-222-15/+10
| | | | | | | | | | This reverts commit 5a18eabdf08564688761a9b2f35892d69d8f9a18. It did not take into account all the possible situations. A different fix will be provided in a forthcomming patch. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: fix ncurses/wchar handlingThomas Petazzoni2016-12-232-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 006a328ad6bed214ec3c4d92120510ea37329dd1 ("util-linux: fix build with ncurses"), we have a build failure that occurs with musl toolchains when wide-char support is not enabled in ncurses. The problem comes from the fact that musl provides wchar support (so it defines wchar_t). But when ncursesw is not available, we currently pass --disable-widechar which tells util-linux that wchar support is not available at all (not only in ncurses). When this gets passed to util-linux configure script, then it defines its own wchar_t, which conflicts with the musl definition. So, we should not pass --disable-widechar when BR2_USE_WCHAR=y, which is what this commit does: it moves the BR2_USE_WCHAR logic outside of the ncurses logic, and passes --enable-widechar/--disable-widechar as appropriate. However, there's a gotcha: util-linux really wants the ncursesw variant of ncurses when the system has wchar support enabled. We take this into account by: - Enabling ncursesw when BR2_PACKAGE_NCURSES_WCHAR=y. In this case, we have ncurses and we have BR2_USE_WCHAR=y, so everything is fine. - Otherwise, enabling ncurses when BR2_PACKAGE_NCURSES=y but BR2_USE_WCHAR is disabled. To make sure that the existing util-linux programs that need ncurses support still build fine, we adjust the Config.in to select BR2_PACKAGE_NCURSES_WCHAR on BR2_USE_WCHAR=y configurations. Fixes: http://autobuild.buildroot.net/results/19de2a0b12380ddc86dbba0dae3a3877b25f83ff/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* util-linux: attempt to fix host-util-linux buildThomas Petazzoni2016-12-231-0/+1
| | | | | | | | Should fix: http://autobuild.buildroot.net/results/65595aa787498087a9a85c9cd19135396b246afb/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: fix build with ncursesRahul Bedarkar2016-12-234-5/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | util-linux version 2.29 changed ncurses handling a lot. pkg-config support to detect ncurses is removed from configure.ac and ncurses-config is used to detect it. But it even didn't allow to change config file for cross compilation. However, it is fixed in upstream later and pkg-config support is added back. This commit adds two patches from upstream that adds pkg-config support and allows specifying ncurses-config file as well. However preference is first given to pkg-config and later ncurses-config file. It also first checks for version 6 and later 5. Config option that changed are, ncursesw is enabled by default and ncurses is disabled by default. So we need to explicilty specify with/without wide char support now. This new version also allows disabling widechar support. But it can't be enabled if ncurses without widechar support is enabled. While building ncurses package, we explicitly enable pkg-config support, so we don't need to specify ncurses-config file, but it is specified for completeness. Fixes: http://autobuild.buildroot.net/results/4a2/4a25fb0d4546391d5dbbaa6cde17c45aeddb3549 Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com> Cc: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/util-linux: bump version to 2.29Bernd Kuhls2016-12-223-186/+4
| | | | | | | | Removed patch applied upstream: http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=7f0d4d56a2f1ed34c3da4501e65fb79497b3dda1 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* util-linux: fix host build when ncurses is not installedThomas Petazzoni2016-10-261-1/+2
| | | | | | | | | | | | | | | | | | | lib/colors.c uses HAVE_LIBTINFO to decide whether term.h and ncurses.h should be included. However, the configure.ac check is bogus: it checks for tinfo using pkg-config, and then if it fails, checks with AC_CHECK_LIB(). So, if you have tinfo installed, but not the corresponding development package, the pkg-config test will fail, but the AC_CHECK_LIB test will succeed, even though the headers are not available. To address this, we explicitly tell host-util-linux that tinfo is not available, like we're already doing for ncurses. Fixes: http://autobuild.buildroot.net/results/3c447e601a7b728860e78cabf2191ab206e6480d/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: select ncurses when "pg" is selectedCarlos Santos2016-10-241-0/+1
| | | | | | | | | | Fixes: http://autobuild.buildroot.net/results/63374203f32d2e9407531b53cd5d8f2665944fbe http://autobuild.buildroot.net/results/6279cd6f45f54ed5857a2fc08a21d9e257b6bc4b http://autobuild.buildroot.net/results/5604c56c0c92483d28e51eb4e70a9741c3c4effe Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: select libsmartcols when partx is selectedCarlos Santos2016-10-201-0/+1
| | | | | | | | Fixes http://autobuild.buildroot.net/results/be2/be2e81b27a21355d7a453316d9df1cd4b0da2106/ Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: allow disabling the basic set of toolsCarlos Santos2016-10-162-18/+9
| | | | | | | | | | | | | | | | | | | | When even a single extra util-linux utility is enabled, the default build and install will install many more programs, including many that overlap with those offered by busybox. Fix by reworking the install-utilies menu to take advantage of the new --disable-all-programs config option. This option make it possible to disable the basic set of apps, and then enable only the desired apps. Original patch by Danomi Manchego, visible at http://patchwork.ozlabs.org/patch/494866/ Signed-off-by: Carlos Santos <casantos@datacom.ind.br> [Thomas/Arnout: remove the choice between all/custom/no, and simply have a list of options with the basic set of tools, and then one option for each tool. This gives the same flexibility, but avoids the choice, which is never nice to have.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: improve license descriptionThomas Petazzoni2016-10-161-1/+1
| | | | | | | Use the recommended format for describing the license of different components. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: expand selection of libraries and utilitiesCarlos Santos2016-10-162-1/+61
| | | | | | | | | | | | | - Add option to control installation of libfdisk - Add libfdisk license to the comment in util-linux.mk - List all utilities provided by the basic set and document that linux32, linux64, uname26, i386 and x86_64 are symlinks to setarch - Add options to install cal, ipcrm, ipcs, logger, lslogin and pg Signed-off-by: Carlos Santos <casantos@datacom.ind.br> [Thomas: add missing dependency of the new lslogins option on libsmartcols, and therefore !MMU.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: clean up libraries and tools selectionsCarlos Santos2016-10-161-10/+45
| | | | | | | | | | | | | | | Fix several problems in the package recipe: - Make 'bool "lib<foo>"' the first item in each block - Move the depends before the selects - Add missing dependencies on BR2_USE_MMU, for fork() - Improve help for cramfs utilities and login utilities Signed-off-by: Carlos Santos <casantos@datacom.ind.br> [Thomas: - remove capitalization of prompts, for consistency - add missing dependencies on libsmartcols, and therefore !MMU] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: fix crc32 function collisionGustavo Zacarias2016-10-111-0/+182
| | | | | | | | | | | When linking both zlib and libblkid statically in the same target a collision occurs. Fix this by prefixing publicly-visible crc32 library functions. Fixes: http://autobuild.buildroot.net/results/25e/25efb79dd6ff1d93b5775baeccda23194d68c711/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* util-linux: enable libmount for host variantGustavo Zacarias2016-09-211-4/+5
| | | | | | | | It's a necessary dependency to build the new host-libglib2. libblkd is an indirect dependency for libmount. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
OpenPOWER on IntegriCloud