summaryrefslogtreecommitdiffstats
path: root/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: add --with-pkgconfigdirKarel Zak2019-05-141-2/+0Star
| | | | | | | | | | | | | | | | | It seems we need a way how to override the default pkg-config install directory. default: $ ./configure $ grep 'pkgconfigdir =' Makefile pkgconfigdir = ${usrlib_execdir}/pkgconfig user-defined: $ ./configure --with-pkgconfigdir=/usr/share/pkgconfig $ grep 'pkgconfigdir =' Makefile $ pkgconfigdir = /usr/share/pkgconfig Addresses: https://github.com/karelzak/util-linux/issues/793 Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add 'make checklibdoc'Karel Zak2019-04-241-0/+13
| | | | | | Let's to be sure that all libs API symbols are documented. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add ASAN_LDFLAGSKarel Zak2019-04-151-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add check-programs make targetKarel Zak2019-03-051-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build: use --runstatedir instead of --localstatedirAndreas Henriksson2017-07-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The util-linux code was previously aligned to use @localstatedir@ and the util-linux build system was set to override the default to use /run. Current GNU Coding Standards introduced the @runstatedir@ variable for this purpose. Lets use that instead. The GNU default for @runstatedir@ is ${localstatedir}/run so util-linux still override the default to be /run to preserve the status quo from before. The only difference is that you'll now pass --runstatedir to override the location on the command line instead of --localstatedir. (FWIW, Debhelper in compat 11 will automatically start passing --runstatedir=/run to all autotools configured builds. It already passes --localstatedir=/var (to avoid it ending up with the GNU default /usr/local/var) which breaks the util-linux build system code that tries to default it to /run. This change will thus allow util-linux and debhelper to work better together and avoid the need for a package-specific override.) Relevant historic commits: * commit 07a16b9d1e5a48550a0d19abb9a900853433ffa2 "build-sys: change --localstatedir to /run" * commit 80c51185d50f00a2701f9379f10fc48a0f885dfc "uuidd: use run configured state directory" * commit 01c5b787947aeaffc7e56000827e3edefa357c59 "agetty: use configured run state directory" [kzak@redhat.com: - add $runstatedir fallback for autoconf < 2.70 - check for unmodified $localstatedir] CC: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Andreas Henriksson <andreas@fatal.se> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix chown mistake, add checkusage.sh to the distRuediger Meier2017-06-261-0/+1
| | | | | | | | | | Sorry, don't know why I reverted fad561b0. But for travis we need it only in check_nonroot(). check_root() *can* do chown and the check_dist() is handled by Makefile. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tools: add checkusage.shRuediger Meier2017-06-261-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just some simple generic tests for our UL commands, regarding options --help, --version and --unknownopt. The script looks still a bit weired but could be polished to be used in tests/. It would be the first time testing at least "something" for *all* built binaries (currently 109! commands). For the record here are the current candidates with possible problems: $ make checkusage agetty: --unknownopt, stderr too long: 45 blockdev: --unknownopt, stderr too long: 28 flock: --help, no stdout flock: --help, non-empty stderr getopt: --help, returns error kill: --unknownopt, stderr too short: 1 lsipc: --unknownopt, stderr too long: 77 pg: --unknownopt, stderr too long: 23 renice: --unknownopt, stderr too long: 18 rtcwake: --unknownopt, non-empty stdout rtcwake: --unknownopt, stderr too long: 21 sulogin: --unknownopt, stderr too long: 17 write: --unknownopt, stderr too long: 12 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: update DISTCHECK_CONFIGURE_FLAGSKarel Zak2017-06-211-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add tools/Makemodule.amKarel Zak2016-05-251-3/+2Star
| | | | | | | | We have "make" targets which depends on tools/check*.sh scripts. It's ugly to exclude these scripts from the release tar balls (as generated by "make distcheck"). Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add checkcompletion.shKarel Zak2016-03-171-0/+3
| | | | | | The command "make checkcompletion" prints missing completion scripts. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use AC_PROG_MKDIR_P and remove a few gnuismsRuediger Meier2016-03-131-1/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: Properly order install dependencies of pylibmountFilipe Brandenburger2016-02-051-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a dependency so that libmount.so is installed before pylibmount.so, so that when libtool tries to relink it, it can find libmount.so in the destdir. We introduce this additional make rule through an AC_SUBST variable, to prevent automake from trying to interpret that. This trick has been suggested in http://stackoverflow.com/a/8643550. This fixes a failure of `make install DESTDIR=...` when trying to relink pylibmount against libmount.la. libtool will look for libmount.so under ${DESTDIR}/${libdir} in that case, but if it is not yet present there, libtool assumes it is a system installed library and use -lmount instead, which causes the following failure if libmount is not installed on the base system yet: libtool: install: warning: relinking `pylibmount.la' libtool: install: (... libtool --mode=relink gcc -o pylibmount.la \ -rpath /usr/lib/python2.7/dist-packages/libmount \ libmount/python/*.lo libmount.la ... -lpython2.7 \ -inst-prefix-dir /path/to/destdir) /usr/bin/ld: cannot find -lmount collect2: error: ld returned 1 exit status libtool: install: error: relink `pylibmount.la' ... make[3]: *** [install-pylibmountexecLTLIBRARIES] Error 1 This seems to be a previously encountered issue, since automake includes a hack to insert such a dependency rule to install all libLTLIBRARIES before attempting to install binPROGRAMS, initially introduced in the commit below: http://git.savannah.gnu.org/cgit/automake.git/commit/?id=bd4a1d5ad1a72fa780a8b7fd6c365a5dad2e6220 Also related bug from Ubuntu tracker: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1442076 Tested that `make install` starts working again after this commit, even when libmount-dev is not installed on the system. Also confirmed that `make distcheck` is now functional. Confirmed that the all the files expected in the Python directory (both __init__.py and pylibmount.so) are present after an install. Tested that parallel install works, the dependency is always respected since it's explicit. Inspected the generated Makefile and confirmed that the definition of install-pylibmountexecLTLIBRARIES (generated by automake) and the explicit dependency we introduced are both present. Signed-off-by: Filipe Brandenburger <filbranden@google.com>
* tests: skip automake's empty "Testsuite summary"Ruediger Meier2015-12-101-1/+0Star
| | | | | | We have no automake TESTS. Let's run check-local only. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* Revert "build-sys: remove static builds from make-check"Karel Zak2015-03-061-0/+1
| | | | | | The problem should be fixed now. This reverts commit 948b87581e7f1a430f258e169282a1755bb68edd.
* build-sys: remove static builds from make-checkKarel Zak2015-03-051-1/+0Star
| | | | | | | | | .. temporary, the final solution has to cleanup timer_* functions usage. The function are unnecessary for libmount, but we use lib/monotme.c in the library and it probably requires -lrt and *also* -lpthread for static builds. Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add version.cKarel Zak2015-01-131-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add fdisk.pcKarel Zak2014-11-261-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: create a regular shared libfdisk.soKarel Zak2014-11-261-3/+4
| | | | | | | | | - symbols versioning - SONAME from configure.ac - library version to header file - modify build-sys to compile and install shared lib Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: provide version as int for better compiletime testSøren Holm2014-10-141-0/+3
| | | | Signed-off-by: Søren Holm <sgh@sgh.dk>
* build-sys: create parent directory for $(PATHFILES)Michael Marineau2014-09-031-0/+1
| | | | | | | | | | | | | | | When building outside the source tree there is nothing to guarantee the target directory exists before writing to it. Most of the time this just happens to work because something else creates the directory but not always. For example: $ mkdir build $ cd build $ ../configure --disable-dependency-tracking $ make libuuid/uuid.pc GEN libuuid/uuid.pc /bin/sh: line 2: libuuid/uuid.pc.tmp: No such file or directory make: *** [libuuid/uuid.pc] Error 1
* build-sys: support ./configure ADJTIME_PATH=Karel Zak2014-06-191-0/+1
| | | | | | | .. to override the default /etc/adjtime path. Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix smartcols.pcKarel Zak2014-06-161-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix python tests for dist and out-of-tree buildsRuediger Meier2014-06-041-0/+1
| | | | | | | | | - add python helper scripts to the dist - helper scripts are always in srcdir - python libs are in builddir - abort tests if helpers are missing Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: restore make distcheck's configure flagsRuediger Meier2014-06-031-6/+9
| | | | | | | | | | They got lost with --enable-most-builds in 08b1c219. Note additionally we add --enable-gtk-doc but don't add --with-systemd because there are still many systems where systemd is not available. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: cleanup bash-completion/Karel Zak2014-05-211-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Use libsmartcols in libfdisk and cfdiskOndrej Oprala2014-04-031-1/+1
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: add basic filesOndrej Oprala2014-04-031-2/+5
| | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: ove fdisks to disk-utilsKarel Zak2014-03-111-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove deprecated-mount/Karel Zak2014-03-051-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: install pylibmount intoKarel Zak2013-08-191-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add pylibmountKarel Zak2013-08-191-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* bash-completion: rename shell-completion -> bash-completionKarel Zak2013-04-051-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* bash-completion: add bash completetion configure optionSami Kerola2013-03-301-0/+5
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libfdisk: add basic library filesKarel Zak2013-03-111-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ddate: remove from util-linuxSami Kerola2012-10-151-2/+1Star
| | | | | | | | | | | 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>
* build-sys: remove --enable-gtk-doc from make checkKarel Zak2012-10-101-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: expand paths at make timeKarel Zak2012-08-151-0/+37
| | | | | | | | | | | | | 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>
* tests: make compatible with autotoolsKarel Zak2012-08-031-0/+3
| | | | | | | | | | | | | | | | 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>
* build-sys: add run.sh to make check for non-root usersKarel Zak2012-07-301-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move tests to check_PROGRAMSKarel Zak2012-07-301-0/+1
| | | | | | Thanks to Mike Frysinger. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: include tools/git-version-gen in the tarballPetr Uzel2012-07-301-1/+2
| | | | | | | tools/git-version-gen is called from AC_INIT. Include it in the tarball to make it easier to autoreconf-igure the package. Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* ddate: russian manual missing from packageSami Kerola2012-07-261-1/+1
| | | | | | This manpage causes more trouble than its worth. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: change --localstatedir to /runSami Kerola2012-07-101-2/+2
| | | | | | | | | | 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>
* build-sys: support separate libintlKarel Zak2012-07-091-0/+5
| | | | | | Addresses: https://github.com/karelzak/util-linux/pull/13 Reported-by: Ben Walton <bwalton@artsci.utoronto.ca> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove include-Makefile.amKarel Zak2012-06-261-7/+28
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: rename fdisk -> fdisks/, convert to moduleKarel Zak2012-06-261-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert tests/ to moduleKarel Zak2012-06-261-2/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move partx to disk-utils/Karel Zak2012-06-261-4/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert disk-utils/ to moduleKarel Zak2012-06-261-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move getopt to misc-utils/Karel Zak2012-06-261-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>