Bug 2204482

Summary: fluidsynth-devel depends on fluidsynth
Product: [Fedora] Fedora Reporter: maarten <madebr>
Component: fluidsynthAssignee: Christoph Karl <pampelmuse>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: green, pampelmuse, walter.pete
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: fluidsynth-2.3.2-2.fc38 fluidsynth-2.3.2-2.fc37 fluidsynth-2.3.2-2.el9 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-31 01:35:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description maarten 2023-05-15 16:21:45 UTC
/usr/lib64/cmake/fluidsynth/FluidSynthTargets.cmake creates an imported executable target FluidSynth::fluidsynth that references /usr/bin/fluidsynth.

Since /usr/bin/fluidsynth is not installed, cmake fails with:

CMake Error at /usr/lib64/cmake/fluidsynth/FluidSynthTargets.cmake:103 (message):
  The imported target "FluidSynth::fluidsynth" references the file

     "/usr/bin/fluidsynth"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib64/cmake/fluidsynth/FluidSynthTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib64/cmake/fluidsynth/FluidSynthConfig.cmake:148 (include)
  CMakeLists.txt:795 (find_package)


Reproducible: Always

Steps to Reproduce:
1. Create CMakeLists.txt that does `find_package(FluidSynth CONFIG REQUIRED)`
2. Configure the project
Actual Results:  
Error with: 

CMake Error at /usr/lib64/cmake/fluidsynth/FluidSynthTargets.cmake:103 (message):
  The imported target "FluidSynth::fluidsynth" references the file

     "/usr/bin/fluidsynth"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib64/cmake/fluidsynth/FluidSynthTargets.cmake"

  but not all the files it references.


Expected Results:  
No error.

/usr/bin/fluidsynth is installed automatically when installing fluidsynth-devel

An alternative solution is to split fluidsynth's target config file in multiple ones, as done by e.g. SDL.

Installing the fluidsynth package also fixes the issue.
But I believe this bug report is useful as it points at a missing dependency.

Comment 1 Fedora Update System 2023-05-29 08:05:24 UTC
FEDORA-2023-a21634e279 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a21634e279

Comment 2 Fedora Update System 2023-05-29 08:05:26 UTC
FEDORA-2023-3600fbe804 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-3600fbe804

Comment 3 Fedora Update System 2023-05-29 08:05:27 UTC
FEDORA-EPEL-2023-3f6171b6f3 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-3f6171b6f3

Comment 4 Fedora Update System 2023-05-30 01:11:13 UTC
FEDORA-2023-a21634e279 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-a21634e279`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a21634e279

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-05-30 01:40:38 UTC
FEDORA-EPEL-2023-3f6171b6f3 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-3f6171b6f3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2023-05-30 02:39:16 UTC
FEDORA-2023-3600fbe804 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-3600fbe804`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-3600fbe804

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-05-31 01:35:15 UTC
FEDORA-2023-a21634e279 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2023-06-03 02:15:46 UTC
FEDORA-2023-3600fbe804 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2023-06-07 01:58:33 UTC
FEDORA-EPEL-2023-3f6171b6f3 has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.