Bug #120394 missing build dependency: libedit-devel
Submitted: 4 May 5:31
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Server: Packaging Severity:S2 (Serious)
Version:9.7.0 OS:Any
Assigned to: CPU Architecture:Any

[4 May 5:31] Daniël van Eeden
Description:
This doesn't return anything:
rpm -q --requires mysql-community-9.7.0-10.fc43.src.rpm | grep libedit

However when running this:
sudo dnf builddep mysql-community-9.7.0-10.fc43.src.rpm
rpmbuild --rebuild mysql-community-9.7.0-10.fc43.src.rpm

This happens
-- EDITLINE_INCLUDE_DIR 
-- EDITLINE_LIBRARY EDITLINE_LIBRARY-NOTFOUND
CMake Warning at cmake/readline.cmake:29 (MESSAGE):
  Cannot find EDITLINE development libraries.  You need to install the
  required packages:

    Debian/Ubuntu:              apt install libedit-dev
    RedHat/Fedora/Oracle Linux: yum install libedit-devel
    SuSE:                       zypper install libedit-devel

Call Stack (most recent call first):
  CMakeLists.txt:1902 (WARN_MISSING_SYSTEM_EDITLINE)

CMake Error at CMakeLists.txt:1904 (MESSAGE):
  -DWITH_EDITLINE=system, but missing system libraries.

  You can use -DWITH_EDITLINE=bundled instead.

-- Configuring incomplete, errors occurred!
error: Bad exit status from /var/tmp/rpm-tmp.0i4qtF (%build)

How to repeat:
Rebuild the MySQL RPM on a system with a minimal set of packages installed.

Suggested fix:
Add libedit-devel to the declared dependencies or make `-DWITH_EDITLINE=bundled` the default.