Commit Graph

798 Commits

Author SHA1 Message Date
Karel Zak f3831bbd80 build-sys: add --disable-makeinstall-chown
A chown-like operations are unexpected when you execute "make install"
as non-root user. For example RPM defines owner+permissions in .spec
file -- you needn't to use root account to create useful RPM package.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-08-14 14:32:45 +02:00
Karel Zak a21adf48cd build-sys: release++
Increment release number to v2.13-rc3.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-08-08 00:15:52 +02:00
Karel Zak 22d36665c4 build-sys: remove asm/page.h test
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-18 23:33:55 +02:00
Karel Zak 9dc801d2b7 build-sys: add warning when libuuid is not found
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-18 10:46:42 +02:00
Karel Zak ff5cc6f574 build-sys: release++
Increment release number to v2.13-rc2.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-17 13:22:11 +02:00
Karel Zak 6a97809b9f sys-utils: add arch(1) back to the official tree
This patch add arch(1) back to util-linux source code tree, but the
command is not installed by defautl.

For more details see "./configure --help".

The arch command is deprecated in favor of "uname -m" (coreutils). The
latest (6.9+) version of coreutils also supports arch(1) as an alias
to "uname -a". Please, if you need arch(1) use the coreutils
implementation.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-11 12:37:40 +02:00
Karel Zak db0aaaa6a8 build-sys: remove libtool
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-11 00:59:49 +02:00
Karel Zak 6a5486fded docs: cleanup before release
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-03 14:15:08 +02:00
Arkadiusz Miskiewicz 46e711180f build-sys: fix linking when ncurses is built with --with-termlib=tinfo
When system ncurses is built with --with-termlib=tinfo option
then there are two libraries - libtinfo (which contains terminal
related functions) and libncurses (rest).

Correctly link against libtinfo in such case.

