public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/lib3mf] rawhide: Fix lib3mf.pc includedir regression from the CMake 4.x patch
Date: Fri, 30 Oct 2026 10:13:14 GMT	[thread overview]
Message-ID: <179335519489.1.4527141761449853942.rpms-lib3mf-6738fc6f5e14@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-10-30 10:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179335519489.1.4527141761449853942.rpms-lib3mf-6738fc6f5e14@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox