summaryrefslogtreecommitdiffstats
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* column: split old and new codeKarel Zak2017-05-021-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tailf: remove deprecated utilitySami Kerola2017-04-021-7/+0Star
| | | | | | | | March 2017 is gone, it is time to remove this utility as scheduled in earlier commit, and promised in manual page. Reference: 3f8478a71ccde6883d4c81b7e65561a106653b28 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fincore: use libsmartcolsKarel Zak2017-03-231-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fincore: new command for counting pages of file contents in coreMasatake YAMATO2017-03-231-0/+4
| | | | | Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add parse-date.yKarel Zak2017-03-041-1/+1
| | | | | | | | | | | | | * add lib/parse-date.y to build system * add necessary autotools stuff to generate .c on the fly (autotools are smart enough to add generated file to tarball) * check for bison version by ./autogen.sh * add non-wanted junk to .gitignore With some modification by J William Piggott with regard to moving the parse-date API into timeutils.h Signed-off-by: J William Piggott <elseifthen@gmx.com>
* blkreport, blkreset: remove in favour of blkzoneKarel Zak2017-02-231-8/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkzone: add new command (merge blkreport and blkreset)Karel Zak2017-02-231-0/+5
| | | | | | | This new command is based on the original implementation of blkreport and blkreset command. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: simplify UL_ENABLE_ALIAS() semanticKarel Zak2017-02-211-2/+1Star
| | | | | | | | Let's follow only $enable_ variables. In this case the MASTERNAME (e.g. [schedutils] for --enable-schedutils) has to be without UL_BUILD_INIT. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix --disable-all-programs --enable-schedutilsKarel Zak2017-02-201-6/+8
| | | | | | | | | | | | | * add UL_ENABLE_ALIAS(NAME, MASTERNAME) to initialize $enable_<name> according to MASTERNAME. Note that we have to use $build_<mastername>, the $enable_<mastername> is just AC_ARG_ENABLE() stuff only. The $build_ is evaluated and modified by our UL_...() functions. * add enable-schedutils.conf to have build-system regression test for this use-case Addresses: https://github.com/karelzak/util-linux/issues/415 Signed-off-by: Karel Zak <kzak@redhat.com>
* blkzonecmd, blkreport: Add new commands for ZAC/ZBC drivesShaun Tancheff2017-02-091-0/+11
| | | | | | | | | | | | | | | This patch adds: - blkreset to issue Reset (Write Pointer) zone commands - blkreport to retrieve drive zone information [kzak@redhat.com: - cleanup man page and usage() - remove command line options aliases, - use strtosize_or_err() - remove unnecessary -ludev - use blkdev.h stuff] Signed-off-by: Shaun Tancheff <shaun@tancheff.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'hwclock-jwp-reviewed' of ↵Karel Zak2017-02-091-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://github.com/kerolasa/lelux-utiliteetit * 'hwclock-jwp-reviewed' of git://github.com/kerolasa/lelux-utiliteetit: (25 commits) hwclock: remove --compare option hwclock: remove trailing dot from messages that include system error message hwclock: make --date=argument less prone to injection hwclock: fix rtc atexit registration hwclock: clarify cmos inb and outb preprocessor directives hwclock: try RTCGET and RTCSET only when normal rtc fails hwclock: stream line synchronize_to_clock_tick_rtc() hwclock: improve coding style hwclock: remove division by zero [asan] hwclock: add debugging to open_rtc() hwclock: remove magic constants from interpret_date_string() hwclock: use symbolic magic values passed in between functions hwclock: initialize struct adjtime members hwclock: alloate date_resp parsing buffer in interpret_date_string() hwclock: simplify save_adjtime() execution flow hwclock: remove dead code and other minor fixes hwclock: move error messages to determine_clock_access_method() hwclock: clarify set_cmos_epoch() code hwclock: move command-line options to control structure hwclock: remove unnecessary type casts ...
| * lib: add timegm() portability function to lib/timeutils.cSami Kerola2017-02-031-0/+1
| | | | | | | | | | | | | | | | | | Local timegm() is a replacement function in cases it is missing from libc implementation. Hopefully the replacement is never, or very rarely, used. CC: Ruediger Meier <ruediger.meier@ga-group.nl> Reviewed-by: J William Piggott <elseifthen@gmx.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | build-sys: improve detection of the "isnan" function in uClibcCarlos Santos2017-02-091-0/+1
|/ | | | | | | | | | | | | Since commit beceb14b450ded6560ed743634a5e80604a8edf3, MATH_LIBS is set to "-lm" when the isnan function is detected. In uClibc, however, isnan is a macro that calls __isnan, __isnanf, or __isnanl, depending on the size of the argument (double, float or long double). Fixes: http://autobuild.buildroot.net/results/2c2/2c29a78ed81ca844a87dcd076ab3e14ea080296d/ http://autobuild.buildroot.net/results/404/404b10f359b2ae8a7216729fa1bab37fed2d3d4c/ Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
* fallocate: Added posix_fallocate() support.Denis Chaplygin2017-01-311-0/+28
| | | | | | | No all filesystems support Linux fallocate. The new option allow use posix implementation if necessary. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use -lm for scriptreplay if necessaryKarel Zak2017-01-181-0/+7
| | | | | | Reported-by: Bert van Hall <bert.vanhall@avionic-design.de> Addresses: https://github.com/karelzak/util-linux/pull/397 Signed-off-by: Karel Zak <kzak@redhat.com>
* newgrp: use libc explicit_bzero() when it is availableSami Kerola2017-01-161-0/+1
| | | | | | | This currently new function will be part of glibc 2.25. Reference: https://sourceware.org/git/?p=glibc.git;a=commit;h=ea1bd74defcf9d5291d14972e63105168ca9eb4f Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* Merge branch 'getrandom' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2016-12-221-0/+1
|\ | | | | | | | | * 'getrandom' of git://github.com/kerolasa/lelux-utiliteetit: lib/randutils: use getrandom(2) when it is available
| * lib/randutils: use getrandom(2) when it is availableSami Kerola2016-12-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | System call getrandom(2) is relatively new, available since kernel 3.17 but not supported by glibc 2.24. That in mind autotools is made to check availability of this function and keep old code as fallback. It is reasonable assume it will take years before the syscall(2) and fallback are unproblematic to remove. One might ask why bother using getrandom(2). Main reason is to avoid unnecessary system calls to achieve exactly same end result. That demonstrated with 'strace -c ./mcookie' showing 36 calls before, and 32 after this change. Secondly the getrandom(2) function got to kernel with promise it can be used to avoid file descriptor run down, and since uuidd uses random_get_bytes() it should fulfill it's promise here. Reference: http://man7.org/linux/man-pages/man2/getrandom.2.html Reference: https://lwn.net/Articles/606141/ Reviewed-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | libmount: revert X-* and x-* meaningKarel Zak2016-12-091-1/+0Star
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's hope this is last change necessary to cleanup x-* usage: x-* persistent option, stored in utab, available for umount, etc. X-* fstab comment only mount(8) supports x-mount.mkdir= as well as newly recommended X-mount.mkdir= Advantages: * less invasive * does not require exception for x-systemd * does not require rename x-initrd to X-initrd The systemd and dracut users will get the new (=fixed) functionality without a change in fstab configuration. This is the primary goal. Disadvantages: * not 100% compatible libmount behavior, x-* options have not been previously stored in utab. The API is the same, options will be still available, but on x-* libmount will write to /run/mount/utab. For now it seems only systemd uses x-*, and they like this behavior, so... Addresses: https://github.com/systemd/systemd/pull/4515 Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: use x-systemd options as X-*Karel Zak2016-12-081-0/+1
| | | | | | | | | | | | | | | | The previous patch introduces X-* options namespace for options that have to be maintained in user space. Unfortunately, systemd users already use mount options that are necessary by umount or another operations. The conclusion from discussion with systemd guys is to store all the systemd options in userspace. It seems better to add one line exception to libmount than force all fstab users to rename x-systemd to X-systemd. Addresses: https://github.com/systemd/systemd/pull/3904 Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: disable tailf by defaultRuediger Meier2016-12-071-1/+5
| | | | | | It's deprecated since 3f8478a7, so we shouldn't build it by default. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* agetty: re-add utmp.h for Debian GNU/kFreeBSDRuediger Meier2016-12-071-0/+2
| | | | | | | It's needed there to get login_tty(). On normal FreeBSD we would need libutil.h. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: check for POSIX utmpx usageRuediger Meier2016-12-071-0/+9
| | | | | | | | | | | | | | | | | | | | We simply check for utmpxname and updwtmpx functions to disable all programs which are not POSIX utmpx compatible, even though last(1) and utmpdump(1) does not use them, see below. utmpx.h is used in: login agetty write lslogins last runuser su utmpdump wall Non-Posix utmpx usage: utmpxname -> login agetty write lslogins updwtmpx -> login agetty runuser su _PATH_.TMP -> login agetty write lslogins last runuser su utmpx.ut_addr_v6 -> login last utmpdump POSIX utmpx usage: wall Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* login-utils: switch to utmpx.hRuediger Meier2016-12-071-11/+11
| | | | | | | | Now the build will fail on many non-Linux systems because utmpx.h is available everywhere but we still use non-POSIX features. We'll fix this next commit. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* agetty: remove obsolete HAVE_UPDWTMP fallbackRuediger Meier2016-12-071-1/+0Star
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* login: re-add lastlog.h headerRuediger Meier2016-12-071-0/+1
| | | | | | | | | | | | | | | This include was removed in a365953a but we will need it again when we move from utmp.h to utmpx.h. On Linux (glibc, musl) the struct lastlog is defined in utmp.h and lastlog.h just includes utmp.h. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl> Conflicts: login-utils/login.c Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: cosmetics, avoid useless m4 quotesRuediger Meier2016-11-291-1/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: cosmetics PACKAGE_VERSION_MINORRuediger Meier2016-11-291-2/+2
| | | | | | This should changes nothing. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: update package release number during developmentRuediger Meier2016-11-291-1/+1
| | | | | | | | | | | Now we use v2.29-5-g8ffab30 -> 2.29.5-8ffa (libblkid 2.29.5) instead of v2.29-5-g8ffab30 -> 2.29.5-8ffa (libblkid 2.29.0) otherwise the bugfix releases (2.29.1) would look newer that latest HEAD. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: fix empty package release numberRuediger Meier2016-11-291-4/+2Star
| | | | | | | | | | | | Was broken for major releases since b0e6b25e: $ blkid -V blkid from util-linux 2.28 (libblkid 2.28., 12-Apr-2016) Now we also set 0 in this case, like: $ blkid -V blkid from util-linux 2.30 (libblkid 2.30.0, 12-Apr-2016) Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: mark lsmem and chmem as Linux onlyKarel Zak2016-11-091-2/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* chmem: new toolHeiko Carstens2016-11-091-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the s390 specific chmem tool to util-linux. The chmem tool was originally written in perl and is part of the s390-tools package which can be found here: https://www.ibm.com/developerworks/linux/linux390/s390-tools.html Given that the tool is architecture independent, there is no reason to keep it in an s390 specific repository. It seems to be useful for other architectures as well. This patch converts the tool to C and adds it to util-linux, while the command line options stay compatible. The only exception is the option "-v" which used to be the short form of "--version". That got changed to "-V" so it behaves like most other tools contained within util-linux. The chmem tool can be used to set memory online or offline. This can be achieved by specifying a memory range: Memory Block 19 (0x0000000130000000-0x000000013fffffff) disabled or by specifying a size where chmem will automatically select memory blocks: Memory Block 21 (0x0000000150000000-0x000000015fffffff) disable failed Memory Block 18 (0x0000000120000000-0x000000012fffffff) disabled Memory Block 17 (0x0000000110000000-0x000000011fffffff) disabled Memory Block 16 (0x0000000100000000-0x000000010fffffff) disabled Memory Block 15 (0x00000000f0000000-0x00000000ffffffff) disabled or by specifying memory block numbers instead of address ranges: Memory Block 15 (0x00000000f0000000-0x00000000ffffffff) disabled Memory Block 16 (0x0000000100000000-0x000000010fffffff) disabled Memory Block 17 (0x0000000110000000-0x000000011fffffff) disabled Memory Block 18 (0x0000000120000000-0x000000012fffffff) disabled This is based on a patch from Clemens von Mann. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lsmem: new toolHeiko Carstens2016-11-091-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the s390 specific lsmem tool to util-linux. The lsmem tool was originally written in perl and is part of the s390-tools package which can be found here: https://www.ibm.com/developerworks/linux/linux390/s390-tools.html Given that the tool is architecture independent, there is no reason to keep it in an s390 specific repository. It seems to be useful for other architectures as well. This patch converts the tool to C and adds it to util-linux, while the command line options stay compatible. The only exception is the option "-v" which used to be the short form of "--version". That got changed to "-V" so it behaves like most other tools contained within util-linux. The lsmem tool inspect the contents of /sys/devices/system/memory and prints a summary output similar to what lscpu does: RANGE SIZE STATE REMOVABLE BLOCK 0x0000000000000000-0x000000005fffffff 1,5G online yes 0-5 0x0000000060000000-0x000000007fffffff 512M online no 6-7 0x0000000080000000-0x000000013fffffff 3G online yes 8-19 0x0000000140000000-0x000000014fffffff 256M offline - 20 0x0000000150000000-0x000000017fffffff 768M online no 21-23 Memory block size : 256M Total online memory : 5,8G Total offline memory: 256M In order to keep the output small the tool merges subsequent address ranges where the attributes are identical. To avoid merging of line the "-a" option can be used. The lsmem tool also has "--extendend" and "--parsable" option which can be used to customize the output, e.g. limit the output to specified columns. This is quite similar to what the lscpu tool does. This is based on a patch from Clemens von Mann. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* build-sys: release++ (v2.29)Karel Zak2016-11-081-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix missing ncursesw messageRuediger Meier2016-10-201-2/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: use ncurses-config rather than pkg-configKarel Zak2016-10-201-8/+6Star
| | | | | | | | | | It's painful, but ncurses upstream does not distribute .pc files by default and it seems that ncurses{6,5}-config is the preferred solution. For better compatibility lets use ncurses-config. Reported-by: Ruediger Meier <sweet_f_a@gmx.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.29-rc2)Karel Zak2016-10-191-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Revert "su,runuser: add libseccomp based workaround for TIOCSTI ioctl"Karel Zak2016-10-031-16/+0Star
| | | | | | This reverts commit 8e4925016875c6a4f2ab4f833ba66f0fc57396a2. Stupid hack...
* build-sys: release++ (v2.29-rc1)Karel Zak2016-09-301-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* su,runuser: add libseccomp based workaround for TIOCSTI ioctlKarel Zak2016-09-291-0/+16
| | | | | | | | | | | This patch add libseccomp based syscalls filter to disable TIOCSTI ioctl in su/runuser children. IMHO it is not elegant solution due to dependence on libseccomp (--without-seccomp if hate it)... but there is nothing better for now. Addresses: CVE-2016-2779 Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) add source verificationKarel Zak2016-09-231-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add parisc to define ARCH_Karel Zak2016-08-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* pg: stop building the command by defaultSami Kerola2016-08-141-2/+2
| | | | | | | | | The pg command is marked deprecated in POSIX since 1997, and this project has thought the same since Feb 2013. Time has come to stop shipping this binary by default. Reference: 956e582874d3a28434018bf12057c745f74821de Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: remove global dependence between widechar and ncurseswKarel Zak2016-06-091-4/+0Star
| | | | | | | | | | | It seems that globally defined dependence between ncursesw and wide-char support is overkill, because in some cases (e.g. cal(1)) we can use ncurses independently on wide-char support. It would be better to care about relation between wide-char and ncurses individually (per util). Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: workaround for autoconf "present but cannot be compiled"Karel Zak2016-06-081-1/+6
| | | | | | | See also: https://www.gnu.org/software/autoconf/manual/autoconf-2.64/html_node/Present-But-Cannot-Be-Compiled.html Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add non-action for ncurses pkg-cong testKarel Zak2016-06-081-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: clean up relation between ncurses[w] and wide-char supportKarel Zak2016-06-081-0/+9
| | | | | | | | | | | * error if wide-char enabled/supported, but (non-wide) ncurses explicitly requested * disable ncurses at all if widechar enabled/supported, but ncursesw not found Reported-by: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup --with-ncursesKarel Zak2016-06-081-54/+37Star
| | | | | | | | | | | * don't use UL_CHECK_LIB(), only use pkg-config to avoid complexity * split --with-ncursesw and --with-ncurses; ncurses (widechar) is the default, check for ncurses only if ncursesw disabled/unavailabled * don't use generic placeholders, just have_ncursesw and have_ncurses Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix uClibc-ng scanf checkWaldemar Brodkorb2016-06-061-1/+1
| | | | | | | | | | | | uClibc-ng tries to be compatible with GNU libc and defines __GLIBC__ and pretend to be version 2.2. We once changed it to 2.10, but then some hard to fix problems in different software packages (gcc) occured. It would be better if we disable the special GNU libc checks for uClibc-ng here. uClibc-ng implements the required scanf functionality. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
* build-sys: use UL_DEFAULT_ENABLE() only for programsKarel Zak2016-06-031-1/+1
| | | | | | | | The UL_DEFAULT_ENABLE modifies $enable_<name> according to the global --enable-all-programs. This makes sense only for programs, but not for any built-in code. Signed-off-by: Karel Zak <kzak@redhat.com>