I'd like to propose adding /usr/libexec to the openSUSE FHS and
reverting the definition of %_libexecdir in rpm back to /usr/libexec
so that libexec content is installed there.
Currently, openSUSE overrides rpm to define %_libexecdir as /usr/lib,
which leads to pollution of the /usr/lib directory with executable
content as well as 64-bit content when there shouldn't be any. The
/usr/libexec has been in use on RH/Fedora and Mageia systems in the
Linux world, but has its origins in BSD and is still used today in
BSDs and variants (like Mac OS X). The usage of /usr/libexec for
libexec content has also been recognized by FHS with v3.0, released in
2015. In the Linux distribution landscape (that is, all major
families, not just RPM ones), /usr/libexec is in use on Red Hat,
Mandrake, Gentoo, and Slackware families.
This is a breaking change, as it means that as packages are rebuilt,
libexec content *should* migrate from /usr/lib to /usr/libexec. The
major advantage of migrating the libexec content is that it will make
openSUSE consistent with other major RPM-based Linux distributions,
and ease efforts in supporting SUSE distributions along with Red Hat
ones by removing the need for hacks and tweaks to support two
different hierarchies. This simplifies the portability headaches in
supporting both distribution families, and makes it easier for
applications that were originally aimed for RHEL/CentOS to run on
This change would be done in three stages:
1. Make the change to the filesystem package to add /usr/libexec to
2. Add /usr/libexec to allowed prefixes in rpmlint-checks and remove
spec-cleaner rule that assumes /usr/lib == %_libexecdir.
3. Make the change to the rpm package to set %_libexecdir back to
/usr/libexec. This one will cause a fair bit of work to fix packages
that do the wrong thing one way or another with %_libexecdir.
What do you all think?
真実はいつも一つ！/ Always, there's only one truth!
To unsubscribe, e-mail: opensuse-factory+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-factory+owner(a)opensuse.org