Commit Graph

5167 Commits

Author SHA1 Message Date
Karel Zak dcdb349be7 build-sys: always use default $(LDADD)
The global variable $(LDADD) is always used if program_LDADD is
not specified. Let's use $LDADD everywhere to avoid exceptions for
people who need to specify global $LDADD.

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-09 16:23:51 +02:00
Karel Zak 839be2ba6b hwclock: don't set time for --systz
Not sure why, but the current --systz uses non-NULL timeval for
settimeofday(). It means that build-in kernel warp clock mechanism is
not used and the system time is always modified.

The built-in kernel implementation allows to move the clock by
timezone only for very first settimeofday() call.

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-04 13:43:51 +02:00
Karel Zak 34f4d96163 utmpdump: use xalloc.h, minor coding style changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-29 17:34:12 +02:00
Karel Zak c8a6af07e7 utmpdump: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-29 17:27:40 +02:00
Karel Zak 9e15c93d76 utmpdump: add long options
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-29 17:22:42 +02:00
Karel Zak 704bd903ec utmpdump: use err.h stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-29 17:09:51 +02:00
Karel Zak 23031b9904 utmpdump: add NLS and closestream support
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-29 16:59:32 +02:00
Karel Zak a9eee87090 utmpdump: remove dead code
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-29 16:56:04 +02:00
Karel Zak b89fc9151f utmpdump: remove libc5 support
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-29 16:52:30 +02:00
Karel Zak fa9baa80e8 utmpdump: cleanup comments, funcs definition lines
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-29 16:43:37 +02:00
Karel Zak 78d5ceacb1 utmpdump: new command, merge from sysvinit
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-29 16:34:46 +02:00
Karel Zak 7d8f4e0c4b findmnt: add TID column
just in case we read from more mountinfo files.

For example get mountpoint from the current namespace which is invisible
for initd (PID=1):

 # unsahre -m bash
 # mount /dev/sdb /mnt/test
 # echo $$
 30070

 # findmnt -n -o TARGET,TID,SOURCE --task 1 --task $$ | \
      sort -u --key=1,1 | awk ' ($2 != 1) { print $0 }'

 /mnt/test                  30070 /dev/sdb

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-28 15:46:38 +02:00
Karel Zak f7f29b5640 libmount: save task ID for mountinfo tiles
Add new function mnt_fs_get_tid() to get task ID for the given filesystem.

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-28 15:40:16 +02:00
Karel Zak c7fcc8307d findmnt: add --task <tid> option
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-28 13:51:34 +02:00
Karel Zak aca72ac2f9 findmnt: don't use tree-like output if more -F options specified
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-28 13:20:31 +02:00
Dave Reisner 8b8cd87b21 findmnt: add FSROOT column
Provide this separately in an unambiguous format, mainly to avoid the
need for scripts to parse the source of a btrfs subvol or bind mount.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-06-28 12:59:57 +02:00
Karel Zak 59114ba325 swapon: fix typo
Reported-by: Manan Tuli <mt_void@yahoo.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-27 14:04:03 +02:00
Karel Zak cdecbd2e73 docs: add note about non-recursive build-sys
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-27 11:27:36 +02:00
Karel Zak 44e0b7d9ee build-sys: add sd-daemon.h to Makemodule.am
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 23:03:22 +02:00
Karel Zak 8d398470c0 build-sys: add pager.h to Makemodule.am
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:57:45 +02:00
Karel Zak 3274ee60ce build-sys: fix swaplabel
Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:50:54 +02:00
Karel Zak b36a2f2d47 build-sys: create static uuid_generate_*.3 files
It seems more simple to create small three files with man page links
than generate the files on the fly.

Note that the libuuid/man directory is not in builddir by default so
you have to create proper directory and then create the man pages...
too complex task for this three tiny files.

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:50:54 +02:00
Karel Zak 31a938ac38 build-sys: enable libmount and libblkid docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:50:54 +02:00
Karel Zak f38e5ff355 build-sys: cleanup .gitignore files
- move all binaries to top-level .gitignore
 - remove unnecessary */.gitignore files

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:50:54 +02:00
Karel Zak d77ab74af7 build-sys: convert lib/ to libcommon.la
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:50:53 +02:00
Karel Zak fb55280aa6 build-sys: remove include-Makefile.am
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:50:53 +02:00
Karel Zak 50ea679509 build-sys: rename fdisk -> fdisks/, convert to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:50:53 +02:00
Karel Zak ac73480a34 build-sys: convert tests/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:50:53 +02:00
Karel Zak 957bab4e91 build-sys: move partx to disk-utils/
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:50:18 +02:00
Karel Zak 54dbc8cf69 build-sys: convert disk-utils/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:23 +02:00
Karel Zak f9a20f0b58 build-sys: move getopt to misc-utils/
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:23 +02:00
Karel Zak 37b88bfcd7 build-sys: convert misc-utils/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:23 +02:00
Karel Zak c7f753901f build-sys: move hwclock to sys-utils/
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:23 +02:00
Karel Zak 8772f8d7ee build-sys: convert sys-utils/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:22 +02:00
Karel Zak 68f6645a7e tools: cleanup config-gen.d
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:22 +02:00
Karel Zak bafe1a75a3 build-sys: cleanup mount stuff in configure.am
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:22 +02:00
Karel Zak a9e48470be build-sys: add UL_CONFLICTS_BUILD m4 macro
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:22 +02:00
Karel Zak 14a0cafb92 mount: (old) remove hybrid libmount code
The hybrid version with old mount and new mtab management from
libmount is not more supported.

Only two versions are supported:

  1/ old mount in mount-deprecated/, --enable-deprecated-mount

  2/ new sys-utils/mount.c, enabled by default

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:22 +02:00
Karel Zak 434b07a090 build-sys: default to new sys-utils/mount.c, add --enable-deprecated-mount
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:22 +02:00
Karel Zak 964339a986 mount: (old) remove mtab lock test
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:22 +02:00
Karel Zak d2feb47fb1 build-sys: convert mount/ to module, rename to mount-deprecated/
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:22 +02:00
Karel Zak ffeb280566 build-sys: convert login-utils/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:46:17 +02:00
Karel Zak 22d2322eb1 build-sys: convert term-utils/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 17:53:09 +02:00
Karel Zak f3e03db330 build-sys: convert text-utils/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 17:51:41 +02:00
Karel Zak bc94024d08 build-sys: convert libmount/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 17:49:37 +02:00
Karel Zak f77a4d1087 build-sys: convert libblkid/ to module
- create module
 - remove unused libblkid/src/tst_types.c test

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 17:44:15 +02:00
Karel Zak 3632ce21b7 build-sys: convert libuuid/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 17:37:37 +02:00
Karel Zak 5ed5df5d6e build-sys: convert schedutils/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 17:25:24 +02:00
Karel Zak 8d34d92bcd build-sys: define per-test -DTEST_PROGRAM in lib/
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 17:21:39 +02:00
Karel Zak e0ef609e89 build-sys: convert lib/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 17:13:08 +02:00