Skip to content

-DCMAKE_INSTALL_LIBEXECDIR should probably be used instead of -DZYPP_LIBEXEC_INSTALL_DIR

Description:

I'm seeing errors in mkosi from zypper when building opensuse images that look like follows:

2025-05-29 18:38:14 <1> daandemeyer-fedora-PC1EV17T(1086622) [zypp::exec++] forkspawnengine.cc(start):274 Executing '/usr/libexec/zypp/zypp-rpm'
2025-05-29 18:38:14 <3> daandemeyer-fedora-PC1EV17T(1086622) [zypp::exec] forkspawnengine.cc(start):445 pid 1086649 launch failed: Can't exec '/usr/libexec/zypp/zypp-rpm', exec failed ((2)No such file or directory).

Looking at the libzypp spec file (https://github.com/openSUSE/libzypp/blob/5ac0e2f5b898923820cc1f80066d1ccfb62c4e12/libzypp.spec.cmake#L340), I think -DCMAKE_INSTALL_LIBEXECDIR should be set instead of -DZYPP_LIBEXEC_INSTALL_DIR as the latter is unconditionally overridden by libzypp's CMake logic.

-DCMAKE_INSTALL_LIBEXECDIR=/usr/lib should do the trick.

Additional info:

  • package version(s): 1.14.90
  • config and/or log files: N/A
  • link to upstream bug report, if any: N/A

Steps to reproduce:

1. git clone https://github.com/systemd/mkosi
2. cd mkosi
3. bin/mkosi -d opensuse -f
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information