Commit Graph

501 Commits

Author SHA1 Message Date
Sami Kerola 78288764e4 build-sys: determine availability of __fpending()
Needed to for making Cygwin more possible.

Reference: http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/5656
Reported-by: Bernhard Voelker <bernhard.voelker@siemens-enterprise.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-23 14:26:23 +02:00
Bernhard Voelker 455fe9a075 Fix typos found by misspellings
The tool misspellings (https://github.com/lyda/misspell-check)
detected several typos. Command used:

  $ git ls-files | grep -v ^po/ | misspellings -f -

* isosize: Fix typo in usage string.
* configure.ac: Fix typo in help string of --enable-most-builds option.
* fdisk: Fix typo in man page.
* libblkid, blkid, mount: Likewise.
* Fix various typos in docs and in source code comments.

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
2012-04-23 13:16:35 +02:00
Karel Zak 4f469e588d Merge branch 'eject'
* eject: (47 commits)
  tests: use eject --force
  eject: use BUILD_EJECT, move to sys-utils
  eject: clean up usage()
  eject: clean up man page
  eject: add --force option
  eject: check for hotplug/removable attribute
  eject: remove obsolete code, use EXIT_* macros
  tests: add umount-by-eject tests
  eject: improve work with partitioned devices
  lib/sysfs: improve sysfs_is_partition_dirent()
  eject: call umount <mountpoint> rather than <device>
  eject: use libmount to detect if cdrom is mounted
  eject: make the code robust
  eject: use SG_IO ioctl for scsi
  eject: support CDIOCEJECT ioctl
  eject: new close_tray code from Fedora
  eject: new auto_eject code from Fedora
  eject: add -X from Fedora
  eject: add --manualeject from fedora
  eject: clean up devname usage
  ...
2012-04-05 15:58:28 +02:00
Karel Zak 88a3f049ec eject: use BUILD_EJECT, move to sys-utils
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-05 15:51:30 +02:00
Karel Zak 4581bd9c67 build-sys: disable chkdupexe by default, mark as deprecated
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-04 12:18:32 +02:00
Karel Zak 9554f7abd8 lsblk: use libmount to get mountpoints/swaps
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-03 13:43:50 +02:00
Michal Luscon 539feec175 eject: initial merge eject and util-linux
Signed-off-by: Michal Luscon <mluscon@redhat.com>
2012-03-27 13:04:58 +02:00
Karel Zak a7b585eac3 fsck: move to disk-utils directory
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-20 11:22:09 +01:00
Sebastian Andrzej Siewior d0202f1c5a build-sys: make the crosscompile path for scanf_cv_alloc_modifier clever
My earlier assumption was that scanf_cv_alloc_modifier is unused. This
is not true as pointed out by Karel since it used befoe checking for
libmount. Argh. So instead saying no I add a test to check for glibc
>= 2.7 which provides %m. As of uClibc v0.9.32-rc3 the situation looks
the following:
| git grep _M_SPEC__
|libc/stdio/_vfprintf.c:/* #define __UCLIBC_HAS_PRINTF_M_SPEC__ */
|libc/stdio/_vfprintf.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__
|libc/stdio/_vfprintf.c:# ifdef __UCLIBC_HAS_PRINTF_M_SPEC__
|libc/stdio/_vfprintf.c:# endif /* __UCLIBC_HAS_PRINTF_M_SPEC__ */
|libc/stdio/_vfprintf.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__
|libc/stdio/_vfprintf.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__
|libc/stdio/_vfprintf.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__
|libc/stdio/_vfprintf.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__
|libc/stdio/old_vfprintf.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__
|libc/stdio/perror.c:#ifdef __UCLIBC_HAS_PRINTF_M_SPEC__

And other libc user have to bring their own stuff.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
2012-03-20 09:14:27 +01:00
Sami Kerola 6500ec90de build-sys: fix chkdupexe regression
Commit 2897f50a6a resulted breaking
shebang substitution for chkdupexe.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-18 14:28:05 +01:00
Karel Zak de2174895a build-sys: add --diable-sulogin (enabled by default)
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-12 15:16:09 +01:00
Karel Zak 29d2011abb build-sys: note sulogin in configure help
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-12 14:53:18 +01:00
Davidlohr Bueso 3dc02ef408 lslocks: new command
The new lslocks(8) program is meant to replace the deprecated lslk(8). It is
designed for simplicity and removes unnecessary Unix legacy outputs and
options:

- Don't output inode number, whence and maj:min device numbers.
- Don't provide nonblocking syscall options stat(2) and readlink(2)
- Remove lslk's alternate default kernel name list file path (-k)

The option to use nonblocking calls was previously intended for NFS partitions;
however this should be transparent to utility programs considering that
timeouts can occur generically (fuse - sshfs, NFS, netdevs, etc).

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-29 14:08:11 +01:00
Karel Zak dda92fe093 build-sys: s/ruman/ruman1/
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-28 18:11:23 +01:00
Sami Kerola 7aa8bdb50e docs: do not overwrite ddate.1 manual
The following warning meant either english manual page overwrote ru
version, or otherway around.  Neither way that not intented.  This
patch will change ru version of the manual page to be installed to
<prefix><mandir>/ru/man1 directory.

man/ru/Makefile.am:4: warning: mandir was already defined in condition TRUE, which includes condition BUILD_DDATE ...
configure.ac:1: ... `mandir' previously defined here

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-02-28 15:41:32 +01:00
Sebastian Andrzej Siewior b420e27969 build-sys: add a crosscompile path for scanf_cv_alloc_modifier
This allows to building the package cross again. Since the return value
is not used I guess there is little loss.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
2012-02-28 15:03:04 +01:00
Sami Kerola f06b43285d build-sys: enhance readability of the autotools files
Several horizontal lists are turned to vertical, and sorted to
alphabetical order. Additionally spaces are converted to tabs where
ever possible.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-02-28 13:29:35 +01:00
Sami Kerola 9fbc2dffb0 build-sys: remove unused function and header checks
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-02-28 13:21:11 +01:00
Karel Zak 6b7113bc3c build-sys: release++ (v2.21)
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-24 11:53:46 +01:00
Petr Uzel 8fc8888b04 build-sys: fix building of wall
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-02-22 11:51:59 +01:00
Karel Zak 1e96245901 build-sys: release++ (v2.21-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-06 18:28:42 +01:00
Masatake YAMATO 485a8bfa98 libmount: scandirat based mnt_table_parse_dir implementation
In comment of `mnt_table_parse_dir' of libmount/src/tab_parse.c:

	/* TODO: it would be nice to have a scandir() implementation that
	 *       is able to use already opened directory */

Nowadays glibc provides `scandirat'. This patch implements `scandirat'
based `mnt_table_parse_dir'.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2012-01-23 13:52:51 +01:00
Karel Zak df5f3c5401 build-sys: enable .xz, disable .gz
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-18 20:10:44 +01:00
Karel Zak e6e5b7dcf4 build-sys: release++ (v2.21-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-18 14:22:17 +01:00
Karel Zak ecdba5ddfc build-sys: add --enable-new-mount
Now we have three versions of the mount(8) utility

 * old mount(8)
   --enable-mount [default]

 * old mount(8) linked with libmount
   This is this is necessary for systems without mtab file.
   --enable-libmount-mount

 - new mount(8)
   This is completely new pure-libmount based mount(8).
   --enable-new-mount

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-11 17:05:08 +01:00
Karel Zak 143635c91f build-sys: move swapon from mount/ to sys-utils/
... to make it independent on mount stuff.

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-11 12:14:29 +01:00
Karel Zak bd6d0d039c losetup: move to sys-utils directory
Now losetup(8) is independent on mount/ stuff at all.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-12-20 13:07:54 +01:00
Karel Zak fa7be20eb9 build-sys: fix libuuid initialization
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:51 +01:00
Karel Zak 945ac25080 prlimit: add add falbacks
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:51 +01:00
Karel Zak 61a074f712 build-sys: add UL_BUILD_INIT macro
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:51 +01:00
Karel Zak e09ebf2225 build-sys: cleanup BUILD_HWCLOCK
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:51 +01:00
Karel Zak f089811625 build-sys: cleanup BUILD_{WALL,WRITE}
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:51 +01:00
Karel Zak 17d5e11bf8 build-sys: cleanup BUILD_SCHEDUTILS
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak 75ad4910e3 build-sys: move --with-* before --enable-*
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak ff0cb84ddb build-sys: cleanup BUILD_LOGIN_UTILS
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak d11715422a build-sys: cleanup BUILD_{RENAME,RESET}
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak 2dc685290a build-sys: cleanup BUILD_{LAST,LINE,MESG}
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak 4be753aa4c build-sys: cleanup BUILD_KILL, enable kill(1) by default
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak b8d8c653b1 build-sys: cleanup BUILD_ELVTUNE
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak 9f63266727 build-sys: cleanup BUILD_PIVOT_ROOT
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak a3d3b7702a build-sys: cleanup BUILD_SWITCH_ROOT
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak d81b5a5217 build-sys: cleanup BUILD_CRAMFS
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak 0fc74be1ab build-sys: cleanup BUILD_{DDATE,AGETTY}
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak 3c6e292ca3 build-sys: cleanup BUILD_ARCH
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak a2ea6670bb build-sys: cleanup BUILD_UNSHARE
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak 10e56b49a8 build-sys: cleanup BUILD_FALLOCATE
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak 8d35bdc917 build-sys: cleanup HAVE_LIBCRYPT
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak a67387b7ca build-sys: move structs, types, descs checks before --enable-*
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak 3aecf79dea build-sys: move type checks before --enable-*
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak 09734b00f8 build-sys: move gettext check before --enable-*
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:50 +01:00
Karel Zak da396d8836 build-sys: cleanup BUILD_{LS,CH}CPU
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak a9127bc158 build-sys: cleanup BUILD_MOUNTPOINT
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak a13cdb7a2d build-sys: cleanup BUILD_LSBLK
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak bcdab497df build-sys: cleanup BUILD_UUIDD
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak 13f5473e10 build-sys: cleanup BUILD_LIBMOUNT
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak 4f3b364bec build-sys: use $build_libblkid
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak ecde25362e build-sys: cleanup BUILD_PARTX
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak 1d12ed5780 build-sys: cleanup BUILD_FSCK
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak 9ead6701a1 build-sys: cleanup BUILD_MOUNT
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak 16ba8d5893 build-sys: cleanup BUILD_RAW
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak 2897f50a6a build-sys: remove unnecessary perl check
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak 1dbbde662f build-sys: move --enable-lib{mount,uuid,blkid} before others --enable-*
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak 132ea94136 build-sys: rename and move macros
- use m4/ul.m4 for util-linux macros
 - use UL_ prefix for all util-linux macros

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:49 +01:00
Karel Zak 6e3bc8a67a login: utmp code refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-26 23:17:16 +02:00
Karel Zak c94b3604f7 build-sys: require PAM for login-utils
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-26 23:17:15 +02:00
Karel Zak 640fc1b819 build-sys: check scanf %ms modifier
Without the check libmount builds on systems that has older than 2.7
glibc are silently unsuccessful.  The missing %ms modifier will, at
least, result on such system missing output of findmnt and lsblk
commands.  If either %ms or %as modifiers are present the libmount
build is disabled.

Based on patch from: Sami Kerola <kerolasa@iki.fi>

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-10 14:42:40 +02:00
Ilias Mamedov f17f5f481a lsblk: add udev support
[kzak@redhat.com: - enable udev support by default
                  - don't check for libudev.h
                  - minor udev code refactoring in lsblk.c]

Signed-off-by: Ilias Mamedov <arknir@yandex.ru>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-03 14:25:43 +02:00
Sami Kerola 564cea2b28 build-sys: ddate typo fixed
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-09-10 16:47:15 +02:00
Sami Kerola d17584b635 build-sys: add --enable-most-builds
The --enable-most-builds will build everything else but
experimental code.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-09-10 16:46:53 +02:00
Karel Zak 9637c8ac7e build-sys: remove redundant __progname check
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-31 17:10:31 +02:00
Karel Zak 60a5833b64 build-sys: release++ v2.20
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-29 13:03:13 +02:00
Ben Hutchings 70eebc40e2 setarch: add --uname-2.6 option for personality flag UNAME26
[kzak@redhat.com: - minor change in usage()]

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-29 11:16:25 +02:00
Karel Zak 4a8962f3a7 build-sys: add --enable-ddate
Don't build this crazy thing by default.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-18 11:50:27 +02:00
Karel Zak 2023ccc4dd build-sys: rename --enable-partx to --disable-partx
Note the partx command is (and always was) enabled by default on Linux.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-18 11:38:19 +02:00
Karel Zak e13d44a1e4 build-sys: release++ (v2.20-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-17 00:55:52 +02:00
Karel Zak e6adc77143 build-sys: fix configure.ac for uuidd
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-29 22:44:47 +02:00
Karel Zak d6fc523d28 build-sys: release++ (v2.20-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-29 15:14:52 +02:00
Karel Zak 3d92ed40e6 build-sys: enable mountpoint, add dependence on libmout
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-27 12:02:36 +02:00
Karel Zak 0164c24595 mountpoint: add new command
This is libmount based re-implementation of the mountpoint(1) command.
The original implementation is maintained in sysvinit suite.

The mountpoint(1) in util-linux is not enabled by default (for now) --
use --enable-mountpoint to enable the util.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-21 11:46:36 +02:00
Josiah Worcester 363ce07137 hwclock: Don't use asm/io.h if sys/io.h can't be found
[kzak@redhat.com: - check for obsolete asm/io.h in configure.ac]

Signed-off-by: Josiah Worcester <josiahw@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-14 14:16:07 +02:00
Karel Zak 8fb4efae6f build-sys: use top-level directory for libblkid rather than shlibs/blkid
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-09 22:04:24 +02:00
Karel Zak 2aefc0a8f2 build-sys: use top-level directory for libmount rather than shlibs/mount
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-09 21:59:52 +02:00
Karel Zak 83d20837dc build-sys: use top-level directory for libuuid rather than shlibs/uuid
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-09 21:54:05 +02:00
Karel Zak 0ff9e65ea3 simpleinit: remove this deprecated set of utils
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-08 13:20:37 +02:00
Sami Kerola c135a8bdc3 build-sys: stop building line(1) by default
Align build system behaviour with DEPRECATED file.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-05-26 15:03:54 +02:00
Samuel Thibault b875d536d9 build-sys: non-linux fixup
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2011-04-21 15:17:59 +02:00
Karel Zak 488c033f2a build-sys: remove check-news
I need to call "make distcheck" often during development phase to check
that all files are correctly added to Makefiles. The "check-new"
automake option is useless if $(VERSION) is generated from git.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-04-05 16:38:06 +02:00
Sami Kerola 38c75b59e3 build-sys: use git-version-gen to distinct git and release versions
The script is copied as is from gnulib.

[kzak@redhat.com: - generate .tarball-version and .version files in
                    top level Makefile.am
                  - delete autom4te.cache in autogen.sh]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-04-05 16:34:00 +02:00
Karel Zak b98ae9c2e8 build-sys: clean up partx Makefile
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-03-16 17:39:54 +01:00
Karel Zak b1ef3ad66b build-sys: don't support external (e2fsprogs) libblkid
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-03-16 17:31:50 +01:00
Karel Zak 403e2d0c02 build-sys: don't support external (e2fsprogs) libuuid
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-03-16 17:03:48 +01:00
Samuel Thibault 465e997384 hwclock: build on non-Linux
Thanks to the direct ISA method and by disabling the RTC get/set epoch
functionality, hwclock can work fine on non-Linux systems which provide
ioperm or iopl.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2011-03-11 12:34:25 +01:00
Sami Kerola fd0f41321b build-sys: print helpful error when pkg.m4 is missing
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-03-08 13:37:25 +01:00
Sami Kerola 9c3c99e9bb build-sys: Enable automake's -Wno-portability option.
The util-linux depends on GNU make.

shlibs/blkid/src/Makefile.am:58: warning: `%'-style pattern rules are a GNU make extension
shlibs/mount/src/Makefile.am:62: warning: `%'-style pattern rules are a GNU make extension

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-03-08 13:37:20 +01:00
Sami Kerola 31c9c1c4c0 build-sys: introduce AM_PROG_CC_C_O macro
Fix to warning which will appear when using fairly new automake
(automake commit id fd22dca).

disk-utils/Makefile.am:31: warning: compiling `mkswap.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac'

Reference documentation
http://www.gnu.org/software/hello/manual/automake/Public-Macros.html#index-AM_005fPROG_005fCC_005fC_005fO-296

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-03-08 13:37:18 +01:00
Karel Zak c0f20acb7a build-sys: add term-utils/
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-03-02 13:54:05 +01:00
Karel Zak a1504d8bf5 kill: add -q sigval to use sigqueue(2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-02-28 17:15:40 +01:00
Fabian Groffen eb76ca98b0 build-sys: provide alternatives for err, errx, warn and warnx
Solaris lacks err, errx, warn and warnx.  This also means the err.h header
doesn't exist.  Removed err.h include from all files, and included err.h from
c.h instead if it exists, otherwise alternatives are provided.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-02-14 17:45:24 +01:00
Karel Zak 7f7126d749 build-sys: don't build lsblk on Linux without openat()
Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-02-11 09:42:49 +01:00
Karel Zak 69df550fe1 build-sys: release++ (v2.19)
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-02-10 09:37:47 +01:00
Fabian Groffen a804f444eb provide a workaround if program_invocation_short_name is missing
Try some replacements, such as getexecname() on Solaris and __progname
on BSDs and Darwin.  When not found, base program_invocation_short_name
on the source filename it is used in, as not to require argv[0] to be
passed along.  This latter approach is not dynamic, but doesn't require
code changes for all places where program_invocation_short_name is used
now.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-31 15:51:06 +01:00
Karel Zak a2b3d04095 build-sys: enable lsblk and libmount for Linux only
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-31 14:18:46 +01:00
Karel Zak 539d14ec60 build-sys: release++ (v2.19-rc3)
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-25 17:21:53 +01:00
Karel Zak e4764e8bb5 build-sys: release++ (v2.19-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-25 13:10:23 +01:00
Fabian Groffen d58c47d9a4 include: emulate dirfd when necessary
dirfd is not available on Solaris 10, it is available on latest
OpenSolaris releases though.  Do some autoconf trickery to determine if
providing an alternative dirfd function is necessary and possible.

shlibs/blkid/src/read.c: Do not define _XOPEN_SOURCE to 600, or DIR will
lose it's dd_fd member again.  Rearrange defines and includes to make
sense per comments, and not conflict on Solaris.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-23 22:17:14 +01:00
Karel Zak 2a1f429ad0 libmount: rename mount.h to libmount.h
The mount.h file name is too generic.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-22 00:27:26 +01:00
Fabian Groffen 0bf9d41da2 build-sys: check for paths.h
paths.h doesn't exist on Solaris

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-20 23:47:52 +01:00
Fabian Groffen 3edaa2019b make _IO macros available on Solaris
The _IO macro is defined in sys/ioccom.h on various platforms.  However,
on Solaris it isn't included by ioctl.h, so include it explicitly if
available.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-20 23:31:14 +01:00
Fabian Groffen 60cc9f9404 build-sys: link with socketlibs when necessary
To link an object which references socket functions, you need to link
with -lsocket -lnsl on Solaris.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-20 23:03:01 +01:00
Fabian Groffen 5be1c0330b build-sys: check for loff_t, it may not exist
On some systems, loff_t does not exist.  Define it as int64_t in that
case.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-20 22:40:58 +01:00
Fabian Groffen 0aeb57aca3 build-sys: improve check for crypt
Check for crypt.h existence, and use it if available over using unistd.h
for which a certain feature level has to be set to export a definition
for crypt.  On Solaris this set causes a standards conflict in the
headers, because at the time of this check C99 mode is already enabled,
which implies certain standards non-compatible with _XOPEN_SOURCE.

 92  #define _XOPEN_SOURCE
 93  #include <unistd.h>

configure:16259: gcc -std=gnu99 -c -g -O2  conftest.c >&5
In file included from /usr/include/unistd.h:18,
                 from conftest.c:93:
/prefix/gentoo/usr/lib/gcc/i386-pc-solaris2.10/4.4.5/include-fixed/sys/feature_tests.h:341:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"

configure.ac: improve crypt check
login-utils/my_crypt.h: replace old GNU_LIBRARY check with autoconf
define for crypt.h

[kzak@redhat.com: - remove my_crypt.h]

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-17 16:32:39 +01:00
Karel Zak 97073441e6 libmount: add mount(8) sample
This code is going to be used as mount(8) replacement in the next
major release (2.20). For now this mount(8) implementation does not
support loopdevs initialization.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-10 14:35:25 +01:00
Karel Zak 1d9aaca90c build-sys: release++ (v2.19-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-05 13:41:44 +01:00
Karel Zak 37ef0439da build-sys: add --enable-libmount-mount
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-03 12:28:47 +01:00
Karel Zak 5502d92b28 simpleinit: move old init stuff to separate directory
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10 17:28:32 +01:00
Karel Zak 601d12fb10 rename util-linux-ng back to util-linux
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30 11:41:59 +01:00
Karel Zak dc61d398ba lib: add fallback for nl_langinfo()
The fallback ignores locales and returns hardcoded static strings. It
should be enough to include "nls.h" to work with nl_langinfo() on all
systems.

Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-15 16:42:45 +01:00
Karel Zak f331598afc man: add russian translation of ddate.1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-21 15:00:47 +02:00
Diego Elio 'Flameeyes' Pettenò ebc83db1a1 build-sys: drop shlibs/Makefile.am that only adds SUBDIRS
The same effect is gotten by changing SUBDIRS in the top-level
Makefile.am.
2010-07-29 17:48:01 +02:00
Diego Elio 'Flameeyes' Pettenò 97ce707bce build-sys: require automake 1.10 as gtk-doc requires it anyway
There's no point into requiring 1.9 if the gtk-doc makefiles only work
with 1.10.

Signed-off-by: Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
2010-07-29 17:46:36 +02:00
Mike Frysinger 30c97bb8c9 cfdisk: search for ncursesw/ncurses.h
Some distros install the wide version of ncurses side by side with the
non-wide version and place the wide headers in an ncursesw/ subdir.  So
detect that behavior and include the right header with cfdisk.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-07-07 09:56:16 +02:00
Karel Zak 965b4900b9 build-sys: explicitly check for slang.h
The slang/slcurses.h contains

  #includes <slang.h>

but we don't use -I/usr/include/slang (and this is also missing in
slang.pc), it means that we have manually include the slang.h file
in our configure script.

Note this is Fedora-12, maybe some others distros have more usable
slang headers...

Signed-off-by: Karel Zak <kzak@redhat.com>
2010-07-01 10:43:06 +02:00
Karel Zak 9c1442c1ff build-sys: release++ (v2.18)
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-30 15:08:21 +02:00
Karel Zak 5f0b4c37a0 build-sys: release++ (v2.18-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-18 12:25:55 +02:00
Karel Zak eae4075f0f build-sys: release++ (v2.18-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-08 11:52:42 +02:00
Karel Zak 8e36876187 build-sys: cleanup lib{mount,blkid} building
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-08 10:55:24 +02:00
Karel Zak 3d73558960 libmount: add docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03 15:20:12 +02:00
Karel Zak 69b7e41e99 libmount: add basic utils
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03 15:20:10 +02:00
Karel Zak f4ab4ae8eb libmount: add version.c
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03 15:20:10 +02:00
Karel Zak f1cde479a3 libmount: add basic dirs
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-03 15:20:10 +02:00
Karel Zak ee32c514b5 lib: add fallback for libc (uClibc) without CPU_ALLOC
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-01 11:09:23 +02:00
Karel Zak a3e40c1465 rdev: remove this deprecated command
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-18 16:14:44 +02:00
Karel Zak f0bc3fa0cf script: optionally compile with libutempter to update utmp
Use --with-utempter to enable utempter support. The libutempter calls
/usr/libexec/utempter/utempter suid helper to update utmp and wtmp
files.

Old version:
	$ script
	Script started, file is typescript

	$ who i am

	$ exit
	Script done, file is typescript

New version:
	$ script
	Script started, file is typescript

	$ who i am
	kzak     pts/6        2010-04-29 12:30

	$ exit
	Script done, file is typescript

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=477753
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-04-29 12:25:06 +02:00
M.S.Colclough 55113b15af libblkid: avoid probing CDs for RAID
RAID probing of CD/DVD can yield errors because of well-known problem
in reading the end of the disk with some disk/drive combinations.
Borrow CD detection method from udev and skip the RAID tests for
these devices.

[kzak@redhat.com: - check for linux/cdrom.h in ./configure
                  - add #ifdef around the ioctl call
                  - call the ioctl for block devices only]

Signed-off-by: Mark Colclough <m.s.colclough@bham.ac.uk>
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-03-31 18:12:47 +02:00
Yann Droneaud b832c2fe34 build-sys: improved check for fallocate()
With glibc 2.10 on a 32bits system, fallocate64() function is not
exported. This a problem, since _FILE_OFFSET_BITS is set to 64 and
fallocate() is redirected to fallocate64().
Sadly, AC_CHECK_FUNC() doesn't catch such problem, since it's overriding
the function prototype.

See this for references:
http://sources.redhat.com/ml/libc-hacker/2009-05/msg00003.html

Signed-off-by: Yann Droneaud <yann@droneaud.fr>
2010-03-31 17:04:37 +02:00
Karel Zak 6c2f2b9d62 libblkid: add microsecond resolution for cache entries
The libblkid library uses stat.st_mtine to detect changes on the
device. The last update time of of the device in the cache is stored
as TIME= tag in the /etc/blkid.tab file.

Linux since 2.5.48 supports nanosecond resolution and more precise
time is available in the stat.st_mtim timespec struct.

This patch add microsecond precision to TIME= tag in the cache file,
old format:

	TIME="<sec>"

the new format:

	TIME="<sec>.<usec>"

This change is backwardly compatible.

Now, the blkid_verify() function checks stat.st_mtime and
stat.st_mtim.tv_nsec/1000.

Test:

 # e2label /dev/sdb1 AAAA

old version:

 # blkid -s LABEL /dev/sdb1; e2label /dev/sdb1 BBBB; blkid -s LABEL /dev/sdb1
 /dev/sdb1: LABEL="AAAA"
 /dev/sdb1: LABEL="AAAA"

new version:

 # blkid -s LABEL /dev/sdb1; e2label /dev/sdb1 BBBB; blkid -s LABEL /dev/sdb1
 /dev/sdb1: LABEL="AAAA"
 /dev/sdb1: LABEL="BBBB"

Signed-off-by: Karel Zak <kzak@redhat.com>
2010-03-17 14:49:14 +01:00
Karel Zak 2a7c1f70a6 build-sys: add missing tests for libuuid and libblkid
$ make checkconfig
misc-utils/blkid.c : HAVE_TERMIO_H
misc-utils/blkid.c : HAVE_TERMIOS_H
shlibs/blkid/src/getsize.c : HAVE_FSTAT64
shlibs/blkid/src/llseek.c : HAVE_LLSEEK_PROTOTYPE
shlibs/blkid/src/llseek.c : HAVE_LSEEK64_PROTOTYPE
shlibs/uuid/src/gen_uuid.c : HAVE_SA_LEN*/
shlibs/uuid/src/gen_uuid.c : HAVE_SYS_SOCKET_H
shlibs/uuid/src/gen_uuid.c : HAVE_SYS_SYSCALL_H

Signed-off-by: Karel Zak <kzak@redhat.com>
2010-02-12 12:43:07 +01:00
Mike Frysinger bb4cb69df2 fsck/mkfs/mount: unify default search paths for helpers
Rather than each fs util having its own search policy, unify the paths in
configure and allow them to be tweaked by downstream.  In the process,
drop the /etc paths as no one has ever really used these.

[kzak@redhat.com: - backport to autoconf < 2.64
                    (remove AS_{SET,IF,CASE,APPEND} macros)]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-02-02 14:37:32 +01:00
Linus Torvalds a67bb3bff5 libblkid: disable read-ahead when probing device files
Read-ahead doesn't work very well on device probing, and can hurt a lot
when we do essentially random accesses on very slow devices. So disable it
if possible.

[kzak@redhat.com: - add posix_fadvise() configure test]

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-01-19 00:13:16 +01:00
Karel Zak 2c4b9254e9 fdisk: don't include scsi.h
The fdisksunlabel.c header file is unnecessary for fdisk/fdisksunlabel.h.

Reported-by: Thomas Stalder <thomas@netsolux.ch>
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-01-13 10:59:43 +01:00
Karel Zak 36b00d61a7 build-sys: release++ (v2.17)
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-01-07 22:41:05 +01:00
Karel Zak e05dc07770 build-sys: release++ (v2.17-rc3)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-10 22:05:07 +01:00
Karel Zak 9a39edc1ab build-sys: release++ (v2.17-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-09 12:02:58 +01:00
Karel Zak 283a8c1598 tests: remove vol_id from tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-04 20:30:16 +01:00
Karel Zak 22aa51661b build-sys: check for pkg-config before gtk-doc
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-04 20:01:37 +01:00
Karel Zak d7a0158242 build-sys: rewrite TLS detection
* use more robust tls.m4 from gcc project

   The old version (from util-linux-ng) used AC_TRY_COMPILE. That's
   wrong. We need to use AC_RUN_IFELSE to check that the result is
   link-able and executable.

   The new version also test it TLS really works in multi-thread
   applications.

 * we need to detect TLS usability for cross-compiling

 * this new version supports __thread keyword only, it seems that we
   needn't to care about anything other

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-04 15:45:19 +01:00
Karel Zak 3cb5555181 build-sys: release++ (v2.17-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-20 16:54:22 +01:00
Karel Zak b7ce600d3d mount: check for unsuccessful read-only bind mounts
Linux kernel allows to use MS_RDONLY together with MS_BIND,
unfortunately the MS_RDONLY is silently ignored and the target
mountpoint is still read-write. Then we have 'ro' in mtab and 'rw' in
/proc/mounts.

This patch checks for this situation by access(2) or futimens(2)
(change atime) and mtab is properly updated and user informed.

Reported-by: Terry Burton <tez@terryburton.co.uk>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-19 15:56:12 +01:00
Karel Zak 1a70e0cba2 build-sys: add HAVE_LIBBLKID_INTERNAL
It's better to use one macro for all situations where we depends on
in-tree (internal) libblkid.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-27 12:11:37 +01:00
Karel Zak 033cf439e3 libblkid: add BLKID_{VERSION,DATE} to blkid.h
The original e2fsprogs has BLKID_{VERSION,DATE} macros in blkid.h.
Although the macros are not updated for many years in e2fsprogs. So I
guess nobody uses it.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-27 11:30:37 +01:00
Karel Zak acf6ab6f67 lib: import whole ismounted.c code from e2fsprogs
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-14 01:13:18 +02:00
Karel Zak a77bfc3a00 build-sys: clean up gtk-doc usage
Currently gtk-doc is optional. Unfortunately, the ./configure script
still depends on GTK_DOC_CHECK macro and shlibs/blkid/docs/Makefile.am
depends on gtk-doc.make.

It seems that the best solution is to add gtk-doc.[make,m4] files to
the repository.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-12 15:20:27 +02:00
Guillem Jover 869829e457 build-sys: check for union semun instead of using _SEM_SEMUN_UNDEFINED
Older versions of glibc used to declare ‘union semun’ in <sys/sem.h>,
but POSIX.1-2001 requires the caller to declare it instead. Later
versions of glibc started defining _SEM_SEMUN_UNDEFINED to note that
the union was not being declared, but conforming systems are not
required to define that macro (e.g. FreeBSD). As a side effect we get
rid of some obsolete __GNU_LIBRARY__ macro usage.

[kzak@redhat.com: - use #ifndef]

Signed-off-by: Guillem Jover <guillem@hadrons.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-09 15:16:25 +02:00
Guillem Jover eb35c25174 build-sys: enable silent rules if automake >= 1.11
Make the build silent if the system has a new enough automake,
otherwise keep the current behaviour.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
2009-10-09 14:57:51 +02:00
Guillem Jover e79829db46 build-sys: detect if volatile is available
Do not defined volatile away on non-Linux systems, detect its presence
using AC_C_VOLATILE instead.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
2009-10-09 14:57:48 +02:00
Guillem Jover 85b4c14771 build-sys: detect if const is available
Some systems define __STDC__ and do not have a working const, some do
not define the macro but do have a working const. Use AC_C_CONST to
check for its presence.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
2009-10-09 14:57:45 +02:00
Karel Zak 4a2ecf0a50 build-sys: fix BUILD_PIVOT_ROOT condition
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-06 21:57:48 +02:00
Karel Zak 11125e7aa9 build-sys: cleanup --disable-{fallocate,pivot_root,unshare}
* add --disable-fallocate
 * add --disable-pivot_root
 * cleanup --disable-unshare

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-06 12:45:50 +02:00
Mikhail Gusarov 4205f1fda1 unshare: new command
New utility allows to run process with separate mount, UTC, IPC or
network namespaces.

[kzak@redhat.com: - some cosmetic changes in usage() and err() usage
                  - move "if BUILD_UNSHARE" to separate place in Makefile.am
                  - add unshare to .gitignore]

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-06 12:45:42 +02:00
Karel Zak 4c24a7aed6 build-sys: add --disable-makeinstall-setuid
.. to disable "chmod 4755" for mount and umount.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-30 16:51:20 +02:00
Karel Zak 566f35bc81 mkswap: use libblkid to detect PT
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-29 13:30:36 +02:00
Karel Zak d46a54994e fallocate: new command
The fallocate(1) utility is used to preallocate blocks to a file.

This can be useful for virtual images, database files, testing, etc.
Normally we'd hope that various tools will start using preallocation
internally, but until then such a utility may be useful, and could be
scripted as well.

The original Eric's version is available at:
http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/2490

This version:
 - checks for fallocate glibc function and kernel syscall
 - does not provide a fallback and does not call posix_fallocate()
 - adds long options
 - uses err.h for errro messages
 - adds NLS support
 - cleanups man page

Co-Author: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-22 15:26:18 +02:00
Karel Zak 1e018c1571 libblkid: gtkdocize (API docs generated by gtk-docs)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-16 21:39:37 +02:00
Karel Zak e4799a35bd libblkid: add partitions parsing support
This patch is large, but not invasive. There is a new code only.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-16 15:42:38 +02:00
Karel Zak e21677fe7d libblkid: add samples/topology.c
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-16 15:07:07 +02:00
Karel Zak cc33d69328 libblkid: add topology support
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-16 14:40:41 +02:00
Karel Zak 219227c263 libblkid: move FS/raid stuff to superblocks directory
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-15 20:18:48 +02:00
Daniel Mierswa 437fa54f05 replace usleep() for systems that don't have them
This function is marked obsolete in POSIX.1-2001 and removed in
POSIX.1-2008.

Conditionally replaced with nanosleep().

Signed-off-by: Daniel Mierswa <impulze@impulze.org>
2009-08-21 09:58:17 +02:00
Karel Zak 8fb94e0d97 Revert "mount: clean up mount.8"
This reverts commit 98c7944b52.

Unfortunately, the patch has been committed by "git commit -a" and
includes unwanted changes in configure.ac and sys-utils/Makefile.am...

Sorry.
2009-08-18 10:53:15 +02:00
Karel Zak 98c7944b52 mount: clean up mount.8
* use "filesystem" everywhere (currently, the mount.8 man page is inconsistent
   and uses "file system" and "filesystem")

 * fix "The extN" to "The extN filesystem" (reported by Theodore Tso)

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-08-17 17:44:59 +02:00
Karel Zak 29e107aac4 build-sys: release++ (v2.16)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-16 01:16:28 +02:00
Karel Zak dc2b8d87c1 build-sys: fix libuuid and libblkid version-info
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-13 23:44:30 +02:00
Karel Zak cb5212e265 build-sys: improve $libdirname definition
Reported-by: Robert Förster <Dessa@gmake.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-13 11:54:43 +02:00
Robert Förster aaf3e8f5d4 build-sys: fix typo from 30688dde55
the fixes the usage of exec_prefix so configure will prepend the prefix again.

Signed-off-by: Robert Förster <Dessa@gmake.de>
2009-07-13 11:40:56 +02:00
Karel Zak 30688dde55 build-sys: rename to _execdir
The variable name "usrlibexecdir" is very confusing (because we have
/usr/libexec). The "exec" prefix is required for user-defined
directories, see

   http://www.gnu.org/software/hello/manual/automake/The-Two-Parts-of-Install.html#The-Two-Parts-of-Install

This patch renames all usr*execdir variables to usr*_execdir.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-04 01:23:41 +02:00
Karel Zak 4a595b077c build-sys: release++ (v2.16-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-02 15:36:22 +02:00
Karel Zak 5663298c2c blkid: move to misc-utils/ directory
The others utilities are in one of the top-level directories. That's
confusing to have blkid(8) and findfs(8) in shlibs/ tree.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-02 14:38:23 +02:00
Karel Zak 996fb3580f buildsys: move $usr{bin,sbin,lib}execdir definition to ./configure
We need to use $usr{bin,sbin,lib}execdir variables in *.pc.in files
and these files are generated by ./configure script.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-30 14:27:50 +02:00
Karel Zak a8dd2fe133 build-sys: release++ (v2.16-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-29 00:09:02 +02:00
Karel Zak 940fd28c95 build-sys: check for openat() and linux for switch_root
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-22 21:30:47 +02:00
Karel Zak bd6713471f build-sys: add --disable-switch_root
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-22 21:30:46 +02:00
Karel Zak 2ec884ac35 build-sys: add --disable-uuidd
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:17 +02:00
Karel Zak 69045d3dba uuidd: new command (UUID daemon from e2fsprogs)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:16 +02:00
Karel Zak 3ac22f7a17 build-sys: add --disable-tls
* add AX_TLS autoconf macro

 * add --disabletls option

 * cleanup gen_uuid.c code to remove gcc warnings when compiled
   without TLS macro.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:16 +02:00
Karel Zak 6c2a09b3e6 build-sys: enable fsck by default
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:16 +02:00
Karel Zak f910b5594f build-sys: add --disable-libblkid, remove volume_id support
Supported scenarios:

  * internal libblkid (--enable-libblkid, default)

  * external libblkid (--disable-libblkid)
     - systems without pkg-config
     - systems with pkg-config

  * systems without libblkid at all
    (requires --disable-mount and --disable-fsck)

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:16 +02:00
Karel Zak 17afb0320c build-sys: cleanup libuuid stuff
Supported scenarios:

 * internal libuuid (--enable-libuuid, default)

 * external libuuid (--disable-libuuid)
   - systems without pkg-config
   - systems with pkg-config

 * systems without libuuid at all (the library is optional for u-l-ng)

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:15 +02:00
Karel Zak 6fed18f290 build-sys: add UTIL_{SET,RESTORE}_FLAGS
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:15 +02:00
Karel Zak f6076f557e libuuid: add --disable-libuuid and LIBUUID_VERSION
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:14 +02:00
Karel Zak 754fed0c14 libuuid: import UUID library from e2fsprogs
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:14 +02:00
Karel Zak 28d39b6dd7 mount: fix undefined reference to `security_get_initial_context'
> Gentoo-hardened stable have: sys-libs/libselinux-1.34.14
> I have:
> mount.c:(.text+0x12ce): undefined reference to `security_get_initial_context'

Reported-by: Максим Бритов <maxim.britov@gmail.com>
Addresses-Gentoo-Bug: #270168
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-21 13:20:10 +02:00
Tom Prince a88057d9a3 cal: uClibc has langinfo.h but not _NL_TIME_WEEK_1STDAY.
Signed-off-by: Tom Prince <cougar@hermes>
2009-05-19 14:25:43 +02:00
Karel Zak 20ad496324 build-sys: complete /libs to /shlibs rename
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-14 17:40:52 +02:00
Karel Zak 7c950efa34 build-sys: fix blkid.h include for old e2fsprogs
When building util-linux-ng-2.15, I get this:
   ../lib/fsprobe.c:10:19: error: blkid.h: No such file or directory

Unfortunately, the blkid.pc uses -I${includedir}/blkidi since
e2fsprogs v1.41.2. The old versions use -I${includedir} only.

Reported-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-11 15:06:06 +02:00
Karel Zak 676c8bfa78 build-sys: release++ (v2.15)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-05 22:21:15 +02:00
Karel Zak cee95a9567 blkid: rename blkid_evaluate_spec to blkid_evaluate_tag
"SPEC" is usually used in mount(8) as a generic term for device name or
tag (LABEL, UUID). The function blkid_evaluate_* works with TAGs only.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-04-29 15:11:54 +02:00
Karel Zak 33b0be6d60 blkid: split SONAME and LIBBLKID_VERSION
It seems better to split SONAME and the public library version. The
library version will be the same as util-linux-ng PACKAGE_VERSION.

PACKAGE_VERSION:               <maj>.<min>[-<suffix>]  e.g. 2.15-rc2
Symbols versioning:            BLKID_<maj>.<min>       e.g. BLKID_2.15
blkid_get_library_version():   <maj>.<min>.0           e.g. 2.15.0
SONAME:                        libblkid.so.1

See also the original patch a0487b1cb5
where was introduced library versioning.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-04-28 23:29:06 +02:00
Karel Zak 1c3af05393 build-sys: release++ (v2.15-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-04-17 13:06:54 +02:00
Karel Zak 0152a9eae3 build-sys: release++ (v2.15-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-18 15:49:48 +01:00
Karel Zak b0a0d7d58f build-sys: add $usrlibexecdir and fix paths for [/usr]/lib64
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-17 15:54:30 +01:00
Karel Zak 43ddda95b3 build-sys: cleanup --with-fsprobe help string
Thanks to Theodore Tso.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-09 12:49:51 +01:00
Karel Zak 642f01a3f2 blkid: blkid.static make target
For compatibility with e2fsprogs tree:

	commit eb630fd8708ae433e55e384079c08e0f0f040d22
	Author: Eric Sandeen <sandeen@redhat.com>
	Date:   Tue Feb 24 23:15:33 2009 -0600

	e2fsprogs: blkid.static make target

	Nice for testing w/o needing to swizzle around system
	libraries...

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-09 12:10:59 +01:00
Karel Zak 607c2a7295 fsck: move fsck from e2fsprogs to util-linux-ng
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-18 15:09:34 +01:00
Karel Zak d06d028a5a build-sys: use pkg-config for blkid and volume_id
It seems that blkid.pc from e2fsprogs has been fixed:

   $ pkg-config --libs blkid
   -lblkid

and the pkg-config does not return any other extra libraries (such
-luuid or -ldevmapper).

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-17 21:28:09 +01:00
Karel Zak 17f29d7bac mount: generic blkid/volume_id wrapper, use blkid_evaluate_*
* moves the generic libblkid/libvolume_id wrapper (fsprobe.c) from
   mount/ to lib/. We'll use the wrapper in cfdisk and fsck.

   The wrapper supports:

    - obsolete volume_id (udev)
    - obsolete libblkid (e2fsprogs)
    - libblkid (util-linux-ng)

 * mount, umount and swapon when linked against the new libblkid use

    - low-level probing code to read LABEL, UUID or FSTYPE from a device
    - high-level blkid_evaluate_spec() to convert LABEL/UUID to devname

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-17 01:18:22 +01:00
Karel Zak 154d630313 build-sys: libtoolize mount/Makefile.am
* cleanup mount/Makefile.am
 * add {VOLUMEID,BLKID}_CFLAGS -- necessary for pkg-config
 * add support for linking with in-tree libblkid

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-13 13:08:07 +01:00
Karel Zak b12991dd5c build-sys: libtoolize by libtool-2
We need an infrastructure for stared libraries. The latest libtool-2
seems useful and it's definitely better than the old 1.5 crap.

You need to install libtool-2 when you want to run ./autogen.sh script
after checkout from git repository.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-13 11:37:00 +01:00
Karel Zak a0487b1cb5 blkid: start to use ABI versioning
The library ABI and API is backwardly compatible, so it does not
make sense to change the library SONAME. This patch adds a symbol
versioning, naming paradigm is:

	BLKID_<maj>.<min>

The original libblkid from e2fsprogs uses "1.0" as a .so version and
"libblkid.1" as a SONAME for all time (at least according to stuff in
/lib/libblkid*)

And the original library is without symbols versioning. It means that
many private functions are exported to applications ;-(

Note that the original blkid_get_library_version() returns
E2FSPROGS_VERSION. The version in util-linux-ng returns BLKID_VERSION
which is <maj>.<min>.<rel>. The <maj>.<min> is the same version as we
use for ABI. This concept seems less confusing than mix a library
version and package version.

Summary:

OLD (e2fsprogs):
  ABI versioning:              -none-
  SONAME:                      libblkid.1
  .so version:                 libblkid.so.1.0
  blkid_get_library_version(): @E2FSPROGS_VERSION@ (e.g. 1.41.1)

NEW (util-linux-ng):
  ABI versioning:              BLKID_<maj>.<min>
  SONAME:                      libblkid.1
  .so version:                 libblkid.so.<maj.<min> (e.g. 1.41)
  blkid_get_library_version(): @BLKID_VERSION@ (e.g. 1.41.1)

  (BLKID_VERSION = <maj>.<min>.<rel>)

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-13 11:36:59 +01:00
Karel Zak b446754d27 build-sys: add --with=fsprobe=builtin
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-13 11:34:47 +01:00
Karel Zak fc7a1669ed blkid: clean up man pages
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 23:55:51 +01:00
Karel Zak 882b0da330 build-sys: remove use of devmapper library
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 23:21:50 +01:00
Karel Zak e1ad8bb397 blkid: remove blkid_types.h
We needn't to use kernel types, in userspace we have portable
stdint.h.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 23:21:49 +01:00
Karel Zak 51410fc6de blkid: add low level probing API
(sorry from the huge patch..)

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 23:21:43 +01:00
Karel Zak a0948ffe40 blkid: merge libblkid code from e2fsprogs/lib/blkid
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 23:21:43 +01:00
Karel Zak 6809e7b563 blkid: add basic configure.ac stuff and blkid.pc
Note, the configure.in stuff is incomplete -- but it's seem we can
remove the libbevmapper crap from blkid at all. So this code autoconf
is temporary only.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 18:02:39 +01:00
Karel Zak 971f57f68a build-sys: define libdir
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 18:02:39 +01:00
Karel Zak 24a06aeb1b blkid: create basic directories
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-11 18:02:39 +01:00
Karel Zak 30e8b186b4 agetty: check for termios.c_line struct member by autoconf
Reported-by: Robert Millan <rmh@aybabtu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-05 23:37:37 +01:00
Signed-off-by: Roy Peled fbaec83bc0 mkfs.cramfs: add endianness support to cramfs tools
cramfs is an endianness dependent file system.  So far, the cramfs
utilities did not support cramfs images of different endianness than
the host machine.

A separate utility, cramfsswap, was required in order to change the
endianness of the image before and after using cramfs utilities. The
extra utility introduced extra maintenance and an additional step in
the process.

This patch adds endianness support to mkfs.cramfs and fsck.cramfs.
fsck.cramfs now automatically detects the image endianness, and can
work on images of either endianness.  mkfs.cramfs now accepts a new
optional parameter (-N) that allows creating the cramfs image in
either endianness.

Signed-off-by: Roy Peled <the.roy.peled@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-04 14:56:54 +01:00
Karel Zak 8bce47d976 include: use __BYTE_ORDER rather than AC specific WORDS_BIGENDIAN
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-12-08 11:16:37 +01:00
Karel Zak 43f2d5bcbc build-sys: add missing AC_C_BIGENDIAN
This configure test is required in include/bitops.h.

Signed-off-by: Karel Zak <kzak@redhat.com>
2008-12-05 14:01:12 +01:00
Alon Bar-Lev 7177d32ecf build-sys: add --disable-mount
I use busybox for most of the utilities, still lacks a few that I wish to use
from util-linux...

So mount comes from busybox.  And during the cross compile I don't want to
compile the mount dependencies only to make the configure script happy...

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-11-19 12:40:06 +01:00
Karel Zak af53f0f1ca build-sys: add -luuid to BLKID_LIBS
The libblkid is always linked with libuuild, so this indirect
dependence in BLKID_LIBS is not a problem. This change helps to people
who compile util-linux-ng with non-standard prefix, ..etc.

Signed-off-by: Karel Zak <kzak@redhat.com>
2008-09-17 13:49:45 +02:00
Arkadiusz Miskiewicz 9ea8ac3775 build-sys: tgets is not in ncurses but in tinfo
ncurses library can be build with terminal related functions
landing in separate libtinfo library. Check for ncurses function
when testing ncurses library existence.

Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
2008-08-08 11:09:11 +02:00
Karel Zak fba4e21fa0 build-sys: release++ (v2.14)
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-06-09 13:58:54 +02:00
Karel Zak 2e764b0b42 build-sys: release++
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-05-19 11:42:43 +02:00
Karel Zak 447ae7b834 build-sys: add support ionice for Super-H architecture
Addresses-Red-Hat-Bugzilla: #446560
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-05-19 10:21:50 +02:00
Karel Zak 2d281745d9 setarch: add fallback for linux/personality
setarch.c:248: error: 'ADDR_NO_RANDOMIZE' undeclared (first use in this function)
setarch.c:248: error: (Each undeclared identifier is reported only once
setarch.c:248: error: for each function it appears in.)
setarch.c:251: error: 'FDPIC_FUNCPTRS' undeclared (first use in this function)
setarch.c:257: error: 'ADDR_COMPAT_LAYOUT' undeclared (first use in this function)
setarch.c:260: error: 'READ_IMPLIES_EXEC' undeclared (first use in this function)

Linux gzp1 2.4.36.1-gzp1 #1 SMP Tue Feb 19 10:23:48 CET 2008 i686 GNU/Linux

Reported-By: Gabor Z. Papp <gzp@papp.hu>
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-05-13 14:00:39 +02:00
Karel Zak 8d48d75939 build-sys: release++
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-04-28 14:13:43 +02:00
Karel Zak 18a706bdfd scriptreplay: rewrite in C
The dependence on Perl sucks...

Co-Author: James Youngman <jay@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: James Youngman <jay@gnu.org>
2008-04-14 10:50:18 +02:00
Karel Zak f0c2e3fa67 build-sys: release++
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-03-25 22:42:06 +01:00
Karel Zak 49ccbae67e build-sys: cleanup "x$foo" usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-03-20 13:50:08 +01:00
Karel Zak 08d64aa232 build-sys: use ncursesw (wide version) when possibe
Detect ncursesw and use it in place of ncurses when possible
(default).  Allow people to use classic (non-wide) version by
--with-ncurses or disable all ncurses/ncursesw support by
--without-ncurses.

Co-Author: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-03-20 12:25:15 +01:00
Karel Zak 40cc242e02 build-sys: add VARSUFFIX to UTIL_CHECK_LIB
The UTIL_CHECK_LIB macro follows the default autoconf behaviour and
generates have_<libname> and HAVE_LIB<LIBNAME> variables.

Some libraries are substitutional (e.g. ncurses and ncursesw). It would be
nice to generate for that libraries the same HAVE_ variables independently
on a library name.

This patch adds optional VARSUFFIX option to UTIL_CHECK_LIB, so the final
variables are have_<varsuffix> and HAVE_LIB<VARSUFFIX>.

For example:

    UTIL_CHECK_LIB(yyy, func)      generates have_yyy and HAVE_LIBYYY
    UTIL_CHECK_LIB(yyy, func, xxx) generates have_xxx and HAVE_LIBXXX

Signed-off-by: Karel Zak <kzak@redhat.com>
2008-03-20 12:25:01 +01:00
Stepan Kasal 64754af976 build-sys: use pkg-config to find the libs for static build
Signed-off-by: Stepan Kasal <skasal@redhat.com>
2008-02-18 13:27:26 +01:00
Stepan Kasal 8e49ea2c5c build-sys: do not add -luuid to BLKID_LIBS
* configure.ac: Do not include -luuid in BLKID_LIBS, the library
dependencies handle this.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2008-02-18 13:27:14 +01:00
Stepan Kasal 8569410cf5 build-sys: add --enable-static-programs
Add support for static versions of mount, umount, losetup, fdisk,
and sfdisk.

Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: Stepan Kasal <skasal@redhat.com>
2008-02-18 13:27:02 +01:00
Samuel Thibault 5c55d9bf1a setterm: add -blan [force|poke] options for TIOCL_{BLANKED,BLANK}SCREEN
Linux has some interface to force an immediate blank
(TIOCL_BLANK/UNBLANKSCREEN) or get the blank status
(TIOCL_BLANKEDSCREEN), which is useful e.g. for blind people.

Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-02-08 02:01:27 +01:00
Miklos Szeredi a69968607c build-sys: add AC_CANONICAL_HOST
This seems to be needed in certain environments.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
2008-01-08 15:45:36 +01:00
Karel Zak 8c18255415 build-sys: disable syscall fallbacks for non-linux systems
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-01-03 21:47:29 +01:00
Karel Zak fc7aeb09d4 tailf: inotify based reimplementation
This patch:
 - clean up tailf(1) code
 - remove stupid "for() { malloc() }" array allocation in the tailf() function
 - add inotify(7) support

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-12-17 10:06:20 +01:00
Karel Zak d00ed8911e tests: move test_bkdev to lib/
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-11-28 12:27:00 +01:00
Samuel Thibault e460a5bf89 build-sys: cleanup usage of linux/major.h
The utils like fdisk or login are usable on non-linux systems.
This patch allows to compile on systems without linux/major.h.

Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2007-11-28 10:41:26 +01:00
Karel Zak e27a08abb7 namei: non-linux support (get_current_dir_name() and PATH_MAX)
Co-Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-11-26 15:00:16 +01:00
Samuel Thibault 3bbc932079 build-sys: non-linux support
Here is a patch that disables linux-specific tools on non-linux targets.

Signed-Off-By: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-Off-By: Karel Zak <kzak@redhat.com>
2007-11-08 02:26:36 +01:00
Stefan Krah 5d2c98e1df lib: add linux_version.{c,h}
Signed-off-by: Stefan Krah <stefan@bytereef.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-11-06 02:40:13 +01:00
Karel Zak 66ed63a1fe build-sys: add err.h check
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-10-16 12:30:57 +02:00
Mike Frysinger 72065909cc build-sys: unify method for checking system calls and fallback handling
Co-Author: Stepan Kasal <skasal@redhat.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-09-20 00:22:22 +02:00
Mike Frysinger 8b7f16fc37 build-sys: nls/locale handling in util-linux-ng general
On Monday 03 September 2007, Karel Zak wrote:
> http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/590/focus=592
>
>  I agree that we need a better support for compilation without
>  locales, but from my point of view NLS != all locales stuff. The NLS
>  support is subset only.

thinking about the input from everyone, i'd propose the attached ...

Only pull in locale.h as needed and move it to the common nls.h.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2007-09-19 23:15:21 +02:00
Karel Zak 7fc9786b7b build-sys: set AC_PREREQ to 2.60, increment version to 2.14
The autoconf >= 2.60 supports @localedir@ and others new directory
variables.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-09-02 13:10:06 +02:00