xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Keir Fraser <keir@xen.org>,
	David Scott <dave.scott@eu.citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	George Dunlap <george.dunlap@eu.citrix.com>,
	Tim Deegan <tim@xen.org>, Ian Jackson <ian.jackson@eu.citrix.com>,
	xen-devel@lists.xen.org, Jan Beulich <jbeulich@suse.com>,
	Samuel Thibault <samuel.thibault@ens-lyon.org>
Subject: Re: [PATCH 28/46] Use configure --libexecdir=BASEDIR to set LIBEXEC
Date: Tue, 23 Sep 2014 14:34:22 +0200	[thread overview]
Message-ID: <20140923123422.GD10033@aepfle.de> (raw)
In-Reply-To: <1411465507.14989.37.camel@kazak.uk.xensource.com>

On Tue, Sep 23, Ian Campbell wrote:

> On Mon, 2014-09-22 at 15:00 +0200, Olaf Hering wrote:
> > The autotools configuration refers to libexec as a directory for
> > executables and stuff which is called by other programs, not by the
> > user.
> IIRC that definition flows from either the FHS or the GNU coding
> standards.

The above sentence should have been "autotools documentation".

> > Adjust all places that want libexecdir as a target path. LIBEXEC refers
> > now to the base directory. Three convenience variables are used to refer
> > to paths to private binaries, libs and include files.
> > 
> > Most users of LIBEXEC are updated to use LIBEXEC_BIN because that is
> > what they want.
> > 
> > Users of PRIVATE_BINDIR are updated to use LIBEXEC_BIN because that is
> > what they want.
> 
> Is the end result of this that anything is moved by default? Please
> state it here either way.

No change in paths is expected by this change.

> > As suggested by the docs,
> 
> which docs?

The autoconf docs, they suggest $libexec/$package_name as target dir.
Will update the commit msg to make this clear.

> > -dnl XXX: this should be changed to use the passed $libexec
> > -dnl but can be done as a second step
> > -case "$host_os" in
> > -*netbsd*)  LIBEXEC=$prefix/libexec ;;
> > -*) LIBEXEC=$prefix/lib/xen/bin ;;
> > -esac
> > +if test "x$libexecdir" = 'x${exec_prefix}/libexec' ; then
> > +    case "$host_os" in
> > +         *netbsd*)
> > +         libexecdir=$prefix/libexec
> > +         ;;
> > +         *)
> > +         libexecdir=$prefix/lib
> > +         ;;
> > +    esac
> > +fi
> 
> I'm wondering if we should just accept the autoconf default here.
> Distros which differ from that default (Debian? I thought RPM distros
> used libexec) are presumably used to passing ---with-libexecdir=.

At least SUSE uses /usr/lib as libexec. Also the rpm %configure macro
uses %prefix/lib. So its up to the configure scripts to append "package
name". I will check what other packages do, but I think my change is
correct in that part.

Regarding libexec/ vs. lib/: it would change existing behaviour. In the
end it would most likely not matter because the tools find the binaries
anyway. Stuff will just end up in different directories. Existing
domU.cfg files, which refer to a hardcoded path to qemu, hvmloader or
whatever will need an update. Perhaps the offending line can be removed
altogether from domU.cfg.

So if you want, the hunk above can be changed to a plain LIBEXEC=$libexecdir/xen

Olaf

  reply	other threads:[~2014-09-23 12:34 UTC|newest]

