Commit Graph

114 Commits

Author SHA1 Message Date
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