Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
GIMP
GIMP
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2,837
    • Issues 2,837
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 37
    • Merge Requests 37
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • GIMPGIMP
  • Issues
  • #2454

Closed
Open
Created Nov 08, 2018 by Massimo Valentini@Massimo

WMF: no (libwmf is too old)

On fedora 29 configure builds gimp-2.10 without libwmf support despite libwmf-devel is installed and it is younger than required.
This is because the test used to check the version is

$ expr 0.2.10 >= 0.2.8
0

Additional info:

$ libwmf-config --version
0.2.10
$ pkg-config --modversion libwmf
0.2.10

A quick fix is to use pkg-config in case expr fails:

diff --git a/configure.ac b/configure.ac
index 2b3742c45f..cc411c6ddd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1991,7 +1991,10 @@ if test "x$with_wmf" != xno; then
       WMF_LIBS=`$WMF_CONFIG --libs` 
       WMF_CFLAGS=`$WMF_CONFIG --cflags`
     else
-      have_libwmf="no (libwmf is too old)"
+      have_libwmf=yes
+      PKG_CHECK_MODULES(WMF, libwmf >= wmf_required_version,
+                        FILE_WMF='file-wmf$(EXEEXT)',
+      have_libwmf="no (libwmf not found)")
    fi
   else
     have_libwmf="no (libwmf not found)"
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None