public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/lib3mf] rawhide: Fix lib3mf.pc includedir regression from the CMake 4.x patch
@ 2026-10-30 10:13 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-30 10:13 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/lib3mf
            Branch : rawhide
            Commit : 6738fc6f5e14a4c714660439014e70bb4f8e6f5b
            Author : Miro Hrončok <miro@hroncok.cz>
            Date   : 2026-10-29T13:17:59+01:00
            Stats  : +12/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/lib3mf/c/6738fc6f5e14a4c714660439014e70bb4f8e6f5b?branch=rawhide

            Log:
            Fix lib3mf.pc includedir regression from the CMake 4.x patch

- Related: rhbz#2561538

The CMake 4.x compatibility change switched to the standard
GNUInstallDirs-provided CMAKE_INSTALL_INCLUDEDIR (plain "include")
and introduced LIB3MF_INSTALL_INCLUDEDIR ("include/lib3mf") for
installing the Bindings headers, but lib3mf.pc.in was left using
the now-plain CMAKE_INSTALL_INCLUDEDIR for its includedir variable.
This made pkg-config advertise /usr/include instead of
/usr/include/lib3mf, where the headers actually live, breaking
consumers like openscad that use the pkg-config includedir
directly to find lib3mf_implicit.hpp (3MF import/export silently
disabled since the Fedora 45 rebuild).

Assisted-By: Claude Sonnet 5

---
diff --git a/cmake4.0.patch b/cmake4.0.patch
index 38c62ef..dcae949 100644
--- a/cmake4.0.patch
+++ b/cmake4.0.patch
@@ -37,6 +37,18 @@ diff -ru lib3mf-2.2.0/CMakeLists.txt lib3mf-2.2.0-new/CMakeLists.txt
  
  #########################################################
  option(LIB3MF_TESTS "Switch whether the tests of lib3mf should be build" ON)
+diff -ru lib3mf-2.2.0/lib3mf.pc.in lib3mf-2.2.0-new/lib3mf.pc.in
+--- lib3mf-2.2.0/lib3mf.pc.in	2021-08-24 11:11:45.000000000 +0200
++++ lib3mf-2.2.0-new/lib3mf.pc.in	2026-01-09 19:51:37.491679692 +0100
+@@ -1,7 +1,7 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
+ libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
+-includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
++includedir=${prefix}/@LIB3MF_INSTALL_INCLUDEDIR@
+
+ Name: @PROJECT_NAME@
+ Description: @PROJECT_DESCRIPTION@
 diff -ru lib3mf-2.2.0/Documentation/source/Cpp/CMakeLists_dynamic.txt lib3mf-2.2.0-new/Documentation/source/Cpp/CMakeLists_dynamic.txt
 --- lib3mf-2.2.0/Documentation/source/Cpp/CMakeLists_dynamic.txt	2021-08-24 11:11:45.000000000 +0200
 +++ lib3mf-2.2.0-new/Documentation/source/Cpp/CMakeLists_dynamic.txt	2026-01-09 17:59:43.030053825 +0100

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-30 10:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 10:13 [rpms/lib3mf] rawhide: Fix lib3mf.pc includedir regression from the CMake 4.x patch 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox