Bug 2316709 - raylib 4.5 / 5.0 version conflict
Summary: raylib 4.5 / 5.0 version conflict
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: raylib
Version: 40
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Onuralp SEZER
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-05 19:12 UTC by shiny.wing8559
Modified: 2025-05-05 01:41 UTC (History)
1 user (show)

Fixed In Version: raylib-5.5-1.fc42
Clone Of:
Environment:
Last Closed: 2025-05-05 01:41:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
CMakeLists.txt (584 bytes, text/plain)
2024-10-05 19:17 UTC, shiny.wing8559
no flags Details
main.cpp minimal raylib sample code (381 bytes, text/plain)
2024-10-05 19:18 UTC, shiny.wing8559
no flags Details

Description shiny.wing8559 2024-10-05 19:12:41 UTC
raylib and raylib-devel are listed as version 5.0-3.fc40

However, after installing, putting the following in a CMakeLists.txt file fails:
  find_package(raylib 5.0 REQUIRED)

Instead, a workaround like this works:
  find_package(raylib 4.5 REQUIRED)

The reason for this is because the file:
  /usr/lib64/cmake/raylib/raylib-config-version.cmake 
contains the text:
  set(PACKAGE_VERSION "4.5.0")

If we crack open /usr/include/raylib.h that was installed, we see this:
  #define RAYLIB_VERSION  "5.0"

After applying the find_package 4.5 workaround as stated above, the built executable will think it is running raylib 5.0.

I also noticed in https://src.fedoraproject.org/rpms/raylib/blob/rawhide/f/raylib.spec the following lines:
  %{_libdir}/libraylib.so.4.5.0
  %{_libdir}/libraylib.so.450
which should also probably be updated to 5.0.

Reproducible: Always

Steps to Reproduce:
1. sudo dnf install raylib-devel g++ cmake
2. cmake inside a project using "find_package(raylib 5.0 REQUIRED)"

Actual Results:  
CMake Error at CMakeLists.txt:8 (find_package):
  Could not find a configuration file for package "raylib" that is compatible
  with requested version "5.0".

  The following configuration files were considered but not accepted:

    /usr/lib64/cmake/raylib/raylib-config.cmake, version: 4.5.0
    /lib64/cmake/raylib/raylib-config.cmake, version: 4.5.0


Expected Results:  
CMake successfully builds project.

Comment 1 shiny.wing8559 2024-10-05 19:17:23 UTC
Created attachment 2050637 [details]
CMakeLists.txt

Put this file in a project directory with main.cpp, then to reproduce the bug:

cd $PROJECT_DIR
mkdir build
cd build
cmake ..

Comment 2 shiny.wing8559 2024-10-05 19:18:08 UTC
Created attachment 2050638 [details]
main.cpp minimal raylib sample code

Comment 3 Fedora Update System 2025-04-26 13:48:04 UTC
FEDORA-2025-06f0e387e0 (raylib-5.5-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-06f0e387e0

Comment 4 Fedora Update System 2025-04-27 03:11:04 UTC
FEDORA-2025-06f0e387e0 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-06f0e387e0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-06f0e387e0

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

Comment 5 Aoife Moloney 2025-04-28 13:56:25 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 6 Fedora Update System 2025-05-05 01:41:05 UTC
FEDORA-2025-06f0e387e0 (raylib-5.5-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.