summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* travis: add OSX buildRuediger Meier2016-03-132-4/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Of course OSX is not an important target but since it's available on travis we can (mis)use it to generally improve non-Linux and non-GNU compatibility. People are using musl, busybox or whatever and util-linux should work for them. Having OSX build running regularly will help us to freeze the lately improved BSD compatibility and to check code which is usually ifdef'ed. We are using the most recent OSX 10.11.x / Xcode 7.3 though the older travis OSX images are working too currently. If it turns out that this OSX build is too annoying when we are about to add support for latest Linux features then we could add: allow_failures: - os: osx to let it fail silently. Note I've tried hard to keep .travis-functions.sh readable for the Linux case. I've removed --with-python because it's default anyway, --enable-gtk-doc is still tested in discheck. OSX root check would also work (almost, using another --prefix) but would only run one more test yet (minix). OSX distcheck would have some issues with conditionally built man pages and does not work with default distcheck confopts. No need to fix that because distcheck is more for maintainer machines. BTW to increase travis build speed again we could remove some targets from the matrix without losing tested scenarios: - nonroot for Linux seems to be waste of time - clang/Linux could be root check only For now we keep it as is. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* travis: switch to Ubuntu 14.04 TrustyRuediger Meier2016-03-132-5/+16
| | | | | | | | | | | Now we have a reasonable recent build system with systemd, etc. We still keep old Ubuntu 12.04 Precise to check backward compatibility but remove the hack to install socat. Note the new env variable PRECISE="yes" is only there to see it on travis website. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* 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-138-7/+8
| | | | 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>
* tests: don't use system's mount commandsRuediger Meier2016-03-135-11/+16
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: improve skipping of old btrfs-toolsRuediger Meier2016-03-135-72/+73
| | | | | | | | | | | | | | | | | Older Linux distributions came with differently incomplete btrfs-tools 0.19+git versions (2009-2013). Old mkfs.btrfs needs minimum device size 256M. Note the most simple way to skip btrfs-tools < 3.14 would be btrfs property --help 2>&1 || ts_skip "btrfs too old" but I want to include 3.12 because of Ubuntu Trusty on travis. This patch partly reverts/rewrites the following commits: 7e604f3c - tests: don't skip case "output undefined" 076153f8 - tests: don't compare btrfs mount options 370d31f7 - tests: skip btrfs tests if version too old Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: remove invalid argument in libmount/debugRuediger Meier2016-03-131-2/+2
| | | | | | | | This was usually no problem because of unsafe strtoul(3) usage in test prog libmount/src/init.c. But musl's strtoul sets errno if no digit was found in the argument. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: skip old socat silentlyRuediger Meier2016-03-131-8/+9
| | | | | | | I've seen enough logs with verbose socat output for now. Let's make it quiet. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* misc: fix icc/clang compiler warningsRuediger Meier2016-03-135-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | clang warning: libmount/src/tab.c:1833:6: warning: variable 'rc' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (!mpc) ^~~~ icc printf warnings: libmount/src/monitor.c(348): warning #2279: printf/scanf format not a string literal and no format arguments DBG(MONITOR, ul_debugobj(mn, status == 1 ? " success" : " nothing")); ^ login-utils/vipw.c(348): warning #2279: printf/scanf format not a string literal and no format arguments : _("You are using shadow passwords on this system.\n")); ^ icc enum warnings: disk-utils/fdisk-menu.c(150): warning #188: enumerated type mixed with another type .exclude = FDISK_DISKLABEL_GPT | FDISK_DISKLABEL_BSD, ^ libsmartcols/src/table_print.c(750): warning #188: enumerated type mixed with another type &width, align, ^ Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* misc: fix printf i386 compiler warningsRuediger Meier2016-03-122-4/+5
| | | | | | | | | | | | | | | Still a few printf warnings found on i386 Linux: libfdisk/src/alignment.c: In function 'fdisk_align_lba': libfdisk/src/alignment.c:115:3: warning: format '%ju' expects argument of type 'uintmax_t', but argument 6 has type 'long unsigned int' [-Wformat] sys-utils/lsns.c: In function ‘add_namespace’: sys-utils/lsns.c:346:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘ino_t’ [-Wformat] sys-utils/lsns.c: In function ‘add_process_to_namespace’: sys-utils/lsns.c:362:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘ino_t’ [-Wformat] sys-utils/lsns.c: In function ‘add_scols_line’: sys-utils/lsns.c:440:4: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘ino_t’ [-Wformat] Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: release++ (v2.28-rc1)Karel Zak2016-03-112-1/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update v2.28-ReleaseNotesKarel Zak2016-03-111-0/+597
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update AUTHORS fileKarel Zak2016-03-101-1/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: merge changesKarel Zak2016-03-1027-64909/+77274
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: update zh_CN.po (from translationproject.org)Wylmer Wang2016-03-101-601/+1115
|
* po: update ru.po (from translationproject.org)Evgeniy Yakushev2016-03-101-6082/+2379Star
|
* po: update pt_BR.po (from translationproject.org)Rafael Fontenelle2016-03-101-1839/+1499Star
|
* po: update de.po (from translationproject.org)Philipp Thomas2016-03-101-1248/+925Star
|
* po: update cs.po (from translationproject.org)Petr Písař2016-03-101-794/+619Star
|
* logger: keep man page consistent and use \- everywhereKarel Zak2016-03-101-8/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* misc: remove duplicate includesKarel Zak2016-03-102-2/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update build-sys testsKarel Zak2016-03-1017-16/+32
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix if..endif for *_la_LDFLAGSKarel Zak2016-03-105-20/+18Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'test-btrfs' of https://github.com/rudimeier/util-linuxKarel Zak2016-03-101-0/+4
|\
| * tests: skip btrfs tests if version too oldRuediger Meier2016-03-091-0/+4
| | | | | | | | | | | | | | | | Noticed on Debian 7 (Wheezy), btrfs-tools 0.19: btrfs inspect-internal: unknown token 'rootid' CC: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | sfdisk, fdisk: add fflush()Karel Zak2016-03-105-10/+14
| | | | | | | | | | | | | | Let's add fflush(stdout) before we print to stderr to make output order more deterministic. Signed-off-by: Karel Zak <kzak@redhat.com>
* | libmount: Typo fixStanislav Brabec2016-03-101-2/+2
| |
* | look: consider blanks as directory charactersKarel Zak2016-03-092-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | This change introduces regression, but it seems better than to be incompatible with "sort -d" if we assume that "sort -d" is the right way how to prepare files for look(1). It seems (from man page) that the original goal has been compatibility with sort -d, but this feature has never been fully implemented. Addresses: https://github.com/karelzak/util-linux/issues/284 Signed-off-by: Karel Zak <kzak@redhat.com>
* | Merge branch 'test-fixes' of https://github.com/rudimeier/util-linuxKarel Zak2016-03-098-4/+36
|\| | | | | | | | | | | | | | | | | * 'test-fixes' of https://github.com/rudimeier/util-linux: tests: fix non-working udevadm settle for scsi_debug tests: hotfix, wait for scsi_debug partion tests: don't use mkfs.btrfs option -f tests: ignore swapon warnings tests: udevadm settle before losetup -d
| * tests: fix non-working udevadm settle for scsi_debugRuediger Meier2016-03-091-2/+15
| | | | | | | | | | | | | | | | | | | | | | We don't sleep anymore since 01b38917. This does not work on Debian 7 (wheezy)/linux-3.2. Is it the kernel's or udev's fault? We simmply add a better sleep again plus some todos for later improvements. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: hotfix, wait for scsi_debug partionRuediger Meier2016-03-091-1/+4
| | | | | | | | | | | | | | Maybe we shouldn't use scsi_debug's num_parts=1 but fdisk to add a partion. This seems to work better with udevadm settle. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: don't use mkfs.btrfs option -fRuediger Meier2016-03-091-1/+1
| | | | | | | | | | | | | | | | btrfs-tools 0.19 does not have option -f but looks like we don't need it in this test. CC: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: ignore swapon warningsRuediger Meier2016-03-094-0/+12
| | | | | | | | | | | | | | | | | | | | | | swapon/mkswap warns if system sets different permissions for loop devices. I saw this on Debian 7 (wheezy)/linux-3.2: mkswap: /dev/loop0: insecure permissions 1660, 0660 suggested. swapon: /dev/loop0: insecure permissions 1660, 0660 suggested. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: udevadm settle before losetup -dRuediger Meier2016-03-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | On Debian 7 (wheezy)/linux-3.2 we need "udevadm settle" between losetup and losetup -d in case that the backing file is a block device (scsi_debug). This issue is visible since: 7e604f3c tests: don't skip case "output undefined" Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | Merge branch 'port-osx' of https://github.com/rudimeier/util-linuxKarel Zak2016-03-093-17/+43
|\ \ | | | | | | | | | | | | | | | | | | | | | * 'port-osx' of https://github.com/rudimeier/util-linux: fdisk: fix warning, uninitialized variable logger: fix compiler warning, const facilitynames include/bitops: avoid fallbacks for more systems include/bitops: add casts to bswap functions
| * | fdisk: fix warning, uninitialized variableRuediger Meier2016-03-081-1/+1
| | | | | | | | | | | | | | | | | | This was a typo in 4afb337e. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * | logger: fix compiler warning, const facilitynamesRuediger Meier2016-03-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was the warning on FreeBSD: misc-utils/logger.c:221:24: warning: passing 'const CODE [25]' to parameter of type 'CODE *' (aka 'struct _code *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] facility = decode(s, facilitynames); ^~~~~~~~~~~~~ misc-utils/logger.c:187:43: note: passing argument to parameter 'codetab' here static int decode(const char *name, CODE *codetab) Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * | include/bitops: avoid fallbacks for more systemsRuediger Meier2016-03-081-0/+21
| | | | | | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * | include/bitops: add casts to bswap functionsRuediger Meier2016-03-081-14/+19
| | | | | | | | | | | | | | | | | | Based on kernel sources include/uapi/linux/swab.h. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | | blkdiscard: slice up the recently changed usage textBenno Schulenberg2016-03-091-7/+8
| | | | | | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | | mount: further improve formatting of the man pageBenno Schulenberg2016-03-091-125/+118Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | Mainly by using proper subsections (so they can be indexed), protecting some things from hyphenation, and marking with \& periods that don't end sentences. Tweaking some wordings too. Signed-off-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* | | findmnt: improve formatting and wording of the man pageBenno Schulenberg2016-03-091-30/+31
| |/ |/| | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | misc: avoid shadowingKarel Zak2016-03-094-29/+29
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lib/linux_version: avoid major and minor shadowingKarel Zak2016-03-091-6/+5Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | cal: remove libtermcap arguments to my_tgetstr()Sami Kerola2016-03-091-3/+3
| | | | | | | | | | | | Missed in commit b4566a8a8d0cf345e637194f9c95091a1ef4dfe0. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | misc: remove path name definitions that are unusedSami Kerola2016-03-093-44/+0Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After this commit the following produces zero matches. $ for i in \ _PATH_DEV_TTY \ _PATH_INITTAB \ _PATH_MNTTAB_DIR \ _PATH_MOUNTED_LOCK \ _PATH_MOUNTED_TMP \ _PATH_RC \ _PATH_REBOOT \ _PATH_SECURE \ _PATH_SECURETTY \ _PATH_SHUTDOWN_CONF \ _PATH_SINGLE \ _PATH_UMOUNT \ _PATH_USERTTY do git grep $i; done Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | tests: mark script race test as "known fail"Karel Zak2016-03-091-0/+4
| | | | | | | | | | Addresses: https://github.com/karelzak/util-linux/issues/296 Signed-off-by: Karel Zak <kzak@redhat.com>
* | include: move sys/sysmacros.h to c.hKarel Zak2016-03-085-11/+5Star
| | | | | | | | | | | | | | The file is no portable (#ifdef HAVE_SYS_SYSMACROS_H is necessary), but needed on many places. It seems better to keep it in c.h. Signed-off-by: Karel Zak <kzak@redhat.com>