Signed-off-by: Arkadiusz Miskiewicz <arekm@maven.pl>
2007-07-02 16:26:20 +02:00
Karel Zak e782f1d400 build-sys: cleanup architecture conditionals
This patch also add some new architectures for
AM_CONDITIONAL(ARCH_  ...)

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-02 13:21:06 +02:00
Kay Sievers 9f70f8b143 mount: use encoded labels for volume_id
The current version of libvolume_id exports the encoding function for the
symlinks names, so slashes in labels and other chars, that don't really fit
into symlink names, will work as expected with LABEL=.
2007-06-26 12:53:16 +02:00
Karel Zak 4445728f0f build-sys: fix HAVE_NCURSES
The HAVE_NCURSES in config.h is required by the misc-utils/cal.c.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-06-14 13:32:32 +02:00
Karel Zak baae33d0b3 build-sys: minor fixes in configure.in
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-05-23 00:04:24 +02:00
Karel Zak 3f5bda012d tests: add functions for label, uuid and fstype detection
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-05-18 13:09:12 +02:00
Karel Zak 40f07ff767 mount: fsprobe: add libvolume_id support to configure.ac
The patch add new option --with-fsprobe=<name> (where the <name> is
blkid or volume_id). The blkid is default. The mount cannot be
compiled without a filesystem detection library.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-05-17 12:53:52 +02:00
Karel Zak 240f710122 build-sys: add AC_GNU_SOURCE
The widechar code doesn't compile correctly without _GNU_SOURCE (at
least according to reports from testers. I don't see the problem on
FC6.)

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-05-16 12:56:28 +02:00
Stepan Kasal 42d2a7bacd build-sys: add Automake option dist-bzip2
We distribute .tar.bz2 along with .tar.gz .

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:31 +02:00
Stepan Kasal 1b4a3d8973 build-sys: in configure.ac, change "po" -> "$srcdir/po"
Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:31 +02:00
Stepan Kasal cc46213207 build-sys: let configure instantiate the misc-utils/*.pl scripts
The substitution of @PERL@ is most done with AC_CONFIG_FILES.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:30 +02:00
Stepan Kasal 15a9b48cf5 build-sys: --prefix defaults to /usr
Use prefix=/usr as the default setting.  If prefix is /usr, make
bindir and sbindir default to /bin and /sbin, respectively.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:30 +02:00
Stepan Kasal b34258064d build-sys: remove swapargs.h, move the tests to main configure.ac
Do not use header swapargs.h, generated by script swap.configure;
use the standard AC_DEFINE method in configure.ac.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:30 +02:00
Stepan Kasal cf002530f8 build-sys: replace AC_TRY_* by AC_*_IFELSE
The AC_TRY_* macros are deprecated.  Following the suggestion from
autoupdate, I have replaced them by AC_*_IFELSE.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:30 +02:00
Stepan Kasal 7fa4f11209 build-sys: s/AC_HELP_STRING/AS_HELP_STRING/
The macro has been renamed.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:30 +02:00
Stepan Kasal fd67be311d build-sys: do not use internal Autoconf variables
This is a cleanup of configure.ac removing the internal ac_cv_*
variables.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:30 +02:00
Stepan Kasal bf962c0ab5 build-sys: merge adjacent AC_CONFIG_HEADERS and AC_CONFIG_FUNCS calls
Merge adjacent calls to AC_CONFIG_HEADERS--the generated configure is
then smaller.  Likewise for AC_CONFIG_FUNCS.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:30 +02:00
Stepan Kasal 271d98e05d build-sys: do not set with_foo twice
It's redundant to set with_slang=$withval, and similar.
(Inspect the generated configure; it contains
  withval=$with_slang; with_slang=$withval
:-)

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:30 +02:00
Stepan Kasal 2984313a46 build-sys: do not build convenience libraries in lib/
Build lib/*.c individually for each project which uses it, so that the
right set of flags is applied each time.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:29 +02:00
Stepan Kasal 232a8ec45a build-sys: remove AC_PROG_RANLIB
libtoolize (1.5.16) says it's now obsolete.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:29 +02:00
Stepan Kasal 1f10890f51 build-sys: declare SUID_CFLAGS and SUID_LDFLAGS as precious
Use AC_ARG_VAR to declare the variables SUID_CFLAGS and SUID_LDFLAGS as
precious.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:29 +02:00
Stepan Kasal 3f3c9c909a build-sys: add SUID_LDFLAGS
Programs which are usually installed with the setuid bit do need their own
CFLAGS and LDFLAGS.  SUID_LDFLAGS is analogic to SUID_CFLAGS.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:29 +02:00
Stepan Kasal 8671065ce5 build-sys: move the optimization flags to AM_CFLAGS
The optimization flags are not preprocessor flags.
Moreover, CPPFLAGS and CFLAGS shall be overridable at make time, the
configure script shall not touch them.
Setting AM_CFLAGS in config/include-Makefile.am seems to be TRW.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16 11:43:29 +02:00
Karel Zak 06bcee19a2 build-sys: add SUID_CFLAGS
The patch allows to define special CFLAGS for typical suid programs
(like mount, umount, chfn, ...). Some distributions use for example
"-fpic" for suid binaries.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-04-25 00:20:46 +02:00
Karel Zak 82640b11ba tests: add library for LD_PRELOAD to manipulate with time() in tests
The cal command generates output that depends on time(). For reliable
regression tests we need to use still same time. It seems that LD_PRELOAD is
pretty simple way.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-03-14 14:10:18 +01:00
Karel Zak bbae9cb03e build-sys: add support for audit
You can compile --with-audit now.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-03-12 12:20:54 +01:00
Karel Zak deef0ba55e build-sys: configure.am selinux support cleanup
Changes:
 - don't include SELinux as default (--with-selinux is required)
 - the SELinux is not useful for login-utils only
 - clean up PAM and login-utils tests in the configure.am

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-02-08 15:19:36 +01:00
Karel Zak 7ac3b5b8e3 Clean up pagesize/PAGE_SIZE usage.
Now all code in util-linux uses sysconf(_SC_PAGESIZE) that is standardized and
preferred way of querying page size. The asm/page.h file is not included to the
code anymore. (This patch doesn't change mount's FS detection code which will
be removed later).

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-02-06 11:35:15 +01:00
Karel Zak 0f0584addc tests: add simple helper that returns info about system
usage: tests/helpers/mnt_test_sysinfo <infoname>

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-04 14:53:19 +01:00
Karel Zak e83446da1a tests: add basic infrastructure for regression tests
The patch adds tests/ directory with simple regression tests infrastructure.

Also, it adds the "ts-mount-paths" test that testing if all defined paths
(fstab, mtab, locks) are still same.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-04 14:23:48 +01:00
Karel Zak 5bbc26de59 build-sys: rename to -ng, change maintainer name
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-04 13:44:06 +01:00
Karel Zak 562218e6ea build-sys: add missing files
This patch add all missing headers, man pages and README files to automake
stuff and "make dist-gzip" produces useful tarball now.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-04 11:57:07 +01:00
Karel Zak 8eeb575c0d build-sys: remove generated autotools stuff from git
The generated autotools stuff shouldn't be maintained by SCM. After check out
from git use ./autogen.sh. For more details see README.devel.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-03 22:20:44 +01:00
Karel Zak a120aaa70d Imported from util-linux-2.13-pre7 tarball. 2006-12-07 00:27:22 +01:00
Karel Zak cf6d7faebb Imported from util-linux-2.13-pre6 tarball. 2006-12-07 00:27:13 +01:00
Karel Zak 19922f22a1 Imported from util-linux-2.13-pre5 tarball. 2006-12-07 00:27:10 +01:00
Karel Zak ca3ea756e7 Imported from util-linux-2.13-pre4 tarball. 2006-12-07 00:27:06 +01:00
Karel Zak 9cb689775c Imported from util-linux-2.13-pre3 tarball. 2006-12-07 00:27:03 +01:00
Karel Zak baf39af15b Imported from util-linux-2.13-pre2 tarball. 2006-12-07 00:26:58 +01:00
Karel Zak 48d7b13a1e Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00