summaryrefslogtreecommitdiffstats
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* build-sys: add --disable-widecharKarel Zak2016-06-031-13/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-plymouth-supportKarel Zak2016-05-261-0/+31
| | | | | | | | The plymouth support depends on Linux specific SOCK_* flags and all the feature is probably unnecessary in some cases (non-plymouth distros, etc.) Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: test functions does not return voidSami Kerola2016-04-191-1/+1
| | | | | | Found using scan-build. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libmount: don't support /etc/mtab by defaultKarel Zak2016-04-141-5/+5
| | | | | | | | | | | | | | | | | The file mtab is evil and already unused by mainstream distributions. Now libmount is able to detect mtab->/proc/mounts and use /proc/self/mountinfo if necessary. This heuristic seems overkill in many cases. It's also dangerous on systems where mountinfo is strongly required (systemd based distros). This patch #ifdefs mtab code and forces libmount to always use /proc/self/mountinfo. The new configure option --enable-libmount-support-mtab is necessary to enable old behavior to support mtab. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --enable-libuuid-force-uuiddRuediger Meier2016-04-141-1/+6
| | | | | | | To build libuuid with uuidd support even though the daemon is disabled (--disable-uuidd). Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: release++ (v2.28)Karel Zak2016-04-121-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix cap-ng configure flag handlingMike Frysinger2016-04-121-2/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* build-sys: add --disable-logger and --disable-lsloginsRuediger Meier2016-04-061-3/+10
| | | | | | | | Now we are able to disable all programs which have systemd/journald support. This feature is needed by openSUSE packagers who are building util-linux in 2 stages to avoid build cycles. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* getopt: make sure setprogname provided by non-Linux systemKarel Zak2016-04-041-0/+1
| | | | | | | based on suggestion from Ruediger Meier. Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: happy new year...Karel Zak2016-03-291-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.28-rc2)Karel Zak2016-03-291-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: improve uuidd and script build conditionsRuediger Meier2016-03-131-1/+5
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: use AC_PROG_MKDIR_P and remove a few gnuismsRuediger Meier2016-03-131-0/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: add missing "not found" stringsRuediger Meier2016-03-131-2/+2
| | | | | | | Otherwise configure output looks like this: configure: WARNING: not found; not building cfdisk Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: fix again UL_SCANF_TYPE_MODIFIERRuediger Meier2016-03-131-6/+4Star
| | | | | | | | | | | | | | | | | This reverts commit c8494d88: "build-sys: fix UL_SCANF_TYPE_MODIFIER for icc" plus fix the check prog, because it found "%as" to be valid on systems where "%a" is used for float conversion. icc warns about "%ms" but it works anyways. Our AC_RUN_IFELSE prog should do it right now regardless of compiler warnings. Note "%ms" is POSIX.1-2008 standard but still not available on many systems. Maybe it's time to remove "%as" fallback for old glibc which is even less portable. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: release++ (v2.28-rc1)Karel Zak2016-03-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add and use openat build conditionalsRuediger Meier2016-03-071-1/+6
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* lib: provide fallback if mkostemp(3) missingRuediger Meier2016-02-291-0/+1
| | | | | | | It's missing on OSX. CC: Yuriy M. Kaminskiy <yumkam@gmail.com> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: chrt requires a sched_set* functionRuediger Meier2016-02-291-0/+7
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: add --disable-ipcrm --disable-ipcsRuediger Meier2016-02-291-2/+10
| | | | | | | | ipcs's source history looks like some people are using it on BSD but it won't build on most non-Linux systems. That's why it's nice let "./configure --disable-ipcrm --disable-ipcs" work. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: disable login-utils if shadow.h or utmp.h is missingRuediger Meier2016-02-291-4/+21
| | | | | | | | | | | | | Actually we could have also used UL_REQUIRES_LINUX because our utmp usage and the shadow.h header is unlikely to be portable. However only requiring these headers may help others who are curious what needs to be done to port something. Note, we could easily make the utmp stuff more portable by using utmpx which is POSIX standard and on LINUX (glibc) basically just renaming work. See getutxent(3). Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: build_init should check for flockRuediger Meier2016-02-291-1/+1
| | | | | | | To let a plain ./configure work on systems without create_timer(). see 254743e4 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* misc: fix some includesRuediger Meier2016-02-291-1/+0Star
| | | | | | | | | features.h: any glibc header includes this already libgen.h: was unused there sys/uio.h: for writev(3p) sys/queue.h seems like it was never used Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: disable unused parameter warnings for some test progsRuediger Meier2016-02-231-0/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: fix typoRomain Naour2016-02-221-1/+1
| | | | | | | | | | | | When timer_create is available have_timer must be set to "yes". But instead have_time is used. Replace have_time by have_timer. Fixes: http://autobuild.buildroot.net/results/993/9935cd0522d4f978ba2e788a690f66790686b76b Signed-off-by: Romain Naour <romain.naour@gmail.com>
* lib: fix ismounted includes for FreeBSDRuediger Meier2016-02-181-0/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* include: check for sys/sysmacros.hRuediger Meier2016-02-181-0/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>