From: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
To: "Burton\, Ross" <ross.burton@intel.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: libexecdir and multilib
Date: Thu, 02 May 2013 19:24:04 +0200 [thread overview]
Message-ID: <lyy5bxl2h7.fsf@ensc-virt.intern.sigma-chemnitz.de> (raw)
In-Reply-To: <CAJTo0LZdtT=qg2k3eBJ_DQHQzMvqS0vwFSmkgCxxG7KOiPWfzQ@mail.gmail.com> (Ross Burton's message of "Thu, 2 May 2013 17:10:15 +0100")
"Burton, Ross" <ross.burton@intel.com> writes:
> rpm allows "executables" (but not libraries) to conflict and will
> prefer the 64-bit version,
Sure? At least rpm-4 (Fedora, RHEL) does not allow files to conflict.
Fedora solves the multilib problem by splitting the distribution into
main packages (unilib only; contain binaries and data) and libraries
(multilib). The distribution assemble tool ("mash") copies e.g. i386
-lib and -devel packages both in i386 and x86_64 repositories.
libexecdir files in Fedora should be part of unilib (main architecture)
packages only.
> libexecdir = ${exec_prefix}/libexec"
> ===
>
> Conflicting binaries with multilib, would likely need improvements in
> the opkg bbclass. Consistent name so cross-architecture file paths
> are consistent, although the binary architecture isn't.
How is ${bindir} multilib packaging solved in OE? Can this mechanism
applied to ${exec_prefix}/libexec too?
> What's clear from the research I've done is that there isn't a clear
> answer - upstreams have different expectations of how libexecdir/bindir
> are used, and different distributions do different things to solve the
> multilib problems - even when the distribution maintainers are also
> upstream developers. Some examples:
>
> dbus has a helper dbus-daemon-launch-helper, which is installed into
> libexecdir. Fedora moves it into $libdir, where as Debian moves this
> same binary to /usr/lib/dbus-1 avoiding the $arch... Some disagreement
> there apparently.
Yes; Fedora introduced this in 2007[1] without telling the rationale in
the commit :( afais, this is not give problems because path is read from
<serviceconfig> tag in /etc/dbus-1/system.conf and program is probably
called only from dbus library itself.
> My personal opinion at this point in time is that we should change
> libexecdir to be $libdir.
atm, multilib is a theoretical issue for me only and I do not have a
strong bias for ${libdir} vs. ${exec_prefix}/lib.
Nevertheless, when we change libexecdir to match ${libdir} in one
architecture, we will see packaging regressions. To fix/detect them,
we will have to:
1. remove ${libexecdir}/* wildcards from FILES lists (permanent change)
2. do world builds with "strange", temporary libexecdir
(e.g. /usr/lib/strange-libexec) and look for unpackaged files.
Enrico
Footnotes:
[1] http://pkgs.fedoraproject.org/cgit/dbus.git/commit/?id=73fe28f678b4a1f015bffbec0fa50b3690dd39a4
next prev parent reply other threads:[~2013-05-02 17:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-02 16:10 libexecdir and multilib Burton, Ross
2013-05-02 16:48 ` Mark Hatle
2013-05-02 17:24 ` Enrico Scholz [this message]
2013-05-02 18:07 ` Mark Hatle
2013-05-03 9:29 ` Burton, Ross
2013-05-04 17:05 ` Colin Walters
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=lyy5bxl2h7.fsf@ensc-virt.intern.sigma-chemnitz.de \
--to=enrico.scholz@sigma-chemnitz.de \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@intel.com \
/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