https://bugzilla.redhat.com/show_bug.cgi?id=2249395



--- Comment #22 from nucleo <[email protected]> ---
Fixes compilation error on i686, Package 'libserialport' not found

--- a/86Box.spec
+++ b/86Box.spec
@@ -17,6 +17,7 @@
 BuildRequires: libappstream-glib
 BuildRequires: libatomic
 BuildRequires: libevdev-devel
+BuildRequires: libserialport-devel
 BuildRequires: libslirp-devel
 BuildRequires: libxkbcommon-x11-devel
 BuildRequires: libXi-devel
@@ -34,6 +35,7 @@
 Requires: fluid-soundfont-gm

 Patch1: 01-fallthrough-fix.patch
+Patch2: 86Box-5.3-png.patch

 %description
 86Box is a hypervisor and IBM PC system emulator that specializes in
@@ -47,7 +49,7 @@
 %autosetup -p1

 %build
-%ifarch %{ix86} x86_64
+%ifarch x86_64
   %cmake -DRELEASE=on -DUSE_QT6=on
 %else
   %ifarch %{arm32} aarch64


Patch 86Box-5.3-png.patch fixes compilation error on Rawhide where in
libpng-devel was added PNG cmake files

CMake Error at /usr/lib64/cmake/PNG/PNGTargets.cmake:103 (message):
  The imported target "PNG::png_static" references the file
     "/usr/lib64/libpng16.a"
  but this file does not exist.  Possible reasons include:

86Box-5.3-png.patch:

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -180,7 +180,7 @@ if(APPLE)
     target_link_libraries(86Box Freetype::Freetype)
 endif()

-find_package(PNG REQUIRED)
+find_package(PNG REQUIRED MODULE)
 include_directories(${PNG_INCLUDE_DIRS})
 target_link_libraries(86Box PNG::PNG)


With fixes compilation in Rawhide succeeded

https://koji.fedoraproject.org/koji/taskinfo?taskID=143636462


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2249395

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202249395%23c22

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to