Thread overview: 116+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-22 12:59 [PATCH 00/45 v3] tool changes to honor configure --prefix=DIR Olaf Hering
2014-09-22 12:59 ` [PATCH 01/46] stubdom: fix lwip compile Olaf Hering
2014-09-22 12:59 ` [PATCH 02/46] tools/xenpaging: create dumpdir with mode 0700 Olaf Hering
2014-09-22 15:52   ` Ian Campbell
2014-09-22 12:59 ` [PATCH 03/46] install.sh: Preserve permissions from make install Olaf Hering
2014-09-22 15:54   ` Ian Campbell
2014-09-23 12:14     ` Olaf Hering
2014-09-23 12:36       ` Ian Campbell
2014-09-22 12:59 ` [PATCH 04/46] tools/mkrpm: allow custom rpm package name Olaf Hering
2014-09-22 15:55   ` Ian Campbell
2014-09-22 12:59 ` [PATCH 05/46] tools: remove obsolete path.py from tools/python Olaf Hering
2014-09-22 15:55   ` Ian Campbell
2014-09-22 12:59 ` [PATCH 06/46] tools/pygrub: store kernels in /var/run/xen/pygrub Olaf Hering
2014-09-22 15:29   ` Andrew Cooper
2014-09-22 15:36     ` Ian Campbell
2014-09-22 12:59 ` [PATCH 07/46] tools/hotplug: create XEN_RUN_DIR at runtime Olaf Hering
2014-09-22 12:59 ` [PATCH 08/46] tools/hotplug: create XEN_LOCK_DIR " Olaf Hering
2014-09-22 12:59 ` [PATCH 09/46] tools/hotplug: use XEN_LOCK_DIR instead of hardcoded path Olaf Hering
2016-04-11 16:34   ` George Dunlap
2016-04-12 16:18     ` Olaf Hering
2014-09-22 12:59 ` [PATCH 10/46] tools/examples: remove obsolete install targets Olaf Hering
2014-09-22 13:00 ` [PATCH 11/46] remove obsolete SUBSYS_DIR variable Olaf Hering
2014-09-22 13:00 ` [PATCH 12/46] Config.mk: move directory list into BUILD_MAKE_VARS Olaf Hering
2014-09-22 13:00 ` [PATCH 13/46] Config.mk: replace dependency to genpath with actual target Olaf Hering
2014-09-22 15:59   ` Ian Campbell
2014-09-22 13:00 ` [PATCH 14/46] Config.mk: add new macro buildmakevars2header Olaf Hering
2014-09-22 16:04   ` Ian Campbell
2014-09-22 13:00 ` [PATCH 15/46] tools/libxl: use buildmakevars2header to create _paths.h Olaf Hering
2014-09-22 13:00 ` [PATCH 16/46] tools/libxc: provide variable paths to libxc Olaf Hering
2014-09-22 13:00 ` [PATCH 17/46] tools/libxc: use XEN_RUN_DIR for SUSPEND_LOCK_FILE Olaf Hering
2014-09-22 13:00 ` [PATCH 18/46] Use configure --sysconfdir=DIR to set CONFIG_DIR Olaf Hering
2014-09-22 16:13   ` Ian Campbell
2014-09-23  9:46     ` Ian Campbell
2014-09-22 13:00 ` [PATCH 19/46] Add configure --with-initd-dir=DIR Olaf Hering
2014-09-22 16:22   ` Ian Campbell
2014-09-23 12:17     ` Olaf Hering
2014-09-24 12:11     ` Olaf Hering
2014-09-29 12:13       ` Ian Campbell
2014-09-30 12:05         ` Olaf Hering
2014-09-30 12:24           ` Ian Campbell
2014-09-22 13:00 ` [PATCH 20/46] tools/hotplug: use XEN_SCRIPT_DIR instead of hardcoded path Olaf Hering
2014-09-22 16:27   ` Ian Campbell
2014-09-22 13:00 ` [PATCH 21/46] tools/configure.ac: sort AC_CONFIG_FILES Olaf Hering
2014-09-22 16:38   ` Ian Campbell
2014-09-22 13:00 ` [PATCH 22/46] tools: use INITD_DIR instead of CONFIG_DIR/init.d|rc.d Olaf Hering
2014-09-23  9:23   ` Ian Campbell
2014-09-22 13:00 ` [PATCH 23/46] tools/hotplug: substitute XEN_SCRIPT_DIR on FreeBSD Olaf Hering
2014-09-23  9:24   ` Ian Campbell
2014-09-22 13:00 ` [PATCH 24/46] remove duplicate variables from config Olaf Hering
2014-09-23  9:25   ` Ian Campbell
2014-09-22 13:00 ` [PATCH 25/46] Use configure --mandir=DIR to set MANDIR Olaf Hering
2014-09-23  9:32   ` Ian Campbell
2014-09-23  9:36     ` Ian Campbell
2014-09-23 12:23       ` Olaf Hering
2014-09-23 12:36         ` Ian Campbell
2014-09-22 13:00 ` [PATCH 26/46] Use configure --docdir=DIR to set DOCDIR Olaf Hering
2014-09-22 13:00 ` [PATCH 27/46] Use configure --includedir=DIR to set INCLUDEDIR Olaf Hering
2014-09-22 13:00 ` [PATCH 28/46] Use configure --libexecdir=BASEDIR to set LIBEXEC Olaf Hering
2014-09-23  9:45   ` Ian Campbell
2014-09-23 12:34     ` Olaf Hering [this message]
2014-09-23 12:38       ` Ian Campbell
2014-09-22 13:00 ` [PATCH 29/46] Use configure --prefix=DIR to set PREFIX Olaf Hering
2014-09-23 10:14   ` Ian Campbell
2014-09-22 13:00 ` [PATCH 30/46] Use configure --localstatedir=BASEDIR to set path to /var Olaf Hering
2014-09-23 10:18   ` Ian Campbell
2014-09-23 12:37     ` Olaf Hering
2014-09-23 12:39       ` Ian Campbell
2014-09-22 13:00 ` [PATCH 31/46] Add configure --enable-rpath Olaf Hering
2014-09-23 10:23   ` Ian Campbell
2014-09-23 10:37     ` Olaf Hering
2014-09-22 13:00 ` [PATCH 32/46] Add configure --with-linux-backend-modules="mod1 mod2" Olaf Hering
2014-09-23 10:28   ` Ian Campbell
2014-09-23 10:36     ` Olaf Hering
2014-09-23 10:50       ` Ian Campbell
2014-09-23 12:41     ` Olaf Hering
2014-09-23 12:44       ` Ian Campbell
2014-09-22 13:00 ` [PATCH 33/46] Add configure --with-bash_completion-dir=DIR Olaf Hering
2014-09-23 10:32   ` Ian Campbell
2014-09-23 12:49     ` Olaf Hering
2014-09-22 13:00 ` [PATCH 34/46] Make XENFIRMWAREDIR a subdir of libexecdir Olaf Hering
2014-09-23 10:33   ` Ian Campbell
2014-09-22 13:00 ` [PATCH 35/46] Use just PREFIX to reference the path in Paths.mk Olaf Hering
2014-09-23 10:33   ` Ian Campbell
2014-09-23 12:52     ` Olaf Hering
2014-09-23 12:59       ` Ian Campbell
2014-09-22 13:00 ` [PATCH 36/46] tools: remove private copies of includedir and libdir from libxenstat Olaf Hering
2014-09-23 10:34   ` Ian Campbell
2014-09-22 13:00 ` [PATCH 37/46] Use Paths.mk for docs, stubdom and tools build Olaf Hering
2014-09-23 10:37   ` Ian Campbell
2014-09-23 12:55     ` Olaf Hering
2014-09-22 13:00 ` [PATCH 38/46] Move xenconsoled to libexec Olaf Hering
2014-09-23 10:40   ` Ian Campbell
2014-09-23 12:56     ` Olaf Hering
2014-09-23 13:01       ` Ian Campbell
2014-09-22 13:00 ` [PATCH 39/46] Move xenstored " Olaf Hering
2014-09-23 10:41   ` Ian Campbell
2014-09-22 13:00 ` [PATCH 40/46] Move xenwatchdogd " Olaf Hering
2014-09-22 13:00 ` [PATCH 41/46] tools: use XEN_LIB_STORED instead of /var/lib/xenstored Olaf Hering
2014-09-23 10:41   ` Ian Campbell
2014-09-23 12:58     ` Olaf Hering
2014-09-23 13:01       ` Ian Campbell
2014-09-22 13:00 ` [PATCH 42/46] Use XEN_RUN_DIR instead of /var/run/xen Olaf Hering
2014-09-23 10:44   ` Ian Campbell
2014-09-23 13:01     ` Olaf Hering
2014-09-23 13:06       ` Ian Campbell
2014-09-22 13:00 ` [PATCH 43/46] Move systemd paths to Paths.mk Olaf Hering
2014-09-23 10:44   ` Ian Campbell
2014-09-23 13:03     ` Olaf Hering
2014-09-23 13:06       ` Ian Campbell
2014-09-22 13:00 ` [PATCH 44/46] Include Paths.mk in toplevel Makefile to fix uninstall Olaf Hering
2014-09-23 10:47   ` Ian Campbell
2014-09-23 13:05     ` Olaf Hering
2014-09-22 13:00 ` [PATCH 45/46] Move MAN1DIR and MAN8DIR to Paths.mk Olaf Hering
2014-09-23 10:47   ` Ian Campbell
2014-09-22 13:00 ` [PATCH 46/46] rerun autogen.sh Olaf Hering
2014-09-23 10:48   ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140923123422.GD10033@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=Ian.Campbell@citrix.com \
    --cc=dave.scott@eu.citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=keir@xen.org \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).