Commit Graph

376 Commits

Author SHA1 Message Date
Karel Zak
53b22add73 build-sys: add --disable-{more,ul,pg}
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-24 19:23:56 +01:00
Eric W. Biederman
f8aa8e9495 nsenter: new command (light wrapper around setns)
Inspired by unshare, nsenter is a simple wrapper around setns that
allows running a new process in the context of an existing process.

Full paths may be specified to the namespace arguments so that
namespace file descriptors may be used wherever they reside in the
filesystem.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2013-01-17 13:17:13 +01:00
Sami Kerola
3a3dcbdc5a build-sys: cleanup --enable-most-builds list
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-10 11:28:13 +01:00
Dave Reisner
479d50bd65 build-sys: invert flag for sulogin emergency mount
This should be disabled by default.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-01-09 14:41:46 +01:00
Karel Zak
1a1eb4e188 include/bitopts: Use the operating system byteswapping functions
The swap macros are already in libc.

Co-Author: Cristian Rodríguez <crrodriguez@opensuse.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-08 14:07:48 +01:00
Sami Kerola
1342ffcbeb tunelp: deprecation: remove command from default build
It is difficult to think think tunelp command being in use a lot.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-12-19 11:38:48 +01:00
Werner Fink
ab6478ef2d sulogin: mount temporary /dev and /proc if not found
This is very usefull if initrd can not loaded that is no /dev and no
/proc is found.  Also if the /etc/shadow and /etc/passwd is copied into
the initrd the sulogin can be used in initrd even before /dev and/or /proc
are mounted.

Signed-off-by: Werner Fink <werner@suse.de>
2012-12-18 15:45:33 +01:00
Karel Zak
2c6891154a build-sys: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-30 12:58:33 +01:00
Karel Zak
7e34c79f01 build-sys: use pkg-config for selinux
- we need libselinux 2.x (where is security_get_initial_context())
- the latest selinux versions are linked with -lpcre

Reported-by: Gregory Nietsky <gregory@distrotech.co.za>
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-30 12:48:44 +01:00
Karel Zak
e21e6d265d build-sys: cleanup cpu_set_t usage
- make taskset depend on cpu_set_t
 - make cpuset.c optional for libcommon and lib/path.c

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-02 12:07:36 +01:00
Sami Kerola
dab8e8cfd4 build-sys: remove gethostbyname() check
Removed as unnecessary, there are no references to gethostbyname() in
code.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-10-22 10:15:29 +02:00
Sami Kerola
4cf02b6510 ddate: remove from util-linux
See RedHat bug for reasons why the ddate is cleaned up.  The reference is
where to get the command in future.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=823156
References: https://github.com/bo0ts/ddate
Acked-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-15 16:41:49 +02:00
Karel Zak
df0bd828b1 build-sys: simplify usrlib_execdir initialization
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-09-12 18:09:28 +02:00
Karel Zak
10a42fb776 build-sys: fix --localstatedir heuristics
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-09-12 16:36:06 +02:00
Karel Zak
6cd3e35c77 Merge https://github.com/hramrach/util-linux 2012-09-10 11:17:53 +02:00
Karel Zak
7fcccbdfbe build-sys: add --disable-wdctl
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-09-07 14:19:17 +02:00
Michal Suchanek
3b4f1aeecc Fix configure to work with multiarch distributions. 2012-09-07 12:58:37 +02:00
Karel Zak
7ec6adb1cc runuser: new command (derived from su(1))
This command is based on su(1), the differences:

 - based on Fedora runuser su(1) patch
 - not installed with suid rights
 - allowed for root users only
 - don't ask for password
 - uses PAM session, for example:

$ cat /etc/pam.d/runuser
auth		sufficient	pam_rootok.so
session		optional	pam_keyinit.so revoke
session		required	pam_limits.so
session		required	pam_unix.so

$ cat /etc/pam.d/runuser-l
auth		include		runuser
session		optional	pam_keyinit.so force revoke
session		include		runuser

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-09-04 17:00:31 +02:00
Karel Zak
4e1073c23b build-sys: add configure summary
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-09-04 16:49:28 +02:00
Karel Zak
dcd33c3e15 build-sys: add another compiler warnings
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-09-04 16:49:28 +02:00
Karel Zak
58e6e67ad5 build-sys: release++ (v2.22)
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-09-04 14:57:28 +02:00
Karel Zak
123011de33 build-sys: release++ (v2.22-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-15 20:04:52 +02:00
Karel Zak
b1b54edf95 build-sys: add -Wmissing-declarations, sort warning options
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-15 17:04:41 +02:00
Karel Zak
d4baf92e50 build-sys: expand paths at make time
autoconf docs about *dir variables (e.g bindir):

 ... A corollary is that you should not use these variables except in
 makefiles...

 ...you should not rely on AC_CONFIG_FILES to replace bindir and friends
 in your shell scripts and other files; instead, let make manage their
 replacement.

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-15 02:06:53 +02:00
Karel Zak
1b03e2cd33 tests: make compatible with autotools
The command 'make check' is called from 'make distcheck' (which is
used to generate official util-linux tarballs).

It means that tests/ stuff has to be compatible with autotools and
differentiate between source and build directories.

 * remove run-nonroot.sh (merged into run.sh
 * remove commands.sh.in
 * all tests and top level run.sh accept --builddir and --srcdir
   command line options
 * functions.sh modified to use $top_builddir/tests for output files

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-03 21:24:51 +02:00
Karel Zak
43ffdc82fa build-sys: don't compile lib{mount,blkid} tests when --disable-static specified
The tests often depend on private (non-API) library functions.

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-02 20:19:14 +02:00
Petr Uzel
c9b5346112 build-sys: fix description of utmpdump configure option
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-07-30 17:12:24 +02:00
Karel Zak
7770e7df15 build-sys: fix build without libs
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-27 09:04:55 +02:00
Karel Zak
31de047692 build-sys: release++ (v2.22-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-27 00:09:42 +02:00
Karel Zak
9dc72d0bc2 build-sys: add -Wall to warnings
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-26 10:13:08 +02:00
Karel Zak
4e80697552 build-sys: add -Werror to UL_WARN_ADD test
... so revert previous patches with extra options for clang.

Sometimes is simple solution so obvious that it's invisible :-)

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-16 17:42:09 +02:00
Karel Zak
bec5c9db87 build-sys: exclude some CC warnings for clang
Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-16 17:16:15 +02:00
Karel Zak
bdf5f542e2 build-sys: add UL_PROG_CLANG function, rename warnings.m4 -> compiler.m4
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-16 15:48:43 +02:00
Sami Kerola
11935cd3fc uuidd: use configured run state directory in manual etc
[kzak@redhat.com: - minor clean up in configure.in]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-10 13:04:02 +02:00
Sami Kerola
07a16b9d1e build-sys: change --localstatedir to /run
Enable user to define where run state files are wrote.  Default for
these files is /run.  See reference for rationale why /var/run is no
longer the default.

Reference: http://lists.fedoraproject.org/pipermail/devel/2011-March/150031.html
CC: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-07-10 12:56:46 +02:00
Dave Reisner
fbd2620d4e build-sys: ensure BUILD_CFDISK is always defined
This avoids an error when configuring without ncurses:

configure: error: conditional "BUILD_CFDISK" was never defined.
Usually this means the macro was only invoked conditionally.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-07-09 17:08:44 +02:00
Karel Zak
ac11086af2 build-sys: add -Wredundant-decls
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-09 16:53:13 +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
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
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
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
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