Updates:
        Status: Fixed

Comment #1 on issue 684 by [email protected]: Configure does not honour --mandir/bindir/sbindir
http://code.google.com/p/ganeti/issues/detail?id=684

commit ae6a0a7c5a7cfacff72f307236d236ce965fe4e7
Author: Jose A. Lopes <[email protected]>
Date:   Thu Jan 16 19:33:53 2014 +0100

    Fix configure dirs

    Fix overridable configure directories, namely, --bindir, --sbindir,
    and --mandir.

    Variables 'bindir', 'sbindir', and 'mandir' are exported from
    'configure.ac' to 'Makefile.am'. At first, it would seem to be
    possible to do the following:

      MANDIR := $(mandir)
      ...
      mandir = $(versionedsharedir)$(datarootdir)/$(MANDIR)

    However, this does not work in the output of 'configure' (i.e., the
    'Makefile'), these variables will be reordered:

      mandir = $(versionedsharedir)$(datarootdir)/$(MANDIR)
      ...
      MANDIR := $(mandir)

    As a result, 'MANDIR' will capture not the exported value from
    'configure.ac' but the 'mandir' defined in the 'Makefile'.

    The solution is explicitly export these variables from 'configure.ac'
    with different names, namely, 'BINDIR', 'SBINDIR', and 'MANDIR':

      AC_SUBST([BINDIR], $bindir)
      AC_SUBST([SBINDIR], $sbindir)
      AC_SUBST([MANDIR], $mandir)

    The rest is just fixing the paths and the symlinks in the 'Makefile'.

    Signed-off-by: Jose A. Lopes <[email protected]>
    Reviewed-by: Klaus Aehlig <[email protected]>


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Reply via email to